Method: Torch::Tensor#random!

Defined in:
lib/torch/tensor.rb

#random!(*args) ⇒ Object

parser can’t handle overlap, so need to handle manually


182
183
184
185
# File 'lib/torch/tensor.rb', line 182

def random!(*args)
  return _random!(0, *args) if args.size == 1
  _random!(*args)
end