LLVM 20.0.0git
|
Classes | |
class | TensorSpec |
class | TensorValue |
Functions | |
TensorValue | read_tensor (io.BufferedReader fs, TensorSpec ts) |
def | pretty_print_tensor_value (TensorValue tv) |
def | read_header (io.BufferedReader f) |
def | read_one_observation (Optional[str] context, str event_str, io.BufferedReader f, List[TensorSpec] tensor_specs, Optional[TensorSpec] score_spec) |
def | read_stream (str fname) |
def | main (args) |
Variables | |
dict | _element_types |
Reader for training log. See lib/Analysis/TrainingLogger.cpp for a description of the format.
def log_reader.main | ( | args | ) |
Definition at line 126 of file log_reader.py.
References main(), pretty_print_tensor_value(), print(), and read_stream().
Referenced by main().
def log_reader.pretty_print_tensor_value | ( | TensorValue | tv | ) |
Definition at line 75 of file log_reader.py.
References print().
Referenced by main(), and interactive_host.run_interactive().
def log_reader.read_header | ( | io.BufferedReader | f | ) |
Definition at line 79 of file log_reader.py.
Referenced by read_stream(), and interactive_host.run_interactive().
def log_reader.read_one_observation | ( | Optional[str] | context, |
str | event_str, | ||
io.BufferedReader | f, | ||
List[TensorSpec] | tensor_specs, | ||
Optional[TensorSpec] | score_spec | ||
) |
Definition at line 87 of file log_reader.py.
References read_tensor().
Referenced by read_stream(), and interactive_host.run_interactive().
def log_reader.read_stream | ( | str | fname | ) |
Definition at line 112 of file log_reader.py.
References read_header(), and read_one_observation().
Referenced by main().
TensorValue log_reader.read_tensor | ( | io.BufferedReader | fs, |
TensorSpec | ts | ||
) |
Definition at line 69 of file log_reader.py.
Referenced by read_one_observation().
|
protected |
Definition at line 13 of file log_reader.py.