Class: TensorStream::Initializer
- Inherits:
-
Object
- Object
- TensorStream::Initializer
- Defined in:
- lib/tensor_stream/initializer.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(op) ⇒ Initializer
constructor
A new instance of Initializer.
- #shape ⇒ Object
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
#op ⇒ Object
8 9 10 |
# File 'lib/tensor_stream/initializer.rb', line 8 def op @op.call end |
Instance Method Details
#shape ⇒ Object
12 13 14 |
# File 'lib/tensor_stream/initializer.rb', line 12 def shape nil end |