AccelOnnxConverter Class

Class for converting models to AccelOnnx flavor.

Inheritance
builtins.object
AccelOnnxConverter

Methods

convert_tf_model

Convert a TensorFlow model into a AccelOnnx model.

convert_tf_model

Convert a TensorFlow model into a AccelOnnx model.

convert_tf_model(workspace, source_model, input_node, outputs_nodes, require_fpga_conversion=True)

Parameters

workspace
Workspace

Workspace object containing the registered model to retrieve

source_model
model or <xref:model id str>

Registered model to be converted

input_node
str

Name of the input layer

outputs_nodes
<xref:str list>

List of graph's output nodes where each one will represent the output layer of the network

require_fpga_conversion
bool
default value: True

Specify whether a FPGA is required for processing. Default value is True.

Returns

Object to wait for conversion and get the converted model

Return type

<xref:ModelConvertOperation>