forked from mindspore-Ecosystem/mindspore
!49731 add attribute convert for roll adapter
Merge pull request !49731 from qiuzhongya/roll
This commit is contained in:
commit
9a99255f59
|
@ -216,7 +216,8 @@ REG_ADPT_DESC(MultilabelMarginLoss, prim::kPrimMultilabelMarginLoss->name(), ADP
|
|||
|
||||
// Roll
|
||||
INPUT_MAP(Roll) = {{1, INPUT_DESC(x)}};
|
||||
ATTR_MAP(Roll) = {{"shift", ATTR_DESC(shifts, AnyTraits<int64_t>(), AnyTraits<std::vector<int64_t>>())}};
|
||||
ATTR_MAP(Roll) = {{"shift", ATTR_DESC(shifts, AnyTraits<int64_t>(), AnyTraits<std::vector<int64_t>>())},
|
||||
{"axis", ATTR_DESC(dims, AnyTraits<int64_t>(), AnyTraits<std::vector<int64_t>>())}};
|
||||
OUTPUT_MAP(Roll) = {{0, OUTPUT_DESC(y)}};
|
||||
REG_ADPT_DESC(Roll, prim::kRoll, ADPT_DESC(Roll))
|
||||
|
||||
|
|
Loading…
Reference in New Issue