const and non-const tensors in the appropriate address space More...
#include <TTL_int_ext_typed_tensors.h>
Data Fields | |
__global long * | base |
TTL_dim_t | elem_size |
TTL_layout_t | layout |
TTL_shape_t | shape |
const and non-const tensors in the appropriate address space
Use of macros to ensure that structs are EXACTLY the same, along for the compiler to remove duplication and potentially a TTL_int_tensor_t to be safely case to a TTL_const_int_tensor_t.
Do not add a cast for TTL_const_int_tensor_t to TTL_int_tensor_t because that is not safe.
Definition at line 5671 of file TTL_int_ext_typed_tensors.h.
__global long* TTL_ext_long_tensor_t::base |
The base address of the tensor in the local address space
Definition at line 5672 of file TTL_int_ext_typed_tensors.h.
TTL_dim_t TTL_ext_long_tensor_t::elem_size |
The sizeof the elements in the tensor
Definition at line 5673 of file TTL_int_ext_typed_tensors.h.
TTL_layout_t TTL_ext_long_tensor_t::layout |
The layout of the tensor,
Definition at line 5674 of file TTL_int_ext_typed_tensors.h.
TTL_shape_t TTL_ext_long_tensor_t::shape |
The shape of the tensor in 3 dimensions
Definition at line 5675 of file TTL_int_ext_typed_tensors.h.