Skip to content
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

Warning in lod_reset_op.h : Comparison of integers of different signs #9672

Closed
abhinavarora opened this issue Apr 5, 2018 · 0 comments
Closed

Comments

@abhinavarora
Copy link
Contributor

In file included from /Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/operators/lod_reset_op.cc:15:
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/operators/lod_reset_op.h:38:9: warning: comparison of integers of different signs:
      'unsigned long' and 'int64_t' (aka 'long long') [-Wsign-compare]
        PADDLE_ENFORCE_EQ(last_level.back(), in->dims()[0],
        ^                 ~~~~~~~~~~~~~~~~~  ~~~~~~~~~~~~~
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/platform/enforce.h:227:43: note: expanded from macro 'PADDLE_ENFORCE_EQ'
  __PADDLE_BINARY_COMPARE(__VAL0, __VAL1, ==, !=, __VA_ARGS__)
                          ~~~~~~  ~~~~~~  ^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/platform/enforce.h:248:28: note: expanded from macro '__PADDLE_BINARY_COMPARE'
    if (UNLIKELY(!((__VAL0)__CMP(__VAL1)))) {                           \
                    ~~~~~~ ^     ~~~~~~
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/platform/enforce.h:108:64: note: expanded from macro 'UNLIKELY'
#define UNLIKELY(condition) __builtin_expect(static_cast<bool>(condition), 0)
                                                               ^~~~~~~~~
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/framework/op_registry.h:86:64: note: in instantiation of member function
      'paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, double>::Compute' requested here
    OperatorWithKernel::AllOpKernels()[op_type][key].reset(new KERNEL_TYPE);
                                                               ^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/framework/op_registry.h:91:5: note: in instantiation of member function
      'paddle::framework::OpKernelRegistrarFunctor<paddle::platform::CPUPlace, false, 1, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace,
      float>, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, double>, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, int>,
      paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, long long> >::operator()' requested here
    func(op_type, library_type);
    ^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/framework/op_registry.h:106:5: note: in instantiation of member function
      'paddle::framework::OpKernelRegistrarFunctor<paddle::platform::CPUPlace, false, 0, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace,
      float>, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, double>, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, int>,
      paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, long long> >::operator()' requested here
    func(op_type, library_type);
    ^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/operators/lod_reset_op.cc:160:1: note: in instantiation of member function
      'paddle::framework::OpKernelRegistrar<paddle::platform::CPUPlace, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, float>,
      paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, double>, paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, int>,
      paddle::operators::LoDResetKernel<paddle::platform::CPUPlace, long long> >::OpKernelRegistrar' requested here
REGISTER_OP_CPU_KERNEL(
^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/framework/op_registry.h:196:3: note: expanded from macro 'REGISTER_OP_CPU_KERNEL'
  REGISTER_OP_KERNEL(op_type, CPU, ::paddle::platform::CPUPlace, __VA_ARGS__)
  ^
/Users/aroraabhinav/Documents/workspace/paddlepaddle/Paddle/paddle/fluid/framework/op_registry.h:185:7: note: expanded from macro 'REGISTER_OP_KERNEL'
      __op_kernel_registrar_##op_type##_##LIBRARY_TYPE##__(#op_type,       \
      ^
<scratch space>:110:1: note: expanded from here
__op_kernel_registrar_lod_reset_CPU__
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant