forked from jiuyuan/InfiniTensor
add comment for rope operator
This commit is contained in:
parent
9a3c0f11f6
commit
ae9f61de5a
|
@ -4,6 +4,14 @@
|
||||||
namespace infini {
|
namespace infini {
|
||||||
class RoPEObj : public OperatorObj {
|
class RoPEObj : public OperatorObj {
|
||||||
public:
|
public:
|
||||||
|
/**
|
||||||
|
* @brief Construct a new RotaryEmbedding object.
|
||||||
|
*
|
||||||
|
* @param graph The computation graph that this operator belongs to.
|
||||||
|
* @param pos The positon id of the query.
|
||||||
|
* @param input The input tensor.
|
||||||
|
* @param output The output tensor.
|
||||||
|
*/
|
||||||
RoPEObj(GraphObj *graph, Tensor pos, Tensor input, Tensor output);
|
RoPEObj(GraphObj *graph, Tensor pos, Tensor input, Tensor output);
|
||||||
OP_CLONE(RoPEObj);
|
OP_CLONE(RoPEObj);
|
||||||
optional<vector<Shape>> inferShape(const TensorVec &inputs) override;
|
optional<vector<Shape>> inferShape(const TensorVec &inputs) override;
|
||||||
|
|
Loading…
Reference in New Issue