LLVM 20.0.0git
Public Member Functions | Protected Attributes | List of all members
log_reader.TensorValue Class Reference

Public Member Functions

def __init__ (self, TensorSpec spec, bytes buffer)
 
TensorSpec spec (self)
 
int __len__ (self)
 
def __getitem__ (self, index)
 

Protected Attributes

 _spec
 
 _buffer
 
 _view
 
 _len
 

Detailed Description

Definition at line 50 of file log_reader.py.

Constructor & Destructor Documentation

◆ __init__()

def log_reader.TensorValue.__init__ (   self,
TensorSpec  spec,
bytes  buffer 
)

Definition at line 51 of file log_reader.py.

Member Function Documentation

◆ __getitem__()

def log_reader.TensorValue.__getitem__ (   self,
  index 
)

Definition at line 63 of file log_reader.py.

References log_reader.TensorValue._len, and log_reader.TensorValue._view.

◆ __len__()

int log_reader.TensorValue.__len__ (   self)

Definition at line 60 of file log_reader.py.

References log_reader.TensorValue._len.

◆ spec()

TensorSpec log_reader.TensorValue.spec (   self)

Definition at line 57 of file log_reader.py.

References log_reader.TensorValue._spec.

Member Data Documentation

◆ _buffer

log_reader.TensorValue._buffer
protected

Definition at line 53 of file log_reader.py.

◆ _len

log_reader.TensorValue._len
protected

◆ _spec

log_reader.TensorValue._spec
protected

Definition at line 52 of file log_reader.py.

Referenced by log_reader.TensorValue.spec().

◆ _view

log_reader.TensorValue._view
protected

Definition at line 54 of file log_reader.py.

Referenced by log_reader.TensorValue.__getitem__().


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