Sha256: 2590f5a3ffaaa106a26dcb0fd74c52890c9b92b2a781acb85affa453550e6997
Contents?: true
Size: 294 Bytes
Versions: 9
Compression:
Stored size: 294 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
9 entries across 9 versions & 1 rubygems