Open Jiancong opened 1 year ago
/tmp/pip-req-build-_41_wxtb/torchcsprng/csrc/cpu/../kernels_commons.h:42:8: error: ‘void CSPRNGGeneratorImpl::set_offset(uint64_t)’ marked ‘override’, but does not override 42 | void set_offset(uint64_t offset) override { throw std::runtime_error("not implemented"); } | ^~~~~~ /tmp/pip-req-build-_41_wxtb/torchcsprng/csrc/cpu/../kernels_commons.h:43:12: error: ‘uint64_t CSPRNGGeneratorImpl::get_offset() const’ marked ‘override’, but does not override 43 | uint64_t get_offset() const override { throw std::runtime_error("not implenented"); }
I solved the problem by remove ‘override' in the code.
/tmp/pip-req-build-_41_wxtb/torchcsprng/csrc/cpu/../kernels_commons.h:42:8: error: ‘void CSPRNGGeneratorImpl::set_offset(uint64_t)’ marked ‘override’, but does not override 42 | void set_offset(uint64_t offset) override { throw std::runtime_error("not implemented"); } | ^
~~~~~ /tmp/pip-req-build-_41_wxtb/torchcsprng/csrc/cpu/../kernels_commons.h:43:12: error: ‘uint64_t CSPRNGGeneratorImpl::get_offset() const’ marked ‘override’, but does not override 43 | uint64_t get_offset() const override { throw std::runtime_error("not implenented"); }