未验证 提交 64e2f670 编写于 作者: C Chen Weihang 提交者: GitHub

[PTen] Change functions to funcs (#38340)

* change functions to funcs

* remove useless code
上级 e6310dbd
......@@ -61,8 +61,7 @@ struct DenseTensorMeta {
};
inline bool operator==(const DenseTensorMeta& lhs, const DenseTensorMeta& rhs) {
bool ret = true;
return ret && (lhs.is_scalar == rhs.is_scalar) && (lhs.dims == rhs.dims) &&
return (lhs.is_scalar == rhs.is_scalar) && (lhs.dims == rhs.dims) &&
(lhs.dtype == rhs.dtype) && (lhs.layout == rhs.layout) &&
(lhs.lod == rhs.lod) && (lhs.offset == rhs.offset);
}
......
......@@ -17,7 +17,7 @@
#include "paddle/pten/core/kernel_registry.h"
#include "paddle/pten/infermeta/unary.h"
#include "paddle/pten/kernels/cpu/utils.h"
#include "paddle/pten/kernels/functions/common_shape.h"
#include "paddle/pten/kernels/funcs/common_shape.h"
#include "paddle/pten/kernels/gpu/utils.h"
#include "paddle/pten/kernels/xpu/utils.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册