|
Open3D (C++ API)
0.19.0
|
#include <torch/script.h>#include <sstream>#include <type_traits>#include "open3d/ml/ShapeChecking.h"Go to the source code of this file.
Macros | |
| #define | CHECK_CUDA(x) |
| #define | CHECK_CONTIGUOUS(x) |
| #define | CHECK_TYPE(x, type) |
| #define | CHECK_SAME_DEVICE_TYPE(...) |
| #define | CHECK_SAME_DTYPE(...) |
| #define | CHECK_SHAPE(tensor, ...) |
| #define | CHECK_SHAPE_COMBINE_FIRST_DIMS(tensor, ...) |
| #define | CHECK_SHAPE_IGNORE_FIRST_DIMS(tensor, ...) |
| #define | CHECK_SHAPE_COMBINE_LAST_DIMS(tensor, ...) |
| #define | CHECK_SHAPE_IGNORE_LAST_DIMS(tensor, ...) |
Typedefs | |
| typedef std::remove_const< decltype(torch::kInt32)>::type | TorchDtype_t |
Functions | |
| template<class T> | |
| TorchDtype_t | ToTorchDtype () |
| template<> | |
| TorchDtype_t | ToTorchDtype< uint8_t > () |
| template<> | |
| TorchDtype_t | ToTorchDtype< int8_t > () |
| template<> | |
| TorchDtype_t | ToTorchDtype< int16_t > () |
| template<> | |
| TorchDtype_t | ToTorchDtype< int32_t > () |
| template<> | |
| TorchDtype_t | ToTorchDtype< int64_t > () |
| template<> | |
| TorchDtype_t | ToTorchDtype< float > () |
| template<> | |
| TorchDtype_t | ToTorchDtype< double > () |
| template<class T, class TDtype> | |
| bool | CompareTorchDtype (const TDtype &t) |
| bool | SameDeviceType (std::initializer_list< torch::Tensor > tensors) |
| bool | SameDtype (std::initializer_list< torch::Tensor > tensors) |
| std::string | TensorInfoStr (std::initializer_list< torch::Tensor > tensors) |
| torch::Tensor | CreateTempTensor (const int64_t size, const torch::Device &device, void **ptr=nullptr) |
| std::vector< open3d::ml::op_util::DimValue > | GetShapeVector (torch::Tensor tensor) |
| template<open3d::ml::op_util::CSOpt Opt = open3d::ml::op_util::CSOpt::NONE, class TDimX, class... TArgs> | |
| std::tuple< bool, std::string > | CheckShape (torch::Tensor tensor, TDimX &&dimex, TArgs &&... args) |
| #define CHECK_CONTIGUOUS | ( | x | ) |
| #define CHECK_CUDA | ( | x | ) |
| #define CHECK_SAME_DEVICE_TYPE | ( | ... | ) |
| #define CHECK_SAME_DTYPE | ( | ... | ) |
| #define CHECK_SHAPE | ( | tensor, | |
| ... ) |
| #define CHECK_SHAPE_COMBINE_FIRST_DIMS | ( | tensor, | |
| ... ) |
| #define CHECK_SHAPE_COMBINE_LAST_DIMS | ( | tensor, | |
| ... ) |
| #define CHECK_SHAPE_IGNORE_FIRST_DIMS | ( | tensor, | |
| ... ) |
| #define CHECK_SHAPE_IGNORE_LAST_DIMS | ( | tensor, | |
| ... ) |
| #define CHECK_TYPE | ( | x, | |
| type ) |
| typedef std::remove_const<decltype(torch::kInt32)>::type TorchDtype_t |
| std::tuple< bool, std::string > CheckShape | ( | torch::Tensor | tensor, |
| TDimX && | dimex, | ||
| TArgs &&... | args ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |