MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / clone

Method clone

paddle/phi/api/include/compat/ATen/core/TensorBody.h:655–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 }
654
655 inline Tensor clone() const {
656 PaddleTensor cloned_tensor = paddle::experimental::assign(tensor_);
657 return Tensor(cloned_tensor);
658 }
659
660 // all: Check if all elements are true (non-zero)
661 at::Tensor all() const;

Callers 1

narrow_copyFunction · 0.45

Calls 2

TensorClass · 0.70
assignFunction · 0.50

Tested by

no test coverage detected