transcribe-cpp-sys 0.5.1

Native FFI bindings for transcribe.cpp, a C/C++ speech-to-text library built on ggml
Documentation
#pragma once
#include "../ggml-decoder.h"
#include "node_context.h"

namespace ov::frontend::ggml {
// Match complete build_rs groups before replacing reset/reorder. Unmatched graphs retain
// their ordinary translators, including CPU, static and released-runtime execution.
class RecurrentCacheFusion {
public:
    RecurrentCacheFusion(const std::shared_ptr<GgmlDecoder> & decoder, const std::shared_ptr<TensorMap> & tensors);
    OutputVector translate(int index, const NodeContext & context);
    bool is_inplace_output(const std::string & name) const;
private:
    struct Group {
        int reset = -1, gather = -1, remainder = -1, concat = -1, compute = -1, writeback = -1;
        std::string root_name;
        bool enabled = false;
        Output<Node> old_cache, conv;
    };

    std::shared_ptr<GgmlDecoder> m_decoder;
    std::shared_ptr<TensorMap> m_tensors;
    std::vector<Group> m_groups;
    std::map<int, size_t> m_nodes;
};
}  // namespace ov::frontend::ggml