Sha256: 6c88960561cebf71208213c8a0ee6abe3cdce106f40a827bde93105b2e8c65ec
Contents?: true
Size: 530 Bytes
Versions: 1
Compression:
Stored size: 530 Bytes
Contents
module TensorStream class VariableScope attr_accessor :name, :reuse, :initializer def initialize(name: '', reuse: nil, initializer: nil) @name = name @reuse = reuse @initializer = initializer end def get_variable(name, dtype: nil, shape: nil, initializer: nil, trainable: true, collections: nil, validate_shape: false) TensorStream::Variable.new(dtype || :float32, nil, shape, self, collections: collections, name: name, initializer: initializer, trainable: trainable) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tensor_stream-0.8.0 | lib/tensor_stream/variable_scope.rb |