×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

__bang_sub_const BUG? guozhenjiang2020-06-15 21:13:23 回复 2 查看 实验支持 思元270 BANG语言
__bang_sub_const BUG?
分享到:

下面是__bang_sub_const的文档描述:


void __bang_sub_const (float* dst, float* src, float const_value, int elem_count);

Subtract vector src with const_value to result vector dst.

• Parameters:

<dst> The address of destination vector

<src> The address of source operand vector

<const_value> The constant to sub

<elem_count> The elements number of vector

• Remarks

1. <elem_count> * sizeof(type) must be dividable by 128;

2. The operand <src> and <dst> must point to __nram__ space;

3. Offset of the position, which the operand <src> and <dst> point to, must be n * 64 bytes (n = 0, 1, 2, …);

4. This interface is not supported on MLU100, and is supported on MLU270.


但实际运行时发现,MLU270上没有找到这个算子:

bug1.png

版权所有 © 2024 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭