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