char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Zijun YuOpenVINO: Qwen3.5, memory optimization, and test-recurrent-state-rollback (#26952)aee56b3ab

char/aliceai-t5-moe
883 B35 linesraw
1#include "../node_context.h"
2#include "../op_table.h"
3#include "../utils.h"
4
5#include <memory>
6#include <openvino/op/multiply.hpp>
7#include <openvino/op/sqrt.hpp>
8
9namespace ov {
10namespace frontend {
11namespace ggml {
12namespace op {
13
14OutputVector translate_sqr(const NodeContext & context) {
15    num_inputs_check(context, 1, 1);
16
17    auto input = process_view_input_new(context, 0);
18    auto res = std::make_shared<ov::op::v1::Multiply>(input, input);
19
20    return rename_outputs_with_suffix({res}, context.get_name());
21}
22
23OutputVector translate_sqrt(const NodeContext & context) {
24    num_inputs_check(context, 1, 1);
25
26    auto input = process_view_input_new(context, 0);
27    auto res = std::make_shared<ov::op::v0::Sqrt>(input);
28
29    return rename_outputs_with_suffix({res}, context.get_name());
30}
31
32}  // namespace op
33}  // namespace ggml
34}  // namespace frontend
35}  // namespace ov