Module: TorchModel::Tensor
- Defined in:
- lib/rbbt/vector/model/torch/helpers.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.setup(obj) ⇒ Object
6 7 8 |
# File 'lib/rbbt/vector/model/torch/helpers.rb', line 6 def self.setup(obj) obj.extend Tensor end |
Instance Method Details
#to_ruby ⇒ Object
3 4 5 |
# File 'lib/rbbt/vector/model/torch/helpers.rb', line 3 def to_ruby RbbtPython.numpy2ruby(self) end |