40 #define AssertTensorDtype(tensor, ...) \ 41 tensor_check::AssertTensorDtype_( \ 42 __FILE__, __LINE__, static_cast<const char*>(OPEN3D_FUNCTION), \ 51 #define AssertTensorDtypes(tensor, ...) \ 52 tensor_check::AssertTensorDtypes_( \ 53 __FILE__, __LINE__, static_cast<const char*>(OPEN3D_FUNCTION), \ 62 #define AssertTensorDevice(tensor, ...) \ 63 tensor_check::AssertTensorDevice_( \ 64 __FILE__, __LINE__, static_cast<const char*>(OPEN3D_FUNCTION), \ 77 #define AssertTensorShape(tensor, ...) \ 78 tensor_check::AssertTensorShape_( \ 79 __FILE__, __LINE__, static_cast<const char*>(OPEN3D_FUNCTION), \ 84 namespace tensor_check {
96 const std::vector<Dtype>& dtypes);
100 const char*
function,
101 const Tensor& tensor,
102 const Device& device);
106 const char*
function,
107 const Tensor& tensor,
108 const DynamicSizeVector& shape);
void AssertTensorShape_(const char *file, int line, const char *function, const Tensor &tensor, const DynamicSizeVector &shape)
Definition: TensorCheck.cpp:90
void AssertTensorDtype_(const char *file, int line, const char *function, const Tensor &tensor, const Dtype &dtype)
Definition: TensorCheck.cpp:41
void AssertTensorDtypes_(const char *file, int line, const char *function, const Tensor &tensor, const std::vector< Dtype > &dtypes)
Definition: TensorCheck.cpp:55
void AssertTensorDevice_(const char *file, int line, const char *function, const Tensor &tensor, const Device &device)
Definition: TensorCheck.cpp:76
Definition: PinholeCameraIntrinsic.cpp:35