Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
cd88156a
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2298
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
cd88156a
编写于
4月 26, 2023
作者:
骑
骑马小猫
提交者:
GitHub
4月 26, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[Bug fixes] enable two ops to support bf16 in llama model (#53026)
上级
c59debe2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
3 deletion
+6
-3
python/paddle/nn/functional/activation.py
python/paddle/nn/functional/activation.py
+1
-1
python/paddle/tensor/manipulation.py
python/paddle/tensor/manipulation.py
+4
-2
python/paddle/tensor/math.py
python/paddle/tensor/math.py
+1
-0
未找到文件。
python/paddle/nn/functional/activation.py
浏览文件 @
cd88156a
...
...
@@ -965,7 +965,7 @@ def silu(x, name=None):
Where :math:`x` is the input Tensor.
Parameters:
x (Tensor): The input Tensor with data type float32, float64.
x (Tensor): The input Tensor with data type
bfloat16, float16,
float32, float64.
name (str, optional): For details, please refer to :ref:`api_guide_Name`. Generally, no setting is required. Default: None.
Returns:
...
...
python/paddle/tensor/manipulation.py
浏览文件 @
cd88156a
...
...
@@ -1899,7 +1899,7 @@ def split(x, num_or_sections, axis=0, name=None):
Split the input tensor into multiple sub-Tensors.
Args:
x (Tensor): A N-D Tensor. The data type is bool, float16, float32, float64, uint8, int8, int32 or int64.
x (Tensor): A N-D Tensor. The data type is bool,
bfloat16,
float16, float32, float64, uint8, int8, int32 or int64.
num_or_sections (int|list|tuple): If ``num_or_sections`` is an int, then ``num_or_sections``
indicates the number of equal sized sub-Tensors that the ``x`` will be divided into.
If ``num_or_sections`` is a list or tuple, the length of it indicates the number of
...
...
@@ -1970,6 +1970,7 @@ def split(x, num_or_sections, axis=0, name=None):
'input'
,
[
'bool'
,
'bfloat16'
,
'float16'
,
'uint16'
,
'float32'
,
...
...
@@ -2546,7 +2547,7 @@ def unsqueeze(x, axis, name=None):
please use `Tensor.clone` like ``unsqueeze_clone_x = x.unsqueeze(-1).clone()``.
Args:
x (Tensor): The input Tensor to be unsqueezed. Supported data type: float32, float64, bool, int8, int32, int64.
x (Tensor): The input Tensor to be unsqueezed. Supported data type:
bfloat16, float16,
float32, float64, bool, int8, int32, int64.
axis (int|list|tuple|Tensor): Indicates the dimensions to be inserted. The data type is ``int32`` .
If ``axis`` is a list or tuple, the elements of it should be integers or Tensors with shape [1].
If ``axis`` is a Tensor, it should be an 1-D Tensor .
...
...
@@ -2600,6 +2601,7 @@ def unsqueeze(x, axis, name=None):
input
,
'input'
,
[
'uint16'
,
'float16'
,
'uint16'
,
'float32'
,
...
...
python/paddle/tensor/math.py
浏览文件 @
cd88156a
...
...
@@ -499,6 +499,7 @@ def _elementwise_op(helper):
"elementwise_sub"
,
"elementwise_mul"
,
"elementwise_div"
,
"elementwise_max"
,
]
if
original_op_type
in
bf16_and_complex_supported_ops
:
data_type
=
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录