未验证 提交 7fa29a6b 编写于 作者: Y Yuang Liu 提交者: GitHub

[phi] add dtype fetcher for scalar (#39775)

上级 9b9d52e0
......@@ -191,6 +191,8 @@ class ScalarBase {
}
}
DataType dtype() const { return dtype_; }
private:
template <typename T1, typename T2>
friend void CopyScalar(const ScalarBase<T1>& src, ScalarBase<T2>* dst);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册