!37463 replace obsolete SliceD with Slice
Merge pull request !37463 from xiaoyao/master
This commit is contained in:
commit
36ee01794d
|
@ -39,12 +39,10 @@ ATTR_MAP(CumprodD) = {{"exclusive", ATTR_DESC(exclusive, AnyTraits<bool>())},
|
||||||
OUTPUT_MAP(CumprodD) = {{0, OUTPUT_DESC(y)}};
|
OUTPUT_MAP(CumprodD) = {{0, OUTPUT_DESC(y)}};
|
||||||
REG_ADPT_DESC(CumprodD, kNameCumProd, ADPT_DESC(CumprodD))
|
REG_ADPT_DESC(CumprodD, kNameCumProd, ADPT_DESC(CumprodD))
|
||||||
|
|
||||||
INPUT_MAP(SliceD) = {{1, INPUT_DESC(x)}};
|
INPUT_MAP(Slice) = {{1, INPUT_DESC(x)}, {2, INPUT_DESC(offsets)}, {3, INPUT_DESC(size)}};
|
||||||
INPUT_ATTR_MAP(SliceD) = {{2, ATTR_DESC(offsets, AnyTraits<int64_t>(), AnyTraits<std::vector<int64_t>>())},
|
ATTR_MAP(Slice) = EMPTY_ATTR_MAP;
|
||||||
{3, ATTR_DESC(size, AnyTraits<int64_t>(), AnyTraits<std::vector<int64_t>>())}};
|
OUTPUT_MAP(Slice) = {{0, OUTPUT_DESC(y)}};
|
||||||
ATTR_MAP(SliceD) = EMPTY_ATTR_MAP;
|
REG_ADPT_DESC(Slice, kNameSlice, ADPT_DESC(Slice))
|
||||||
OUTPUT_MAP(SliceD) = {{0, OUTPUT_DESC(y)}};
|
|
||||||
REG_ADPT_DESC(SliceD, kNameSlice, ADPT_DESC(SliceD))
|
|
||||||
|
|
||||||
// TopK
|
// TopK
|
||||||
INPUT_MAP(TopK) = {{1, INPUT_DESC(x)}, {2, INPUT_DESC(k)}};
|
INPUT_MAP(TopK) = {{1, INPUT_DESC(x)}, {2, INPUT_DESC(k)}};
|
||||||
|
|
|
@ -23,9 +23,8 @@
|
||||||
#include "ops/selection_ops.h"
|
#include "ops/selection_ops.h"
|
||||||
|
|
||||||
namespace mindspore::transform {
|
namespace mindspore::transform {
|
||||||
DECLARE_OP_ADAPTER(SliceD)
|
DECLARE_OP_ADAPTER(Slice)
|
||||||
DECLARE_OP_USE_INPUT_ATTR(SliceD)
|
DECLARE_OP_USE_OUTPUT(Slice)
|
||||||
DECLARE_OP_USE_OUTPUT(SliceD)
|
|
||||||
|
|
||||||
DECLARE_OP_ADAPTER(ScatterNd)
|
DECLARE_OP_ADAPTER(ScatterNd)
|
||||||
DECLARE_OP_USE_OUTPUT(ScatterNd)
|
DECLARE_OP_USE_OUTPUT(ScatterNd)
|
||||||
|
|
Loading…
Reference in New Issue