Class: Tensorflow::TensorSpec
- Inherits:
-
BatchableTypeSpec
- Object
- TypeSpec
- BatchableTypeSpec
- Tensorflow::TensorSpec
- Defined in:
- lib/tensorflow/tensor_spec.rb
Instance Attribute Summary collapse
-
#dtype ⇒ Object
readonly
Returns the value of attribute dtype.
-
#shape ⇒ Object
readonly
Returns the value of attribute shape.
Instance Method Summary collapse
-
#initialize(shape, dtype) ⇒ TensorSpec
constructor
A new instance of TensorSpec.
Constructor Details
#initialize(shape, dtype) ⇒ TensorSpec
Returns a new instance of TensorSpec.
5 6 7 8 |
# File 'lib/tensorflow/tensor_spec.rb', line 5 def initialize(shape, dtype) @shape = shape @dtype = dtype end |
Instance Attribute Details
#dtype ⇒ Object (readonly)
Returns the value of attribute dtype.
3 4 5 |
# File 'lib/tensorflow/tensor_spec.rb', line 3 def dtype @dtype end |
#shape ⇒ Object (readonly)
Returns the value of attribute shape.
3 4 5 |
# File 'lib/tensorflow/tensor_spec.rb', line 3 def shape @shape end |