Skip to content

Commit

Permalink
Remove the function "init_state" from TopsGeneratorImpl.cpp because i…
Browse files Browse the repository at this point in the history
…t has already been deleted in the parent class.
  • Loading branch information
zhaochaoxing committed Nov 2, 2023
1 parent c0c647b commit 91750ab
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class TopsGeneratorImpl : public dipu::DIPUGeneratorImpl {
TopsGeneratorImpl(at::DeviceIndex device_index): dipu::DIPUGeneratorImpl(device_index) {
}

void init_state() const override {
}

void set_state(const c10::TensorImpl& state) override {
}

Expand All @@ -24,4 +21,4 @@ const at::Generator vendorMakeGenerator(at::DeviceIndex device_index) {
return at::make_generator<TopsGeneratorImpl>(device_index);
}

} // namespace torch_dipu
} // namespace torch_dipu

0 comments on commit 91750ab

Please sign in to comment.