You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a special case where node.args can be lists with many incoming
dq-nodes.
Signed-off-by: Oscar Andersson <[email protected]>
Change-Id: Icf511a8bdeaaffb597b18455ab7f1fbd947ce3ca
self, graph_module: GraphModule, node: Node, arg_list: list[Node], i: int
84
+
):
85
+
input_qparams=None
86
+
nodes_to_remove=set()
87
+
forarginarg_list:
88
+
ifnotisinstance(arg, Node):
89
+
return
90
+
"""
91
+
Make sure arg has requires_grad set to False
92
+
For parameters that are not quantized, sometimes (i.e. convolution)
93
+
the Parameter(FakeTensor(...)) has requires_grad set to True, which
94
+
causes the retracing of the graph to fail with:
95
+
96
+
E RuntimeError: isDifferentiableType(variable.scalar_type()) INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/autograd/functions/utils.h":74, please report a bug to PyTorch.
# For parameters that are not quantized, sometimes (i.e. convolution)
105
-
# the Parameter(FakeTensor(...)) has requires_grad set to True, which
106
-
# causes the retracing of the graph to fail with:
107
-
#
108
-
# E RuntimeError: isDifferentiableType(variable.scalar_type()) INTERNAL ASSERT FAILED at "/Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/autograd/functions/utils.h":74, please report a bug to PyTorch.
0 commit comments