 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
20 const std::vector<Tensor>& index_tensors,
21 const SizeVector& indexed_shape,
22 const SizeVector& indexed_strides);
26 const std::vector<Tensor>& index_tensors,
27 const SizeVector& indexed_shape,
28 const SizeVector& indexed_strides);
30 #ifdef BUILD_SYCL_MODULE
33 const std::vector<Tensor>& index_tensors,
34 const SizeVector& indexed_shape,
35 const SizeVector& indexed_strides);
38 #ifdef BUILD_CUDA_MODULE
39 void IndexGetCUDA(
const Tensor& src,
41 const std::vector<Tensor>& index_tensors,
42 const SizeVector& indexed_shape,
43 const SizeVector& indexed_strides);
48 const std::vector<Tensor>& index_tensors,
49 const SizeVector& indexed_shape,
50 const SizeVector& indexed_strides);
54 const std::vector<Tensor>& index_tensors,
55 const SizeVector& indexed_shape,
56 const SizeVector& indexed_strides);
58 #ifdef BUILD_SYCL_MODULE
61 const std::vector<Tensor>& index_tensors,
62 const SizeVector& indexed_shape,
63 const SizeVector& indexed_strides);
66 #ifdef BUILD_CUDA_MODULE
67 void IndexSetCUDA(
const Tensor& src,
69 const std::vector<Tensor>& index_tensors,
70 const SizeVector& indexed_shape,
71 const SizeVector& indexed_strides);
static void CPULogicalAndElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:92
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Dtype GetDtype() const
Definition: Tensor.h:1164
static void CPULeqElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:137
SizeVector GetShape() const
Definition: Tensor.h:1127
static void LaunchBinaryEWKernel(const Indexer &indexer, const element_func_t &element_func)
Definition: BinaryEWCPU.cpp:28
static void CPUNeqElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:149
static void CPULtElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:125
bool IsCUDA() const
Definition: Device.h:99
static void CPUGeqElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:131
static void CPUMulElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:80
void BinaryEWCPU(const Tensor &lhs, const Tensor &rhs, Tensor &dst, BinaryEWOpCode op_code)
Definition: BinaryEWCPU.cpp:154
void IndexGet(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSet.cpp:22
void ParallelForSYCL(const Device &device, Indexer indexer, FuncArgs... func_args)
Run a function in parallel with SYCL.
Definition: ParallelForSYCL.h:24
static void CPUGtElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:119
void IndexSet(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSet.cpp:52
static void CPUDivElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:86
#define BINARY_ELEMENT_KERNEL(name, elem_fn)
Definition: BinaryEWSYCL.cpp:98
BinaryEWOpCode
Definition: BinaryEW.h:21
static void CPUEqElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:143
void IndexSetSYCL(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetSYCL.cpp:46
void IndexGetCPU(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetCPU.cpp:42
void BinaryEWSYCL(const Tensor &lhs, const Tensor &rhs, Tensor &dst, BinaryEWOpCode op_code)
Definition: BinaryEWSYCL.cpp:116
static void CPUMinElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:62
const Dtype Bool
Definition: Dtype.cpp:52
void IndexGetSYCL(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetSYCL.cpp:18
Device GetDevice() const override
Definition: Tensor.cpp:1435
void CopyFrom(const Tensor &other)
Copy Tensor values to current tensor from the source tensor.
Definition: Tensor.cpp:770
#define DISPATCH_DTYPE_TO_TEMPLATE_WITH_BOOL(DTYPE,...)
Definition: Dispatch.h:68
Definition: SizeVector.h:70
Indexer indexer
Definition: BinaryEWSYCL.cpp:30
static void CPULogicalOrElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:101
#define LogError(...)
Definition: Logging.h:60
#define DISPATCH_DTYPE_TO_TEMPLATE(DTYPE,...)
Definition: Dispatch.h:31
static void CPUAddElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:68
const std::unordered_set< BinaryEWOpCode, utility::hash_enum_class > s_boolean_binary_ew_op_codes
Definition: BinaryEW.cpp:22
bool IsCPU() const
Definition: Device.h:95
#define CLOUDVIEWER_TEMPLATE_VECTORIZED(T, ISPCKernel,...)
Definition: ParallelFor.h:246
bool IsSYCL() const
Definition: Device.h:103
void ParallelFor(const Device &device, int64_t n, const func_t &func)
Definition: ParallelFor.h:111
static void CPUSubElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:74
Definition: Indexer.h:262
static void CPUMaxElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:56
Tensor To(Dtype dtype, bool copy=false) const
Definition: Tensor.cpp:739
static void CPULogicalXorElementKernel(const void *lhs, const void *rhs, void *dst)
Definition: BinaryEWCPU.cpp:110
void IndexSetCPU(const Tensor &src, Tensor &dst, const std::vector< Tensor > &index_tensors, const SizeVector &indexed_shape, const SizeVector &indexed_strides)
Definition: IndexGetSetCPU.cpp:62