7 #include "ngraph/axis_set.hpp"
8 #include "ngraph/op/util/index_reduction.hpp"
20 static constexpr
NodeTypeInfo type_info{
"EmbeddingBagPackedBase", 3};
48 static constexpr
int EMB_TABLE = 0;
49 static constexpr
int INDICES = 1;
50 static constexpr
int PER_SAMPLE_WEIGHTS = 2;
Visits the attributes of a node, primarily for serialization-like tasks.
Definition: attribute_visitor.hpp:59
A handle for one of a node's outputs.
Definition: node_output.hpp:33
Root of all actual ops.
Definition: op.hpp:17
Returns embeddings for given indices.
Definition: embeddingbag_packed_base.hpp:18
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
EmbeddingBagPackedBase(const Output< Node > &emb_table, const Output< Node > &indices, const Output< Node > &per_sample_weights)
Constructs a EmbeddingBagPackedBase operation.
EmbeddingBagPackedBase()=default
Constructs a EmbeddingBagPackedBase operation.
const NodeTypeInfo & get_type_info() const override
Definition: embeddingbag_packed_base.hpp:21
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16