We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063be0d commit bef9548Copy full SHA for bef9548
py/torch_tensorrt/fx/converters/acc_ops_converters.py
@@ -3369,7 +3369,7 @@ def acc_ops_gelu(
3369
) -> Union[TRTTensor, Sequence[TRTTensor]]:
3370
input_val = kwargs["input"]
3371
approximate = kwargs["approximate"]
3372
- if approximate is not "none":
+ if approximate != "none":
3373
raise RuntimeError("GeLU converter currently doesn't support fast gelu compute")
3374
if not isinstance(input_val, TRTTensor):
3375
raise RuntimeError(
0 commit comments