cascade.nn.copy_like

cascade.nn.copy_like(source, target)[source]

Copy tensor device, dtype and data from a source tensor to a target tensor in place

Parameters:
  • source (Tensor) – Source tensor

  • target (Tensor) – Target tensor

Return type:

None