Skip to content

Conversation

@yangxiaoyu14
Copy link

No description provided.

tmp_cache_path = getattr(test_obj, "tmp_cache_path", None)
if not tmp_cache_path:
tmp_cache_path = os.getenv("TMP_CACHE_PATH", "/dev/shm")
tmp_cache_path = os.getenv("TMP_CACHE_PATH", "/home")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要改这个,这个具体设置可以在你的单测里改。
比如单测里写self.tmp_cache_path = "."

else:
with {framework}.no_grad():
check_aadiff(prev_ret, outputs)
print(i)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

删除无用代码。

op_acc_stable_run(GeluTest(shape=[1, 12288], dtype="bfloat16"))
op_acc_stable_run(GeluTest(shape=[1, 4096, 24576], dtype="float32"))
op_acc_stable_run(GeluTest(shape=[1, 4096, 24576], dtype="float16"))
op_acc_stable_run(GeluTest(shape=[1, 4096, 24576], dtype="bfloat16")) No newline at end of file
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修复最后一行的这个问题。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个最后的一行的问题指什么?我不太确定,指最后一行缺少空行吗?


if __name__ == "__main__":
op_acc_stable_run(SoftmaxTest)
op_acc_stable_run(SoftmaxTest)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修复最后一行的这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants