You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to convert a tensorflow saved_model to tensorrt engine using the below python script.
from tensorflow.python.compiler.tensorrt import trt_convert as trt
# Conversion Parameters
conversion_params = trt.TrtConversionParams(precision_mode=trt.TrtPrecisionMode.FP16)
input_saved_model_dir = "/home/administrator/Documents/penguin_behavior_detection/tf_onnx_trt_stuff/seagate_exported_model/saved_model"
output_saved_model_dir = "/home/administrator/Documents/penguin_behavior_detection/tf_onnx_trt_stuff/"
converter = trt.TrtGraphConverterV2(input_saved_model_dir=input_saved_model_dir, conversion_params=conversion_params)
# Converter method used to partition and optimize TensorRT compatible segments
converter.convert()
converter.summary()
# Save the model to the disk
converter.save(output_saved_model_dir)
This is the structure of seagate_exported_model directory
I am trying to convert a tensorflow saved_model to tensorrt engine using the below python script.
This is the structure of
seagate_exported_model
directoryI get below output on the terminal
Below is my environment
Any help is highly appreciated. Thanks in advance!
The text was updated successfully, but these errors were encountered: