 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
56 Tensor
Concatenate(
const std::vector<Tensor>& tensors,
57 const utility::optional<int64_t>& axis = 0);
91 Tensor
Append(
const Tensor&
self,
103 Tensor
Maximum(
const Tensor& input,
const Tensor& other);
113 Tensor
Minimum(
const Tensor& input,
const Tensor& other);
constexpr T const & value() const &
Definition: Optional.h:465
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
Dtype GetDtype() const
Definition: Tensor.h:1164
SizeVector BroadcastedShape(const SizeVector &l_shape, const SizeVector &r_shape)
Returns the broadcasted shape of two shapes.
Definition: ShapeUtil.cpp:56
constexpr bool has_value() const noexcept
Definition: Optional.h:440
SizeVector GetShape() const
Definition: Tensor.h:1127
Tensor Reshape(const SizeVector &dst_shape) const
Definition: Tensor.cpp:671
#define AssertTensorDevice(tensor,...)
Definition: TensorCheck.h:45
Tensor Maximum(const Tensor &input, const Tensor &other)
Computes the element-wise maximum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:124
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:136
int64_t WrapDim(int64_t dim, int64_t max_dim, bool inclusive)
Wrap around negative dim.
Definition: ShapeUtil.cpp:131
int64_t NumDims() const
Definition: Tensor.h:1172
Tensor SetItem(const Tensor &value)
Set all items. Equivalent to tensor[:] = value in Python.
Definition: Tensor.cpp:564
Tensor Append(const Tensor &self, const Tensor &other, const utility::optional< int64_t > &axis)
Appends the two tensors, along the given axis into a new tensor. Both the tensors must have same data...
Definition: TensorFunction.cpp:118
Device GetDevice() const override
Definition: Tensor.cpp:1435
Definition: SizeVector.h:70
static Tensor ConcatenateImpl(const std::vector< Tensor > &tensors, const int64_t axis)
Definition: TensorFunction.cpp:15
#define LogError(...)
Definition: Logging.h:60
Tensor Concatenate(const std::vector< Tensor > &tensors, const utility::optional< int64_t > &axis)
Concatenates the list of tensors in their order, along the given axis into a new tensor....
Definition: TensorFunction.cpp:79
static TensorKey Slice(utility::optional< int64_t > start, utility::optional< int64_t > stop, utility::optional< int64_t > step)
Definition: TensorKey.cpp:138
#define AssertTensorDtype(tensor,...)
Definition: TensorCheck.h:21
constexpr nullopt_t nullopt
Definition: Optional.h:136
void BinaryEW(const Tensor &lhs, const Tensor &rhs, Tensor &dst, BinaryEWOpCode op_code)
Definition: BinaryEW.cpp:30