ONE - On-device Neural Engine
Loading...
Searching...
No Matches
RunTimeOperandInfo Struct Reference

#include <Executor.h>

Collaboration diagram for RunTimeOperandInfo:

Public Member Functions

Shape shape () const
 

Data Fields

OperandType type
 
std::vector< uint32_t > dimensions
 
float scale
 
int32_t zeroPoint
 
uint8_t * buffer
 
uint32_t length
 
OperandLifeTime lifetime
 
uint32_t numberOfUsesLeft
 

Detailed Description

Definition at line 30 of file Executor.h.

Member Function Documentation

◆ shape()

Shape RunTimeOperandInfo::shape ( ) const
inline

Definition at line 61 of file Executor.h.

62 {
63 return Shape{.type = type, .dimensions = dimensions, .scale = scale, .offset = zeroPoint};
64 }
OperandType type
Definition Executor.h:33
int32_t zeroPoint
Definition Executor.h:43
std::vector< uint32_t > dimensions
Definition Executor.h:41
Definition Shape.h:28
OperandType type
Definition Shape.h:29

References dimensions, scale, type, Shape::type, and zeroPoint.

Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), and RandomDataGenerator.RandomDataGenerator::_gen_uint8().

Field Documentation

◆ buffer

uint8_t* RunTimeOperandInfo::buffer

Definition at line 48 of file Executor.h.

◆ dimensions

std::vector<uint32_t> RunTimeOperandInfo::dimensions

Definition at line 41 of file Executor.h.

Referenced by shape().

◆ length

uint32_t RunTimeOperandInfo::length

Definition at line 50 of file Executor.h.

◆ lifetime

OperandLifeTime RunTimeOperandInfo::lifetime

Definition at line 53 of file Executor.h.

◆ numberOfUsesLeft

uint32_t RunTimeOperandInfo::numberOfUsesLeft

Definition at line 59 of file Executor.h.

◆ scale

float RunTimeOperandInfo::scale

Definition at line 42 of file Executor.h.

Referenced by shape().

◆ type

OperandType RunTimeOperandInfo::type

Definition at line 33 of file Executor.h.

Referenced by shape().

◆ zeroPoint

int32_t RunTimeOperandInfo::zeroPoint

Definition at line 43 of file Executor.h.

Referenced by shape().


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