Sha256: c1d0ece87c8ded7232ec644409b1ad387e8fac3a7ff69a771a3c89cc573174e7
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
module TensorStream # Class that defines a TensorStream placeholder class Placeholder < Tensor def initialize(data_type, rank, shape, options = {}) @graph = options[:graph] || TensorStream.get_default_graph @data_type = data_type @rank = rank @shape = TensorShape.new(shape, rank) @value = nil @is_const = false @source = format_source(caller_locations) @name = [@graph.get_name_scope, options[:name] || build_name].compact.join('/') @graph.add_node(self) end private def build_name "Placeholder#{graph.get_placeholder_counter}:#{@rank}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tensor_stream-0.1.5 | lib/tensor_stream/placeholder.rb |