Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
ed377ac1
Commit
ed377ac1
authored
Jan 16, 2020
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16363 from JulienMaille:cuda-dnn-for-older-gpus
parents
24ca5318
ced3df73
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
math.hpp
modules/dnn/src/cuda/math.hpp
+1
-1
No files found.
modules/dnn/src/cuda/math.hpp
View file @
ed377ac1
...
...
@@ -133,8 +133,8 @@ namespace cv { namespace dnn { namespace cuda4dnn { namespace csl { namespace de
#if !defined(__CUDA_ARCH__) || (__CUDA_ARCH__ >= 530)
template
<>
inline
__device__
__half
rsqrt
(
__half
val
)
{
return
hrsqrt
(
val
);
}
template
<>
inline
__device__
__half2
rsqrt
(
__half2
val
)
{
return
h2rsqrt
(
val
);
}
template
<>
inline
__device__
float
rsqrt
(
float
val
)
{
return
rsqrtf
(
val
);
}
#endif
template
<>
inline
__device__
float
rsqrt
(
float
val
)
{
return
rsqrtf
(
val
);
}
template
<>
inline
__device__
double
rsqrt
(
double
val
)
{
return
::
rsqrt
(
val
);
}
template
<
class
T
>
__device__
T
sigmoid
(
T
val
)
{
return
T
(
1
)
/
(
T
(
1
)
+
exp
(
-
val
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment