Open3D (C++ API)
Public Member Functions | Data Fields
open3d::TensorRef Struct Reference

A minimalistic class that reference a Tensor. More...

#include <Indexer.h>

Public Member Functions

 TensorRef ()
 
 TensorRef (const Tensor &t)
 
void Permute (const SizeVector &dims)
 
bool operator== (const TensorRef &other) const
 
bool operator!= (const TensorRef &other) const
 

Data Fields

void * data_ptr_
 
int64_t ndims_ = 0
 
int64_t dtype_byte_size_ = 0
 
int64_t shape_ [MAX_DIMS]
 
int64_t byte_strides_ [MAX_DIMS]
 

Detailed Description

A minimalistic class that reference a Tensor.

Constructor & Destructor Documentation

◆ TensorRef() [1/2]

open3d::TensorRef::TensorRef ( )
inline

◆ TensorRef() [2/2]

open3d::TensorRef::TensorRef ( const Tensor t)
inline

Member Function Documentation

◆ operator!=()

bool open3d::TensorRef::operator!= ( const TensorRef other) const
inline

◆ operator==()

bool open3d::TensorRef::operator== ( const TensorRef other) const
inline

◆ Permute()

void open3d::TensorRef::Permute ( const SizeVector dims)
inline

Field Documentation

◆ byte_strides_

int64_t open3d::TensorRef::byte_strides_[MAX_DIMS]

◆ data_ptr_

void* open3d::TensorRef::data_ptr_

◆ dtype_byte_size_

int64_t open3d::TensorRef::dtype_byte_size_ = 0

◆ ndims_

int64_t open3d::TensorRef::ndims_ = 0

◆ shape_

int64_t open3d::TensorRef::shape_[MAX_DIMS]

The documentation for this struct was generated from the following file: