Skip to content

Commit

Permalink
add int8 fp16 check
Browse files Browse the repository at this point in the history
  • Loading branch information
grimoire committed Aug 31, 2020
1 parent eeba34f commit b61ed79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion torch2trt/torch2trt.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ def torch2trt(module,
int8_mode=False,
int8_calib_dataset=None,
int8_calib_algorithm=DEFAULT_CALIBRATION_ALGORITHM):

if int8_mode and fp16_mode:
fp16_mode = False
inputs_in = inputs

# copy inputs to avoid modifications to source data
Expand Down

0 comments on commit b61ed79

Please sign in to comment.