const and non-const tensors in the appropriate address space More...
#include <TTL_int_ext_typed_tensors.h>
Data Fields | |
__global ulong * | 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 6475 of file TTL_int_ext_typed_tensors.h.
The base address of the tensor in the local address space
Definition at line 6476 of file TTL_int_ext_typed_tensors.h.
TTL_dim_t TTL_ext_ulong_tensor_t::elem_size |
The sizeof the elements in the tensor
Definition at line 6477 of file TTL_int_ext_typed_tensors.h.
TTL_layout_t TTL_ext_ulong_tensor_t::layout |
The layout of the tensor,
Definition at line 6478 of file TTL_int_ext_typed_tensors.h.
TTL_shape_t TTL_ext_ulong_tensor_t::shape |
The shape of the tensor in 3 dimensions
Definition at line 6479 of file TTL_int_ext_typed_tensors.h.