Method: Torch::NN::Module#half

Defined in:
lib/torch/nn/module.rb

#halfObject



101
102
103
# File 'lib/torch/nn/module.rb', line 101

def half
  _apply ->(t) { t.floating_point? ? t.half : t }
end