Skip to content

Commit

Permalink
if \'constant\' is in the name of the graph input then have it define…
Browse files Browse the repository at this point in the history
…d as a relay constant
  • Loading branch information
LPanosTT committed Jul 27, 2024
1 parent c748d64 commit 731ac2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -7203,7 +7203,7 @@ def _parse_graph_initializers(self, graph):
if self._freeze_params:
self._nodes[init_tensor.name] = _expr.const(array)
else:
if (
if "constant" in init_tensor.name.lower() or (
"weight" not in init_tensor.name
and "bias" not in init_tensor.name
and ("int" in array.dtype or "bool" in array.dtype)
Expand Down

0 comments on commit 731ac2a

Please sign in to comment.