Skip to content

[CircleCI] error: cannot bind non-const lvalue reference #1282

@vincentqb

Description

@vincentqb

Issue to keep track of error appearing on pull requests in CircleCI, e.g. here from #1281.

../../torchaudio/csrc/sox/effects.cpp:253:51:   required from here
/opt/python/cp38-cp38/lib/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:397:94: error: cannot bind non-const lvalue reference of type ‘c10::optional<bool>&’ to an rvalue of type ‘c10::optional<bool>’
       ivalue_to_arg<typename decay_if_not_tensor<ArgTypes>::type, AllowDeprecatedTypes>::call(
       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
         torch::jit::peek(*stack, ivalue_arg_indices, sizeof...(ivalue_arg_indices))
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~           
     )...);
     ~                                                                                         
/opt/python/cp38-cp38/lib/python3.8/site-packages/torch/include/ATen/core/boxing/impl/make_boxed_from_unboxed_functor.h:352:23: note:   initializing argument 5 of ‘static ReturnType c10::impl::wrap_kernel_functor_unboxed_<KernelFunctor, ReturnType(ParameterTypes ...)>::call(c10::OperatorKernel*, c10::DispatchKeySet, ParameterTypes ...) [with KernelFunctor = c10::impl::detail::WrapFunctionIntoRuntimeFunctor_<std::tuple<at::Tensor, long int> (*)(std::basic_string<char>, std::vector<std::vector<std::basic_string<char> > >, c10::optional<bool>&, c10::optional<bool>&, c10::optional<std::basic_string<char> >&), std::tuple<at::Tensor, long int>, c10::guts::typelist::typelist<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >, c10::optional<bool>&, c10::optional<bool>&, c10::optional<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&> >; ReturnType = std::tuple<at::Tensor, long int>; ParameterTypes = {std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::vector<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >, std::allocator<std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > > >, c10::optional<bool>&, c10::optional<bool>&, c10::optional<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&}]’
     static ReturnType call(OperatorKernel* functor, DispatchKeySet, ParameterTypes... args) {
                       ^~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions