Skip to content

Conversation

@zhwesky2010
Copy link
Contributor

@zhwesky2010 zhwesky2010 commented Mar 21, 2023

PR types

Others

PR changes

APIs

Describe

Tensor.numpy() 有一个hack,这个 FLAGS_set_to_1d=False 可以关闭这个hack。将对内CI关闭这个hack,避免掩盖住各种问题,导致随着hack问题积累增多,不利于后期迭代。

  • true:将0D Tensor设置为1D Numpy
  • false:将0D张量正确的保持为0D Numpy

注:同时补充了一些XPU单测

@zhwesky2010 zhwesky2010 force-pushed the FLAGS_set_to_1d branch 3 times, most recently from 99f8a74 to 0a7eaf7 Compare March 21, 2023 09:41
Copy link
Contributor

@jeff41404 jeff41404 left a comment

Choose a reason for hiding this comment

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

LGTM

@zhwesky2010 zhwesky2010 merged commit 134c9c0 into PaddlePaddle:develop Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants