 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
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);
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Dtype GetDtype() const
Definition: Tensor.h:1164
void AssertTensorDtype_(const char *file, int line, const char *function, const Tensor &tensor, const Dtype &dtype)
Definition: TensorCheck.cpp:23
void AssertTensorShape_(const char *file, int line, const char *function, const Tensor &tensor, const DynamicSizeVector &shape)
Definition: TensorCheck.cpp:72
SizeVector GetShape() const
Definition: Tensor.h:1127
filament::Texture::InternalFormat format
Definition: FilamentResourceManager.cpp:181
std::string JoinStrings(const std::vector< std::string > &strs, const std::string &delimiter=", ")
Definition: Helper.cpp:168
bool IsCompatible(const DynamicSizeVector &dsv) const
Definition: SizeVector.cpp:149
std::string ToString() const
Returns string representation of device, e.g. "CPU:0", "CUDA:0".
Definition: Device.cpp:89
void AssertTensorDtypes_(const char *file, int line, const char *function, const Tensor &tensor, const std::vector< Dtype > &dtypes)
Definition: TensorCheck.cpp:37
void AssertTensorDevice_(const char *file, int line, const char *function, const Tensor &tensor, const Device &device)
Definition: TensorCheck.cpp:58
Definition: SizeVector.h:32
std::string ToString() const
Definition: SizeVector.cpp:132
std::string ToString() const
Definition: Dtype.h:65
Device GetDevice() const override
Definition: Tensor.cpp:1435
Definition: SizeVector.h:70
std::string ToString() const
Definition: SizeVector.cpp:61
bool IsDynamic() const
Definition: SizeVector.cpp:81
static void LogError_(const char *file, int line, const char *function, const char *format, Args &&...args)
Definition: Logging.h:189
SizeVector ToSizeVector() const
Definition: SizeVector.cpp:40