Sha256: 555bd57d2fa872558f04f867257220141783695a9d44dc107366676f8a3563f7

Contents?: true

Size: 287 Bytes

Versions: 9

Compression:

Stored size: 287 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

9 entries across 9 versions & 1 rubygems

Version Path
tensor_stream-1.0.9 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.8 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.7 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.6 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.5 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.4 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.3 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.2 lib/tensor_stream/monkey_patches/patch.rb
tensor_stream-1.0.1 lib/tensor_stream/monkey_patches/patch.rb