Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
d59320c7
Commit
d59320c7
authored
Sep 25, 2018
by
Lianmin Zheng
Committed by
Tianqi Chen
Sep 25, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RUNTIME] Use weak link for fp16 functions (#1769)
parent
72ad9a38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
src/runtime/builtin_fp16.cc
+5
-6
No files found.
src/runtime/builtin_fp16.cc
View file @
d59320c7
...
@@ -5,17 +5,16 @@
...
@@ -5,17 +5,16 @@
*/
*/
#include <builtin_fp16.h>
#include <builtin_fp16.h>
#include <tvm/runtime/c_runtime_api.h>
namespace
tvm
{
extern
"C"
{
namespace
runtime
{
extern
"C"
uint16_t
__gnu_f2h_ieee
(
float
a
)
{
TVM_WEAK
uint16_t
__gnu_f2h_ieee
(
float
a
)
{
return
__truncXfYf2__
<
float
,
uint32_t
,
23
,
uint16_t
,
uint16_t
,
10
>
(
a
);
return
__truncXfYf2__
<
float
,
uint32_t
,
23
,
uint16_t
,
uint16_t
,
10
>
(
a
);
}
}
extern
"C"
float
__gnu_h2f_ieee
(
uint16_t
a
)
{
TVM_WEAK
float
__gnu_h2f_ieee
(
uint16_t
a
)
{
return
__extendXfYf2__
<
uint16_t
,
uint16_t
,
10
,
float
,
uint32_t
,
23
>
(
a
);
return
__extendXfYf2__
<
uint16_t
,
uint16_t
,
10
,
float
,
uint32_t
,
23
>
(
a
);
}
}
}
// namespace runtime
}
}
// namespace tvm
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