Oakfield API Documentation 1.0.0
Numerical core APIs
Loading...
Searching...
No Matches
SimNeuralTensorView Struct Reference

Canonical tensor view generated from a field. More...

#include <neural_tensor_map.h>

Public Attributes

void * data
 
SimNeuralTensorValueType value_type
 
size_t value_size
 
size_t rank
 
size_t shape [SIM_NEURAL_TENSOR_MAX_RANK]
 
size_t strides [SIM_NEURAL_TENSOR_MAX_RANK]
 
uint8_t batch_axis
 
uint8_t channel_axis
 
uint8_t spatial_rank
 

Detailed Description

Canonical tensor view generated from a field.

Strides are expressed in logical tensor values (not bytes).

Member Data Documentation

◆ batch_axis

uint8_t SimNeuralTensorView::batch_axis

Always 0 in current canonical mapping.

◆ channel_axis

uint8_t SimNeuralTensorView::channel_axis

Channel axis in tensor coordinates.

◆ data

void* SimNeuralTensorView::data

Tensor data pointer.

◆ rank

size_t SimNeuralTensorView::rank

Tensor rank.

◆ shape

size_t SimNeuralTensorView::shape[SIM_NEURAL_TENSOR_MAX_RANK]

Extent per tensor axis.

◆ spatial_rank

uint8_t SimNeuralTensorView::spatial_rank

Number of spatial dimensions in tensor view.

◆ strides

size_t SimNeuralTensorView::strides[SIM_NEURAL_TENSOR_MAX_RANK]

Stride per tensor axis in tensor values.

◆ value_size

size_t SimNeuralTensorView::value_size

Size of one tensor value in bytes.

◆ value_type

SimNeuralTensorValueType SimNeuralTensorView::value_type

Value representation.


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