|
6 | 6 | #include <vector> |
7 | 7 |
|
8 | 8 | #include "intel_gpu/runtime/engine.hpp" |
9 | | -#include "intel_gpu/op/moe_compressed.hpp" |
| 9 | +#include "intel_gpu/op/moe_fused_compressed.hpp" |
10 | 10 | #include "primitive.hpp" |
11 | 11 |
|
12 | 12 | namespace cldnn { |
13 | | -using MOECompressed = ov::intel_gpu::op::MOECompressed; |
| 13 | +using MOEFusedCompressed = ov::intel_gpu::op::MOEFusedCompressed; |
14 | 14 |
|
15 | 15 | /// @brief moe compressed primitive |
16 | 16 | /// @details Performs moe compressed |
17 | | -struct moe_compressed : public primitive_base<moe_compressed> { |
18 | | - CLDNN_DECLARE_PRIMITIVE(moe_compressed) |
| 17 | +struct moe_fused_compressed : public primitive_base<moe_fused_compressed> { |
| 18 | + CLDNN_DECLARE_PRIMITIVE(moe_fused_compressed) |
19 | 19 |
|
20 | | - moe_compressed() : primitive_base("", {}) {} |
| 20 | + moe_fused_compressed() : primitive_base("", {}) {} |
21 | 21 |
|
22 | 22 | /// @brief Constructs moe primitive / layer. |
23 | 23 | /// |
24 | 24 | /// @param id An identifier of new primitive. |
25 | 25 | /// @param inputs A list of Input primitive ids (inputs). |
26 | | - moe_compressed(const primitive_id& id, const std::vector<input_info>& inputs, const MOECompressed::Config& config) |
| 26 | + moe_fused_compressed(const primitive_id& id, const std::vector<input_info>& inputs, const MOEFusedCompressed::Config& config) |
27 | 27 | : primitive_base(id, inputs, 1, {optional_data_type()}), |
28 | 28 | _config(config) {} |
29 | 29 |
|
30 | | - MOECompressed::Config _config; |
| 30 | + MOEFusedCompressed::Config _config; |
31 | 31 |
|
32 | 32 | bool operator==(const primitive& rhs) const override { |
33 | 33 | if (!compare_common_params(rhs)) |
34 | 34 | return false; |
35 | 35 |
|
36 | | - auto rhs_casted = downcast<const moe_compressed>(rhs); |
| 36 | + auto rhs_casted = downcast<const moe_fused_compressed>(rhs); |
37 | 37 |
|
38 | 38 | return std::memcmp(&_config, &rhs_casted._config, sizeof(_config)) == 0; |
39 | 39 | } |
40 | 40 |
|
41 | 41 | void save(BinaryOutputBuffer& ob) const override { |
42 | | - primitive_base<moe_compressed>::save(ob); |
| 42 | + primitive_base<moe_fused_compressed>::save(ob); |
43 | 43 | ob << make_data(&_config, sizeof(_config)); |
44 | 44 | } |
45 | 45 |
|
46 | 46 | void load(BinaryInputBuffer& ib) override { |
47 | | - primitive_base<moe_compressed>::load(ib); |
| 47 | + primitive_base<moe_fused_compressed>::load(ib); |
48 | 48 | ib >> make_data(&_config, sizeof(_config)); |
49 | 49 | } |
50 | 50 | }; |
|
0 commit comments