mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 10:16:30 +00:00
write logs for inference and loader to file
This commit is contained in:
@@ -103,11 +103,11 @@ cdef class TensorRTEngine(InferenceEngine):
|
||||
constants.log('Converting to supported fp16')
|
||||
config.set_flag(trt.BuilderFlag.FP16)
|
||||
else:
|
||||
print('Converting to supported fp32. (fp16 is not supported)')
|
||||
constants.log('Converting to supported fp32. (fp16 is not supported)')
|
||||
plan = builder.build_serialized_network(network, config)
|
||||
|
||||
if plan is None:
|
||||
print('Conversion failed.')
|
||||
constants.logerror('Conversion failed.')
|
||||
return None
|
||||
constants.log('conversion done!')
|
||||
return bytes(plan)
|
||||
|
||||
Reference in New Issue
Block a user