Program Listing for File embedding_lookup_fusion.h
↰ Return to documentation for file (include/converter/include/ops/fusion/embedding_lookup_fusion.h
)
#ifndef MINDSPORE_CORE_OPS_EMBEDDING_LOOKUP_FUSION_H_
#define MINDSPORE_CORE_OPS_EMBEDDING_LOOKUP_FUSION_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "mindapi/base/types.h"
#include "ops/base_operator.h"
namespace mindspore {
namespace ops {
constexpr auto kNameEmbeddingLookupFusion = "EmbeddingLookupFusion";
class MIND_API EmbeddingLookupFusion : public BaseOperator {
public:
MIND_API_BASE_MEMBER(EmbeddingLookupFusion);
EmbeddingLookupFusion() : BaseOperator(kNameEmbeddingLookupFusion) {
InitIOName({"params", "indices", "offset"}, {"output"});
}
void Init(const float max_norm = 0.0);
void set_max_norm(const float max_norm);
float get_max_norm() const;
};
} // namespace ops
} // namespace mindspore
#endif // MINDSPORE_CORE_OPS_EMBEDDING_LOOKUP_FUSION_H_