Skip to content

Commit c543b3b

Browse files
r-barnesfacebook-github-bot
authored andcommitted
Fix a downcast (#47919)
Summary: Pull Request resolved: #47919 Suppresses a downcast warning. Test Plan: Reproduces with ``` buck test mode/dev-nosan //caffe2/torch/fb/sparsenn:gpu_test ``` Reviewed By: suphoff Differential Revision: D24866987 fbshipit-source-id: 44f19ab37a7d95abe08f570abfebc702827a2510
1 parent fe7d1d7 commit c543b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caffe2/core/operator.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ C10_DECLARE_REGISTRY(
14461446
// You should not need to use this class.
14471447
struct StaticLinkingProtector {
14481448
StaticLinkingProtector() {
1449-
const int registered_ops = CPUOperatorRegistry()->Keys().size();
1449+
const auto registered_ops = CPUOperatorRegistry()->Keys().size();
14501450
// Note: this is a check failure instead of an exception, because if
14511451
// the linking is wrong, Caffe2 won't be able to run properly anyway,
14521452
// so it's better to fail loud.

0 commit comments

Comments
 (0)