Skip to content

Commit c508be4

Browse files
committed
Notebook failure
1 parent 3215712 commit c508be4

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
@@ -525,7 +525,7 @@
525525
"source": [
526526
"# The compiled module will have precision as specified by \"op_precision\".\n",
527527
"# Here, it will have FP32 precision.\n",
528-
"trt_model_fp32 = torch_tensorrt.compile(model, inputs = [torch_tensorrt.Input((128, 3, 224, 224), dtype=torch.float32)],\n",
528+
"trt_model_fp32 = torch_tensorrt.compile(model.half(), inputs = [torch_tensorrt.Input((128, 3, 224, 224), dtype=torch.float32)],\n",
529529
" enabled_precisions = {torch.float32}, # Run with FP32\n",
530530
" workspace_size = 1 << 22\n",
531531
")"

0 commit comments

Comments
 (0)