Class: TensorStream::Initializer

Inherits:
Object
  • Object
show all
Defined in:
lib/tensor_stream/initializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(op) ⇒ Initializer

Returns a new instance of Initializer.



4
5
6
# File 'lib/tensor_stream/initializer.rb', line 4

def initialize(op)
  @op = op
end

Instance Attribute Details

#opObject



8
9
10
# File 'lib/tensor_stream/initializer.rb', line 8

def op
  @op.call
end

Instance Method Details

#shapeObject



12
13
14
# File 'lib/tensor_stream/initializer.rb', line 12

def shape
  nil
end