7 #include "ngraph/axis_set.hpp"
8 #include "ngraph/op/util/index_reduction.hpp"
20 static constexpr
NodeTypeInfo type_info{
"EmbeddingBagOffsetsBase", 3};
62 static constexpr
int EMB_TABLE = 0;
63 static constexpr
int INDICES = 1;
64 static constexpr
int OFFSETS = 2;
65 static constexpr
int DEFAULT_INDEX = 3;
66 static constexpr
int PER_SAMPLE_WEIGHTS = 4;
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_offsets_base.hpp:18
EmbeddingBagOffsetsBase()=default
Constructs a EmbeddingBagOffsetsBase operation.
EmbeddingBagOffsetsBase(const Output< Node > &emb_table, const Output< Node > &indices, const Output< Node > &offsets, const Output< Node > &default_index, const Output< Node > &per_sample_weights)
Constructs a EmbeddingBagOffsetsBase operation.
const NodeTypeInfo & get_type_info() const override
Definition: embeddingbag_offsets_base.hpp:21
void validate_and_infer_types() override
Verifies that attributes and inputs are consistent and computes output shapes and element types....
The Intel nGraph C++ API.
Definition: attribute_adapter.hpp:16