class Integer

Public Class Methods

placeholder(name: nil, width: 32, shape: nil) click to toggle source
# File lib/tensor_stream/monkey_patches/integer.rb, line 4
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