We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbe8ff2 commit 9a1c426Copy full SHA for 9a1c426
py/torch_tensorrt/dynamo/conversion/impl/reduce.py
@@ -25,14 +25,11 @@ def amax(
25
):
26
input_val = cast_trt_tensor(network, input_val, trt.float32, name)
27
28
- if dim is None:
29
- raise ValueError("amax requires specifying dimension(s) (dim).")
30
-
31
layer = network.add_reduce(
32
input_val,
33
trt.ReduceOperation.MAX,
34
axes=get_axes_for_reduce_op(dim),
35
keep_dims=keepdim,
36
)
37
- set_layer_name(layer, target, name)
+ set_layer_name(layer, target, name, source_ir)
38
return layer.get_output(0)
0 commit comments