Sha256: 439971b9aa9826836c69baf41a1d24354e4a3826b9d14c4ed66a495c9cd90f53

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

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

4 entries across 4 versions & 1 rubygems

Version Path
tensor_stream-1.0.0 lib/tensor_stream/monkey_patches/float.rb
tensor_stream-1.0.0.pre.rc1 lib/tensor_stream/monkey_patches/float.rb
tensor_stream-0.9.10 lib/tensor_stream/monkey_patches/float.rb
tensor_stream-0.9.9 lib/tensor_stream/monkey_patches/float.rb