forked from huawei/mindspore2022
adjust compat func
This commit is contained in:
parent
3ef938b2a7
commit
3b224b86de
|
|
@ -29,7 +29,6 @@ int TransferBroadcastToAttr(const void *primitive, Model::Node *node, std::vecto
|
|||
return RET_OK;
|
||||
}
|
||||
dst_tensors->clear();
|
||||
tensor_bufs->clear();
|
||||
auto prim = reinterpret_cast<const schema::v0::Primitive *>(primitive);
|
||||
auto dst_shape_attr = prim->value_as_BroadcastTo()->dst_shape();
|
||||
std::vector<int> dst_shape = std::vector<int>(dst_shape_attr->begin(), dst_shape_attr->end());
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ int TransferReshapeAttr(const void *primitive, Model::Node *node, std::vector<sc
|
|||
return RET_OK;
|
||||
}
|
||||
dst_tensors->clear();
|
||||
tensor_bufs->clear();
|
||||
auto prim = reinterpret_cast<const schema::v0::Primitive *>(primitive);
|
||||
auto dst_shape_attr = prim->value_as_Reshape()->shape();
|
||||
std::vector<int> dst_shape = std::vector<int>(dst_shape_attr->begin(), dst_shape_attr->end());
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ int TransferStridedSliceAttr(const void *primitive, Model::Node *node, std::vect
|
|||
return RET_ERROR;
|
||||
}
|
||||
dst_tensors->clear();
|
||||
tensor_bufs->clear();
|
||||
auto prim = reinterpret_cast<const schema::v0::Primitive *>(primitive);
|
||||
int inputs_size = node->input_indices_.size();
|
||||
switch (inputs_size) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue