-
Notifications
You must be signed in to change notification settings - Fork 25.2k
[PyTorch Edge] Fix ao::sparse::BCSR missing in qlinear serialize and deserialize when USE_FBGEMM and USE_PYTORCH_QNNPACK are not set #81256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 0308eb0 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
This pull request was exported from Phabricator. Differential Revision: D37757170 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D37757170 |
09884ac
to
fbeb450
Compare
fbeb450
to
3465731
Compare
This pull request was exported from Phabricator. Differential Revision: D37757170 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D37757170 |
3465731
to
7c3c11a
Compare
…deserialize when USE_FBGEMM and USE_PYTORCH_QNNPACK are not set (pytorch#81256) Summary: Pull Request resolved: pytorch#81256 ao::sparse::BCSR is defined in packed_params.h, which is not included when USE_FBGEMM and USE_PYTORCH_QNNPACK are both not set. Fix this problem by surrounding the functions using ao::sparse::BCSR in qlinear_serialize and qlinear_deserialize with ```#ifdef USE_FBGEMM```. For more context, see: - pytorch#81081 - pytorch#81178 Test Plan: Build successful ```time USE_CUDA=0 BUILD_CAFFE2_OPS=0 USE_XNNPACK=0 USE_FBGEMM=0 USE_DISTRIBUTED=0 USE_MKLDNN=0 USE_QNNPACK=0 BUILD_TEST=0 USE_GOLD_LINKER=1 USE_OPENMP=0 USE_PYTORCH_QNNPACK=0 DEBUG=1 python setup.py develop``` Reviewed By: kirklandsign Differential Revision: D37757170 fbshipit-source-id: 69f357ab2b579decd17d629a8a12d40bcccb68b5
This pull request was exported from Phabricator. Differential Revision: D37757170 |
7c3c11a
to
0308eb0
Compare
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
@pytorchbot successfully started a merge job. Check the current status here |
Hey @salilsdesai. |
…deserialize when USE_FBGEMM and USE_PYTORCH_QNNPACK are not set (#81256) Summary: Pull Request resolved: #81256 ao::sparse::BCSR is defined in packed_params.h, which is not included when USE_FBGEMM and USE_PYTORCH_QNNPACK are both not set. Fix this problem by surrounding the functions using ao::sparse::BCSR in qlinear_serialize and qlinear_deserialize with ```#ifdef USE_FBGEMM```. For more context, see: - #81081 - #81178 Test Plan: Build successful ```time USE_CUDA=0 BUILD_CAFFE2_OPS=0 USE_XNNPACK=0 USE_FBGEMM=0 USE_DISTRIBUTED=0 USE_MKLDNN=0 USE_QNNPACK=0 BUILD_TEST=0 USE_GOLD_LINKER=1 USE_OPENMP=0 USE_PYTORCH_QNNPACK=0 DEBUG=1 python setup.py develop``` Reviewed By: kirklandsign Differential Revision: D37757170 fbshipit-source-id: 0e0fdf6efe1a633a2db2e6040eb4d98fac2644df
Summary:
ao::sparse::BCSR is defined in packed_params.h, which is not included when USE_FBGEMM and USE_PYTORCH_QNNPACK are both not set. Fix this problem by surrounding the functions using ao::sparse::BCSR in qlinear_serialize and qlinear_deserialize with
#ifdef USE_FBGEMM
.For more context, see:
packed_params.h
inqlinear_serialize.cpp
#81178Test Plan:
Build successful
time USE_CUDA=0 BUILD_CAFFE2_OPS=0 USE_XNNPACK=0 USE_FBGEMM=0 USE_DISTRIBUTED=0 USE_MKLDNN=0 USE_QNNPACK=0 BUILD_TEST=0 USE_GOLD_LINKER=1 USE_OPENMP=0 USE_PYTORCH_QNNPACK=0 DEBUG=1 python setup.py develop
Differential Revision: D37757170