Skip to content

Commit fe1ed9b

Browse files
authored
Update pyproject.toml to use 0.1.34 MLIR-TRT (#261)
Signed-off-by: yizhuoz004 <[email protected]>
1 parent eefea1a commit fe1ed9b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tripy/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ requires-python = ">= 3.9"
88
license = {text = "Apache 2.0"}
99
dependencies = [
1010
"tensorrt~=10.0",
11-
"mlir-tensorrt-compiler==0.1.32+cuda12.trt102",
12-
"mlir-tensorrt-runtime==0.1.32+cuda12.trt102",
11+
"mlir-tensorrt-compiler==0.1.34+cuda12.trt102",
12+
"mlir-tensorrt-runtime==0.1.34+cuda12.trt102",
1313
"colored==2.2.3",
1414
]
1515

tripy/tests/integration/test_conv_transpose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_transposed_convolution_2d(self, torch_dtype, tp_dtype, test_case):
186186
expected = conv_layer_torch(input_torch).to(torch_dtype)
187187
output = conv_layer(input)
188188

189-
rtol_ = 1e-3
189+
rtol_ = 1e-2
190190
assert tp.allclose(output, tp.Tensor(expected), rtol=rtol_)
191191
assert output.shape == expected.shape
192192

tripy/tripy/frontend/trace/ops/binary_elementwise.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ def __rtruediv__(self: numbers.Number, other: "tripy.types.TensorLike") -> "trip
494494
@TENSOR_METHOD_REGISTRY("__floordiv__")
495495
@frontend_utils.convert_inputs_to_tensors(sync_arg_types=[("self", "other")])
496496
@constraints.dtype_info(
497-
dtype_variables={"T1": ["float32", "float16", "bfloat16", "int4", "int8", "int32", "int64"]},
497+
dtype_variables={"T1": ["float32", "float16", "bfloat16", "float8", "int4", "int8", "int32", "int64"]},
498498
dtype_constraints={"self": "T1", "other": "T1", constraints.RETURN_VALUE: "T1"},
499499
)
500500
def __floordiv__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor", Any]) -> "tripy.Tensor":
@@ -530,7 +530,7 @@ def __floordiv__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor",
530530
@TENSOR_METHOD_REGISTRY("__rfloordiv__")
531531
@frontend_utils.convert_inputs_to_tensors(sync_arg_types=[("self", "other")])
532532
@constraints.dtype_info(
533-
dtype_variables={"T1": ["float32", "float16", "bfloat16", "int4", "int8", "int32", "int64"]},
533+
dtype_variables={"T1": ["float32", "float16", "bfloat16", "float8", "int4", "int8", "int32", "int64"]},
534534
dtype_constraints={"self": "T1", "other": "T1", constraints.RETURN_VALUE: "T1"},
535535
)
536536
def __rfloordiv__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor", Any]) -> "tripy.Tensor":
@@ -566,7 +566,7 @@ def __rfloordiv__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor",
566566
@TENSOR_METHOD_REGISTRY("__mod__")
567567
@frontend_utils.convert_inputs_to_tensors(sync_arg_types=[("self", "other")])
568568
@constraints.dtype_info(
569-
dtype_variables={"T1": ["float32", "float16", "bfloat16"]},
569+
dtype_variables={"T1": ["float32", "float16", "bfloat16", "float8"]},
570570
dtype_constraints={"self": "T1", "other": "T1", constraints.RETURN_VALUE: "T1"},
571571
)
572572
def __mod__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor", Any]) -> "tripy.Tensor":
@@ -597,7 +597,7 @@ def __mod__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor", Any])
597597
@TENSOR_METHOD_REGISTRY("__rmod__")
598598
@frontend_utils.convert_inputs_to_tensors(sync_arg_types=[("self", "other")])
599599
@constraints.dtype_info(
600-
dtype_variables={"T1": ["float32", "float16", "bfloat16"]},
600+
dtype_variables={"T1": ["float32", "float16", "bfloat16", "float8"]},
601601
dtype_constraints={"self": "T1", "other": "T1", constraints.RETURN_VALUE: "T1"},
602602
)
603603
def __rmod__(self: Union["tripy.Tensor", Any], other: Union["tripy.Tensor", Any]) -> "tripy.Tensor":

0 commit comments

Comments
 (0)