Sha256: b8d9674f7b60ca8ad3792dd505f48870751942ba7afe1b3684c765706df04ae0

Contents?: true

Size: 293 Bytes

Versions: 4

Compression:

Stored size: 293 Bytes

Contents

class Integer
  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 = :"int#{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/integer.rb
tensor_stream-1.0.0.pre.rc1 lib/tensor_stream/monkey_patches/integer.rb
tensor_stream-0.9.10 lib/tensor_stream/monkey_patches/integer.rb
tensor_stream-0.9.9 lib/tensor_stream/monkey_patches/integer.rb