Skip to content

Commit

Permalink
Update on "[ONNX] Use parameter values in onnx shape inference (#49706)"
Browse files Browse the repository at this point in the history
Adds an additional run of onnx shape inference after constant folding, since initializer may have changed and affected shape inference.

Differential Revision: [D26050881](https://our.internmc.facebook.com/intern/diff/D26050881)

[ghstack-poisoned]
  • Loading branch information
BowenBao committed Jan 25, 2021
1 parent 16e623f commit 78dcad9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/csrc/jit/passes/onnx/shape_type_inference.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#pragma once

#include <torch/csrc/jit/ir/ir.h>
#include <torch/csrc/jit/python/python_arg_flatten.h>
#include <torch/csrc/jit/passes/onnx/helper.h>
#include <torch/csrc/jit/python/python_arg_flatten.h>

namespace torch {
namespace jit {
Expand Down

0 comments on commit 78dcad9

Please sign in to comment.