ttnn.reallocate

ttnn.reallocate(tensor: tt_lib.tensor.Tensor, memory_config: tt_lib.tensor.MemoryConfig | None = None) → tt_lib.tensor.Tensor

Deallocates device tensor and returns a reallocated tensor

Args:
  • input_tensor: Input Tensor