#[repr(u32)]pub enum cutensorOperationDescriptorAttribute_t {
CUTENSOR_OPERATION_DESCRIPTOR_TAG = 0,
CUTENSOR_OPERATION_DESCRIPTOR_SCALAR_TYPE = 1,
CUTENSOR_OPERATION_DESCRIPTOR_FLOPS = 2,
CUTENSOR_OPERATION_DESCRIPTOR_MOVED_BYTES = 3,
CUTENSOR_OPERATION_DESCRIPTOR_PADDING_LEFT = 4,
CUTENSOR_OPERATION_DESCRIPTOR_PADDING_RIGHT = 5,
CUTENSOR_OPERATION_DESCRIPTOR_PADDING_VALUE = 6,
}Expand description
This enum lists all attributes of a cutensorOperationDescriptor_t that can be modified (see cutensorOperationDescriptorSetAttribute and cutensorOperationDescriptorGetAttribute).
Variants§
CUTENSOR_OPERATION_DESCRIPTOR_TAG = 0
int32_t: enables users to distinguish two identical problems with respect to the sw-managed plan-cache. (default value: 0).
CUTENSOR_OPERATION_DESCRIPTOR_SCALAR_TYPE = 1
cudaDataType_t: data type of the scaling factors.
CUTENSOR_OPERATION_DESCRIPTOR_FLOPS = 2
float: number of floating-point operations necessary to perform this operation (assuming all scalar are not equal to zero, unless otherwise specified).
CUTENSOR_OPERATION_DESCRIPTOR_MOVED_BYTES = 3
float: minimal number of bytes transferred from/to global-memory (assuming all scalar are not equal to zero, unless otherwise specified).
CUTENSOR_OPERATION_DESCRIPTOR_PADDING_LEFT = 4
uint32_t[] (of size descOut->numModes): Each entry i holds the number of padded values that should be padded to the left of the ith dimension.
CUTENSOR_OPERATION_DESCRIPTOR_PADDING_RIGHT = 5
uint32_t[] (of size descOut->numModes): Each entry i holds the number of padded values that should be padded to the right of the ith dimension.
CUTENSOR_OPERATION_DESCRIPTOR_PADDING_VALUE = 6
host-side pointer to element of the same type as the output tensor: Constant padding value.
Trait Implementations§
Source§impl Clone for cutensorOperationDescriptorAttribute_t
impl Clone for cutensorOperationDescriptorAttribute_t
Source§fn clone(&self) -> cutensorOperationDescriptorAttribute_t
fn clone(&self) -> cutensorOperationDescriptorAttribute_t
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for cutensorOperationDescriptorAttribute_t
impl Eq for cutensorOperationDescriptorAttribute_t
Source§impl From<cutensorOperationDescriptorAttribute_t> for u32
impl From<cutensorOperationDescriptorAttribute_t> for u32
Source§fn from(enum_value: cutensorOperationDescriptorAttribute_t) -> Self
fn from(enum_value: cutensorOperationDescriptorAttribute_t) -> Self
Source§impl Ord for cutensorOperationDescriptorAttribute_t
impl Ord for cutensorOperationDescriptorAttribute_t
Source§fn cmp(&self, other: &cutensorOperationDescriptorAttribute_t) -> Ordering
fn cmp(&self, other: &cutensorOperationDescriptorAttribute_t) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for cutensorOperationDescriptorAttribute_t
impl PartialEq for cutensorOperationDescriptorAttribute_t
Source§fn eq(&self, other: &cutensorOperationDescriptorAttribute_t) -> bool
fn eq(&self, other: &cutensorOperationDescriptorAttribute_t) -> bool
self and other values to be equal, and is used by ==.