Functions | |
def | check_model (model) |
def | infer_shapes (model) |
def | all_tensor_names (model) |
def | check_outputs_not_found (not_found, all_outputs) |
def | mark_outputs (model, outputs) |
def | mark_layerwise (model) |
def | unmark_outputs (model, outputs) |
def | get_shape (tensor) |
def | get_dtype (tensor) |
def | get_values (tensor) |
def | get_tensor_metadata (tensors) |
def | get_input_metadata (graph) |
def | get_output_metadata (graph) |
def | str_from_onnx (model, mode="full") |
def | str_from_onnx_graph (graph, mode, tensors, indent_level=0) |
def polygraphy.backend.onnx.util.check_model | ( | model | ) |
def polygraphy.backend.onnx.util.infer_shapes | ( | model | ) |
def polygraphy.backend.onnx.util.all_tensor_names | ( | model | ) |
def polygraphy.backend.onnx.util.check_outputs_not_found | ( | not_found, | |
all_outputs | |||
) |
def polygraphy.backend.onnx.util.mark_outputs | ( | model, | |
outputs | |||
) |
def polygraphy.backend.onnx.util.mark_layerwise | ( | model | ) |
def polygraphy.backend.onnx.util.unmark_outputs | ( | model, | |
outputs | |||
) |
def polygraphy.backend.onnx.util.get_shape | ( | tensor | ) |
def polygraphy.backend.onnx.util.get_dtype | ( | tensor | ) |
def polygraphy.backend.onnx.util.get_values | ( | tensor | ) |
def polygraphy.backend.onnx.util.get_tensor_metadata | ( | tensors | ) |
def polygraphy.backend.onnx.util.get_input_metadata | ( | graph | ) |
def polygraphy.backend.onnx.util.get_output_metadata | ( | graph | ) |
def polygraphy.backend.onnx.util.str_from_onnx | ( | model, | |
mode = "full" |
|||
) |
Converts an ONNX Graph to a human-readable representation Args: graph (onnx.GraphProto): The onnx graph. mode (str): Controls what is displayed. Choices: ["none", "basic", "attrs", "full"] Returns: str
def polygraphy.backend.onnx.util.str_from_onnx_graph | ( | graph, | |
mode, | |||
tensors, | |||
indent_level = 0 |
|||
) |