Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
onnx::AttributeProto Class Reference

Definition at line 442 of file onnx.hxx.

Public Types

enum  AttributeType {
  UNDEFINED = 0 , FLOAT = 1 , INT = 2 , STRING = 3 ,
  TENSOR = 4 , GRAPH = 5 , FLOATS = 6 , INTS = 7 ,
  STRINGS = 8 , TENSORS = 9 , GRAPHS = 10 , SPARSE_TENSOR = 11 ,
  SPARSE_TENSORS = 12
}
 

Public Member Functions

float f () const
 
const std::vector< float > & floats () const
 
const GraphProtog () const
 
bool has_g () const
 
bool has_t () const
 
int64_t i () const
 
const std::vector< int64_t > & ints () const
 
const std::string & name () const
 
void ParseFrom (detail::WireReader r)
 
const std::string & s () const
 
const std::vector< std::string > & strings () const
 
const TensorProtot () const
 
AttributeType type () const
 

Private Attributes

float fF = 0.f
 
std::vector< float > fFloats
 
std::shared_ptr< GraphProtofG
 
bool fHasG = false
 
bool fHasT = false
 
int64_t fI = 0
 
std::vector< int64_t > fInts
 
std::string fName
 
std::string fS
 
std::vector< std::string > fStrings
 
TensorProto fT
 
AttributeType fType = UNDEFINED
 

#include </github/home/ROOT-CI/src/tmva/sofie_parsers/src/onnx.hxx>

Member Enumeration Documentation

◆ AttributeType

Enumerator
UNDEFINED 
FLOAT 
INT 
STRING 
TENSOR 
GRAPH 
FLOATS 
INTS 
STRINGS 
TENSORS 
GRAPHS 
SPARSE_TENSOR 
SPARSE_TENSORS 

Definition at line 444 of file onnx.hxx.

Member Function Documentation

◆ f()

float onnx::AttributeProto::f ( ) const
inline

Definition at line 462 of file onnx.hxx.

◆ floats()

const std::vector< float > & onnx::AttributeProto::floats ( ) const
inline

Definition at line 470 of file onnx.hxx.

◆ g()

const GraphProto & onnx::AttributeProto::g ( ) const
inline

Definition at line 586 of file onnx.hxx.

◆ has_g()

bool onnx::AttributeProto::has_g ( ) const
inline

Definition at line 467 of file onnx.hxx.

◆ has_t()

bool onnx::AttributeProto::has_t ( ) const
inline

Definition at line 468 of file onnx.hxx.

◆ i()

int64_t onnx::AttributeProto::i ( ) const
inline

Definition at line 463 of file onnx.hxx.

◆ ints()

const std::vector< int64_t > & onnx::AttributeProto::ints ( ) const
inline

Definition at line 471 of file onnx.hxx.

◆ name()

const std::string & onnx::AttributeProto::name ( ) const
inline

Definition at line 460 of file onnx.hxx.

◆ ParseFrom()

void onnx::AttributeProto::ParseFrom ( detail::WireReader r)
inline

Definition at line 591 of file onnx.hxx.

◆ s()

const std::string & onnx::AttributeProto::s ( ) const
inline

Definition at line 464 of file onnx.hxx.

◆ strings()

const std::vector< std::string > & onnx::AttributeProto::strings ( ) const
inline

Definition at line 472 of file onnx.hxx.

◆ t()

const TensorProto & onnx::AttributeProto::t ( ) const
inline

Definition at line 465 of file onnx.hxx.

◆ type()

AttributeType onnx::AttributeProto::type ( ) const
inline

Definition at line 461 of file onnx.hxx.

Member Data Documentation

◆ fF

float onnx::AttributeProto::fF = 0.f
private

Definition at line 479 of file onnx.hxx.

◆ fFloats

std::vector<float> onnx::AttributeProto::fFloats
private

Definition at line 483 of file onnx.hxx.

◆ fG

std::shared_ptr<GraphProto> onnx::AttributeProto::fG
private

Definition at line 489 of file onnx.hxx.

◆ fHasG

bool onnx::AttributeProto::fHasG = false
private

Definition at line 482 of file onnx.hxx.

◆ fHasT

bool onnx::AttributeProto::fHasT = false
private

Definition at line 482 of file onnx.hxx.

◆ fI

int64_t onnx::AttributeProto::fI = 0
private

Definition at line 480 of file onnx.hxx.

◆ fInts

std::vector<int64_t> onnx::AttributeProto::fInts
private

Definition at line 484 of file onnx.hxx.

◆ fName

std::string onnx::AttributeProto::fName
private

Definition at line 477 of file onnx.hxx.

◆ fS

std::string onnx::AttributeProto::fS
private

Definition at line 481 of file onnx.hxx.

◆ fStrings

std::vector<std::string> onnx::AttributeProto::fStrings
private

Definition at line 485 of file onnx.hxx.

◆ fT

TensorProto onnx::AttributeProto::fT
private

Definition at line 486 of file onnx.hxx.

◆ fType

AttributeType onnx::AttributeProto::fType = UNDEFINED
private

Definition at line 478 of file onnx.hxx.

  • tmva/sofie_parsers/src/onnx.hxx