21 #define AssertTensorDtype(tensor, ...) \
22 tensor_check::AssertTensorDtype_( \
24 static_cast<const char*>(CLOUDVIEWER_FUNCTION), tensor, \
33 #define AssertTensorDtypes(tensor, ...) \
34 tensor_check::AssertTensorDtypes_( \
36 static_cast<const char*>(CLOUDVIEWER_FUNCTION), tensor, \
45 #define AssertTensorDevice(tensor, ...) \
46 tensor_check::AssertTensorDevice_( \
48 static_cast<const char*>(CLOUDVIEWER_FUNCTION), tensor, \
61 #define AssertTensorShape(tensor, ...) \
62 tensor_check::AssertTensorShape_( \
64 static_cast<const char*>(CLOUDVIEWER_FUNCTION), tensor, \
69 namespace tensor_check {
81 const std::vector<Dtype>& dtypes);
87 const Device& device);
93 const DynamicSizeVector& shape);
void AssertTensorDtypes_(const char *file, int line, const char *function, const Tensor &tensor, const std::vector< Dtype > &dtypes)
void AssertTensorDtype_(const char *file, int line, const char *function, const Tensor &tensor, const Dtype &dtype)
void AssertTensorDevice_(const char *file, int line, const char *function, const Tensor &tensor, const Device &device)
void AssertTensorShape_(const char *file, int line, const char *function, const Tensor &tensor, const DynamicSizeVector &shape)
Generic file read and write utility for python interface.