"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "625af9629ee99319cdce0f912fff8705914aefc1"
Commit 8fecf4c3 authored by Chao Liu's avatar Chao Liu
Browse files

tweak

parent 6ff00ed4
...@@ -35,9 +35,9 @@ struct BiasReluAdd ...@@ -35,9 +35,9 @@ struct BiasReluAdd
template <typename T1, typename T2> template <typename T1, typename T2>
__device__ constexpr float operator()(float v0, T1 v1, T2 v2) const __device__ constexpr float operator()(float v0, T1 v1, T2 v2) const
{ {
#if 0 #if 1
float a = v1 + v0; float a = v1 + v0;
float b = max(a, float(0)); float b = a > 0 ? a : 0;
float c = b + v2; float c = b + v2;
return c; return c;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment