Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

add type checker for stack push(pop) #155

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

NotHaozi
Copy link
Collaborator

[first issue😘]
解决方案:

  1. 在所有入栈指令处进行检查
  2. 在最底层self.push检查,和对stack进行inplace操作的地方检查。
    经检查,目前inplace操作只有两处,且保证了是Variable,因此选择方法2。

@paddle-bot
Copy link

paddle-bot bot commented Jun 13, 2023

Thanks for your contribution!

@SigureMo
Copy link
Member

为所有入栈出栈操作添加检查,确保栈内所有内容均是Variable

改一下标题吧,简单翻译成英文

@NotHaozi NotHaozi changed the title 为所有入栈出栈操作添加检查,确保栈内所有内容均是Variable #142 add type checker for stack push(pop) Jun 13, 2023
@NotHaozi
Copy link
Collaborator Author

为所有入栈出栈操作添加检查,确保栈内所有内容均是Variable

改一下标题吧,简单翻译成英文

Yeah, It's ok?

@Aurelius84 Aurelius84 merged commit f06e3b4 into PaddlePaddle:develop Jun 13, 2023
zrr1999 pushed a commit to zrr1999/paddle-symbolic-trace that referenced this pull request Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants