Skip to content

Commit 71977cb

Browse files
Fix CI
1 parent 908c611 commit 71977cb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

DeepQuant/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#
55
# Federico Brancasi <[email protected]>
66

7+
# FBRANCASI: Workaround for PyTorch/FX API change: ensure private alias exists
8+
import torch.fx.node as _fx_node
9+
10+
if not hasattr(_fx_node.Node, "_Node__update_args_kwargs"):
11+
_fx_node.Node._Node__update_args_kwargs = _fx_node.Node._update_args_kwargs
12+
713
from DeepQuant.Export import brevitasToTrueQuant
814

915
__all__ = ["brevitasToTrueQuant"]

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ dependencies = [
3333
"onnx",
3434
"onnxoptimizer",
3535
"onnxruntime",
36+
"ultralytics",
3637
]
3738

3839
[tool.setuptools]

0 commit comments

Comments
 (0)