Sha256: 2590f5a3ffaaa106a26dcb0fd74c52890c9b92b2a781acb85affa453550e6997

Contents?: true

Size: 294 Bytes

Versions: 9

Compression:

Stored size: 294 Bytes

Contents

class Float
  include TensorStream::MonkeyPatch

  def self.placeholder(name: nil, width: 32, shape: nil)
    raise "invalid width passed #{width}" unless [16, 32, 64].include?(width)

    data_type = :"float#{width}"
    TensorStream.placeholder(data_type, name: name, shape: shape)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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