Skip to content

Commit

Permalink
Don't need virtual destructor to be pure virtual when we already have…
Browse files Browse the repository at this point in the history
… pure virtual functions
  • Loading branch information
malton-ont committed Dec 14, 2023
1 parent c0d6e58 commit b7548a3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dorado/basecall/ModelRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace dorado::basecall {

class ModelRunnerBase {
public:
virtual ~ModelRunnerBase() = 0;
virtual ~ModelRunnerBase() = default;
virtual void accept_chunk(int chunk_idx, const at::Tensor &chunk) = 0;
virtual std::vector<decode::DecodedChunk> call_chunks(int num_chunks) = 0;
virtual const CRFModelConfig &config() const = 0;
Expand All @@ -27,8 +27,6 @@ class ModelRunnerBase {
virtual stats::NamedStats sample_stats() const = 0;
};

inline ModelRunnerBase::~ModelRunnerBase() = default;

using RunnerPtr = std::unique_ptr<ModelRunnerBase>;

template <typename T>
Expand Down

0 comments on commit b7548a3

Please sign in to comment.