Sha256: 1a7aa94ffc36130059a9cfca5be17cbe6f1875057bfbf345a3340c30180a0aba

Contents?: true

Size: 286 Bytes

Versions: 2

Compression:

Stored size: 286 Bytes

Contents

# require 'pry-byebug'
module TensorStream
  # various monkey patches to FixNum types
  module MonkeyPatch
    def shape
      TensorStream.shape_eval(self)
    end

    def t(name = nil, dtype: nil)
      TensorStream.convert_to_tensor(self, name: name, dtype: dtype)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tensor_stream-1.0.0 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.0.pre.rc1 lib/tensor_stream/monkey_patches/patch.rb