This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
nihui
/
ncnn
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
46
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
unaryop tanh vulkan
tags/20191113
nihuini
6 years ago
parent
054dd43f8e
commit
80f898b079
2 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
src/layer/vulkan/shader/unaryop.comp
+1
-0
src/layer/vulkan/shader/unaryop_pack4.comp
+ 1
- 0
src/layer/vulkan/shader/unaryop.comp
View File
@@ -69,6 +69,7 @@ void main()
if (op_type == 13) res = acos(v);
if (op_type == 14) res = atan(v);
if (op_type == 15) res = afp(1.f) / v;
if (op_type == 16) res = tanh(v);
bottom_top_blob_data[gi] = afp2sfp(res);
}
+ 1
- 0
src/layer/vulkan/shader/unaryop_pack4.comp
View File
@@ -69,6 +69,7 @@ void main()
if (op_type == 13) res = acos(v);
if (op_type == 14) res = atan(v);
if (op_type == 15) res = afp(1.f) / v;
if (op_type == 16) res = tanh(v);
bottom_top_blob_data[gi] = afp2sfpvec4(res);
}
Write
Preview
Loading…
Cancel
Save