CUDNN API  8
cudnn_frontend::Tensor_v8 Class Reference

#include <cudnn_frontend_Tensor.h>

Inheritance diagram for cudnn_frontend::Tensor_v8:
Inheritance graph
Collaboration diagram for cudnn_frontend::Tensor_v8:
Collaboration graph

Public Member Functions

std::string describe () const override
 Return a string describing the backend Descriptor. More...
 
 Tensor_v8 (Tensor_v8 &&from)
 
 ~Tensor_v8 ()=default
 
- Public Member Functions inherited from cudnn_frontend::BackendDescriptor
cudnnBackendDescriptor_t get_raw_desc () const
 
cudnnStatus_t get_status () const
 Current status of the descriptor. More...
 
void set_status (cudnnStatus_t const status_) const
 Set status of the descriptor. More...
 
void set_error (const char *message) const
 Set Diagonistic error message. More...
 
const char * get_error () const
 Diagonistic error message if any. More...
 
ManagedOpaqueDescriptor get_desc () const
 Returns a copy of underlying managed descriptor. More...
 
cudnnStatus_t initialize_managed_backend_pointer (cudnnBackendDescriptorType_t type)
 Initializes the underlying managed descriptor. More...
 

Private Member Functions

 Tensor_v8 ()=default
 
 Tensor_v8 (Tensor_v8 const &)=delete
 
Tensor_v8operator= (Tensor_v8 const &)=delete
 

Private Attributes

cudnnDataType_t data_type = CUDNN_DATA_FLOAT
 
int64_t btensor_dimA [CUDNN_DIM_MAX+1] = {-1}
 Datatype of the elements. More...
 
int64_t btensor_strA [CUDNN_DIM_MAX+1] = {-1}
 n, g, c, d, h, w More...
 
int64_t id = -1
 n, g, c, d, h, w More...
 
int64_t alignment = -1
 Unique id of the tensor. More...
 
int64_t nDims = -1
 Certain engine config expect minimum alignment of 16B. More...
 
bool isVirtual = false
 Number of Dimensions of the tensor. More...
 

Friends

class TensorBuilder_v8
 

Additional Inherited Members

- Protected Member Functions inherited from cudnn_frontend::BackendDescriptor
 BackendDescriptor (ManagedOpaqueDescriptor pointer_, cudnnStatus_t status_, std::string err_msg_)
 
 BackendDescriptor ()=default
 
- Protected Attributes inherited from cudnn_frontend::BackendDescriptor
ManagedOpaqueDescriptor pointer
 
cudnnStatus_t status = CUDNN_STATUS_SUCCESS
 Shared pointer of the OpaqueBackendPointer. More...
 
std::string err_msg
 Error message if any being set. More...
 

Detailed Description

Tensor_v8 Class This class tells the properties of the Tensor_v8 on which the operation will be performed Properties:

  • dataType
  • alignment
  • unique identifier
  • tensor dimensions
  • tensor strides
  • isVirtual

Use TensorBuilder_v8 to build this class. Describe returns a string describing the tensor class

Definition at line 51 of file cudnn_frontend_Tensor.h.

Constructor & Destructor Documentation

◆ Tensor_v8() [1/3]

cudnn_frontend::Tensor_v8::Tensor_v8 ( Tensor_v8 &&  from)
inline

Definition at line 75 of file cudnn_frontend_Tensor.h.

References btensor_dimA, btensor_strA, operator=(), Tensor_v8(), and ~Tensor_v8().

◆ ~Tensor_v8()

cudnn_frontend::Tensor_v8::~Tensor_v8 ( )
default

Referenced by Tensor_v8().

◆ Tensor_v8() [2/3]

cudnn_frontend::Tensor_v8::Tensor_v8 ( )
privatedefault

Referenced by Tensor_v8().

◆ Tensor_v8() [3/3]

cudnn_frontend::Tensor_v8::Tensor_v8 ( Tensor_v8 const &  )
privatedelete

Member Function Documentation

◆ describe()

std::string cudnn_frontend::Tensor_v8::describe ( ) const
inlineoverridevirtual

Return a string describing the backend Descriptor.

Implements cudnn_frontend::BackendDescriptor.

Definition at line 55 of file cudnn_frontend_Tensor.h.

References alignment, btensor_dimA, btensor_strA, data_type, and nDims.

◆ operator=()

Tensor_v8& cudnn_frontend::Tensor_v8::operator= ( Tensor_v8 const &  )
privatedelete

Friends And Related Function Documentation

◆ TensorBuilder_v8

friend class TensorBuilder_v8
friend

Definition at line 53 of file cudnn_frontend_Tensor.h.

Referenced by cudnn_frontend::TensorBuilder_v8::build().

Member Data Documentation

◆ alignment

int64_t cudnn_frontend::Tensor_v8::alignment = -1
private

Unique id of the tensor.

Definition at line 98 of file cudnn_frontend_Tensor.h.

Referenced by describe().

◆ btensor_dimA

int64_t cudnn_frontend::Tensor_v8::btensor_dimA[CUDNN_DIM_MAX+1] = {-1}
private

Datatype of the elements.

Definition at line 95 of file cudnn_frontend_Tensor.h.

Referenced by describe(), and Tensor_v8().

◆ btensor_strA

int64_t cudnn_frontend::Tensor_v8::btensor_strA[CUDNN_DIM_MAX+1] = {-1}
private

n, g, c, d, h, w

Definition at line 96 of file cudnn_frontend_Tensor.h.

Referenced by describe(), and Tensor_v8().

◆ data_type

cudnnDataType_t cudnn_frontend::Tensor_v8::data_type = CUDNN_DATA_FLOAT
private

Definition at line 94 of file cudnn_frontend_Tensor.h.

Referenced by describe().

◆ id

int64_t cudnn_frontend::Tensor_v8::id = -1
private

n, g, c, d, h, w

Definition at line 97 of file cudnn_frontend_Tensor.h.

◆ isVirtual

bool cudnn_frontend::Tensor_v8::isVirtual = false
private

Number of Dimensions of the tensor.

Definition at line 101 of file cudnn_frontend_Tensor.h.

◆ nDims

int64_t cudnn_frontend::Tensor_v8::nDims = -1
private

Certain engine config expect minimum alignment of 16B.

Alignment of the tensor.

Definition at line 100 of file cudnn_frontend_Tensor.h.

Referenced by describe().


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