Skip to content

Commit 6897964

Browse files
mcr229facebook-github-bot
authored andcommitted
Fix reshape dq operator
Summary: This seems to be the fix. My guess is that we have been reshaping the convert_qd8 operator using output's batch size. However the output batch size is not known yet because we are reshaping in order of computation. This is why we could fix it by running reshape runtime twice. We need to reshape the first time so that the output batch size is set correctly, and then we reshape again. Will push an external PR for this with test. bypass-github-export-checks Reviewed By: digantdesai Differential Revision: D54737642 fbshipit-source-id: 6cf5918195a02a587d3658f7277633ff087e160d
1 parent a6e45f4 commit 6897964

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

backends/xnnpack/runtime/XNNExecutor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ __ET_NODISCARD Error XNNExecutor::prepare_args(EValue** args) {
100100
}
101101
// // Propagate Input Shape and Memory Plan for increased allocation
102102
status = xnn_reshape_runtime(runtime_.get());
103-
status = xnn_reshape_runtime(runtime_.get());
104103

105104
ET_CHECK_OR_RETURN_ERROR(
106105
status == xnn_status_success,

0 commit comments

Comments
 (0)