pytorch / csprng

Cryptographically secure pseudorandom number generators for PyTorch
https://github.com/pytorch/csprng
BSD 3-Clause "New" or "Revised" License
108 stars 25 forks source link

pip install with set_offset not implemented error #140

Open Jiancong opened 1 year ago

Jiancong commented 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"); }

kiranosora commented 9 months ago

I solved the problem by remove ‘override' in the code.