未验证 提交 7039f61e 编写于 作者: C Chen Weihang 提交者: GitHub

add softmax yaml and add_raw infermeta (#40534)

上级 c46e661d
...@@ -18,6 +18,7 @@ limitations under the License. */ ...@@ -18,6 +18,7 @@ limitations under the License. */
#include <vector> #include <vector>
#include "paddle/phi/common/data_type.h" #include "paddle/phi/common/data_type.h"
#include "paddle/phi/core/ddim.h" #include "paddle/phi/core/ddim.h"
#include "paddle/phi/core/infermeta_utils.h"
#include "paddle/phi/kernels/funcs/common_shape.h" #include "paddle/phi/kernels/funcs/common_shape.h"
namespace phi { namespace phi {
...@@ -813,3 +814,5 @@ void TriangularSolveInferMeta(const MetaTensor& x, ...@@ -813,3 +814,5 @@ void TriangularSolveInferMeta(const MetaTensor& x,
} }
} // namespace phi } // namespace phi
PD_REGISTER_INFER_META_FN(add_raw, phi::ElementwiseRawInferMeta);
...@@ -177,6 +177,14 @@ ...@@ -177,6 +177,14 @@
kernel : kernel :
func : sign func : sign
- api : softmax
args : (Tensor x, int axis)
output : Tensor
infer_meta :
func : SoftmaxInferMeta
kernel :
func : sotfmax
- api : split - api : split
args : (Tensor x, ScalarArray num_or_sections, Scalar axis) args : (Tensor x, ScalarArray num_or_sections, Scalar axis)
output : Tensor[] output : Tensor[]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册