Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 219e668

Browse files
authored
remove model as arg for _replace_initializer() (#1184) (#1187)
1 parent 379f3e3 commit 219e668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sparseml/pytorch/sparsification/quantization/quantize_qat_export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def _replace_initializer(init_old, init_new):
259259
for init in model.graph.initializer:
260260
if init.data_type == 3: # int8 dtype
261261
init_uint8 = _cast_init_int8_to_uint8(init)
262-
_replace_initializer(model, init, init_uint8)
262+
_replace_initializer(init, init_uint8)
263263

264264

265265
def _delete_repeated_qat_blocks(model: ModelProto):

0 commit comments

Comments
 (0)