mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Remove weight from input of onnxifi backend op (#10575)
Summary: The ONNXIFI backend will absorb the constant weight in Conv, so we should not add it as an input. This is just a test artifacts. Note that Onnxifi transformer will do the right thing when cutting the graph to absorb the weights. rdzhabarov Pull Request resolved: https://github.com/pytorch/pytorch/pull/10575 Reviewed By: houseroad Differential Revision: D9357339 Pulled By: yinghai fbshipit-source-id: a613fa3acafa687295312f5211f8e9d7f77b39cd
This commit is contained in:
parent
319fefe9e6
commit
4be4b4c8b5
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class OnnxifiTest(TestCase):
|
|||
model_def = make_model(graph_def, producer_name='conv-test')
|
||||
op = core.CreateOperator(
|
||||
"Onnxifi",
|
||||
["X", "W"],
|
||||
["X"],
|
||||
["Y"],
|
||||
onnx_model=model_def.SerializeToString(),
|
||||
initializers=["W", "W"],
|
||||
|
|
|
|||
Loading…
Reference in a new issue