forked from mindspore-Ecosystem/mindspore
!49103 fix tensorarray stack
Merge pull request !49103 from VectorSL/fix-tensorarry-stack
This commit is contained in:
commit
636a67002f
|
@ -51,9 +51,15 @@ void TensorArrayStackCpuKernelMod::InitKernel(const CNodePtr &kernel_node) {
|
|||
} else {
|
||||
value_size_ = ele_size_ * LongToSize(size);
|
||||
}
|
||||
is_need_retrieve_output_shape_ = true;
|
||||
}
|
||||
|
||||
void TensorArrayStackCpuKernelMod::InitInputOutputSize(const CNodePtr &kernel_node) {
|
||||
MS_EXCEPTION_IF_NULL(kernel_node);
|
||||
output_size_list_.clear();
|
||||
input_size_list_.clear();
|
||||
output_size_list_.push_back(value_size_);
|
||||
input_size_list_.push_back(sizeof(int64_t));
|
||||
is_need_retrieve_output_shape_ = true;
|
||||
}
|
||||
|
||||
void TensorArrayStackCpuKernelMod::PostExecute() {
|
||||
|
|
|
@ -33,6 +33,7 @@ class TensorArrayStackCpuKernelMod : public DeprecatedNativeCpuKernelMod {
|
|||
bool Launch(const std::vector<AddressPtr> &inputs, const std::vector<AddressPtr> &workspace,
|
||||
const std::vector<AddressPtr> &outputs) override;
|
||||
void InitKernel(const CNodePtr &kernel_node) override;
|
||||
void InitInputOutputSize(const CNodePtr &kernel_node);
|
||||
|
||||
std::vector<KernelAttr> GetOpSupport() override {
|
||||
static const std::vector<KernelAttr> support_list = {
|
||||
|
|
Loading…
Reference in New Issue