RuntimeError: (PreconditionNotMet) The meta data must be valid when call the mutable data function.
[Hint: Expected valid() == true, but received valid():0 != true:1.] (at /Users/paddle/xly/workspace/77aceb8e-2a5b-4fe4-a675-547f3aad14a4/Paddle/paddle/phi/core/dense_tensor.cc:127)
Abnormal parameter combinations should be caught in higher level code and explicit hints should be given, e.g. that a dimension will be 0.
In some cases, it can also lead to serious crashes:
bug描述 Describe the Bug
Unclear error message
Abnormal parameter combinations should be caught in higher level code and explicit hints should be given, e.g. that a dimension will be 0. In some cases, it can also lead to serious crashes:
其他补充信息 Additional Supplementary Information
No response