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