ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::ir::operation::Custom::Userdata Struct Reference

#include <Custom.h>

Public Member Functions

 Userdata ()
 
 Userdata (const Userdata &o)
 
 ~Userdata ()
 

Data Fields

char * data
 
size_t size
 

Detailed Description

Definition at line 33 of file Custom.h.

Constructor & Destructor Documentation

◆ Userdata() [1/2]

onert::ir::operation::Custom::Userdata::Userdata ( )
inline

Definition at line 38 of file Custom.h.

◆ Userdata() [2/2]

onert::ir::operation::Custom::Userdata::Userdata ( const Userdata o)
inline

Definition at line 39 of file Custom.h.

40 {
41 size = o.size;
42 data = new char[size];
43 std::memcpy(data, o.data, size);
44 }

References data, and size.

◆ ~Userdata()

onert::ir::operation::Custom::Userdata::~Userdata ( )
inline

Definition at line 45 of file Custom.h.

45{ delete[] data; }

References data.

Field Documentation

◆ data

char* onert::ir::operation::Custom::Userdata::data

Definition at line 35 of file Custom.h.

Referenced by Userdata(), onert::backend::cpu::KernelGenerator::visit(), and ~Userdata().

◆ size

size_t onert::ir::operation::Custom::Userdata::size

Definition at line 36 of file Custom.h.

Referenced by Userdata(), and onert::backend::cpu::KernelGenerator::visit().


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