Skip to content

Commit

Permalink
[RISCV64] better IShlParams class definition
Browse files Browse the repository at this point in the history
  • Loading branch information
BHbean committed Aug 5, 2024
1 parent 9cd410e commit c0fdf72
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/plugins/intel_cpu/src/nodes/executors/shl/shl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ struct IShlParams {
public:
virtual ~IShlParams() = default;
virtual void* get(bool allow_empty = false) const = 0;

private:
virtual void reset(void* t) = 0;
virtual void setAPI(csinn_api_enum api) = 0;
};

template <typename T, typename traits = ShlStructureTraits<T>>
Expand All @@ -195,15 +191,12 @@ struct ShlParams : public ShlStructure<T>, public IShlParams {
setAPI(api);
}

void reset(void* t) override {
this->ShlStructure<T, traits>::reset(static_cast<T>(t));
}

void* get(bool allow_empty = false) const override {
return this->ShlStructure<T, traits>::get(allow_empty);
}

void setAPI(csinn_api_enum api) override {
private:
void setAPI(csinn_api_enum api) {
auto params = static_cast<typename std::remove_pointer<T>::type*>(this->get());
params->base.api = api;
}
Expand Down

0 comments on commit c0fdf72

Please sign in to comment.