Skip to content

Commit d8b3e19

Browse files
committed
Notebook failure
1 parent 3215712 commit d8b3e19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/EfficientNet-example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@
610610
"source": [
611611
"# The compiled module will have precision as specified by \"op_precision\".\n",
612612
"# Here, it will have FP16 precision.\n",
613-
"trt_model_fp16 = torch_tensorrt.compile(model, inputs = [torch_tensorrt.Input((128, 3, 224, 224), dtype=torch.half)],\n",
613+
"trt_model_fp16 = torch_tensorrt.compile(model.half(), inputs = [torch_tensorrt.Input((128, 3, 224, 224), dtype=torch.half)],\n",
614614
" enabled_precisions = {torch.half}, # Run with FP16\n",
615615
" workspace_size = 1 << 22\n",
616616
")"

0 commit comments

Comments
 (0)