Skip to content

Commit

Permalink
Remove invalid qparams DCHECK (pytorch#5063)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#5063

Valid graphs can share qparam tensors and we have hit this assertion before

Reviewed By: yinghai

Differential Revision: D24821283

fbshipit-source-id: 4fe3379e2f287cfb859f66d771494188f3f8e85e
  • Loading branch information
jackm321 authored and facebook-github-bot committed Nov 11, 2020
1 parent 6d7c8b3 commit d320f33
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions torch_glow/src/PyTorchModelLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ bool isQParamWeightNode(const torch::jit::Node *node) {
const auto userKind = uses[0].user->kind();

if (packedQuantNodeKinds.count(userKind)) {
DCHECK_EQ(uses.size(), 1) << "Expected packed quantization parameters to "
"only be used by one node";
return true;
}

Expand Down

0 comments on commit d320f33

Please sign in to comment.