Skip to content

Commit

Permalink
fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Aug 15, 2023
1 parent 243bd5c commit aa076de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sherpa-onnx/csrc/offline-whisper-greedy-search-decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
namespace sherpa_onnx {

int32_t OfflineWhisperGreedySearchDecoder::DetectLanguage(
Ort::Value &cross_k, Ort::Value &cross_v) const {
Ort::Value &cross_k, Ort::Value &cross_v) const { // NOLINT
int64_t token_val = model_->SOT();
std::array<int64_t, 2> token_shape{1, 1};

Expand Down
3 changes: 2 additions & 1 deletion sherpa-onnx/csrc/offline-whisper-greedy-search-decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class OfflineWhisperGreedySearchDecoder : public OfflineWhisperDecoder {
std::vector<OfflineWhisperDecoderResult> Decode(Ort::Value cross_k,
Ort::Value cross_v) override;

int32_t DetectLanguage(Ort::Value &cross_k, Ort::Value &cross_v) const;
int32_t DetectLanguage(Ort::Value &cross_k, // NOLINT
Ort::Value &cross_v) const; // NOLINT

private:
OfflineWhisperModelConfig config_;
Expand Down
1 change: 1 addition & 0 deletions sherpa-onnx/csrc/offline-whisper-model.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#define SHERPA_ONNX_CSRC_OFFLINE_WHISPER_MODEL_H_

#include <memory>
#include <string>
#include <tuple>
#include <unordered_map>
#include <utility>
Expand Down

0 comments on commit aa076de

Please sign in to comment.