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
e3365445
Commit
e3365445
authored
Aug 23, 2018
by
Jared Roesch
Committed by
Tianqi Chen
Aug 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Fix issue with TypedPackedFunc template instatition (#1649)
parent
3dbc0d64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
include/tvm/runtime/packed_func.h
+7
-3
No files found.
include/tvm/runtime/packed_func.h
View file @
e3365445
...
...
@@ -180,9 +180,7 @@ class TypedPackedFunc<R(Args...)> {
*
* \param packed The packed function
*/
explicit
TypedPackedFunc
(
PackedFunc
packed
)
:
packed_
(
packed
)
{
}
inline
explicit
TypedPackedFunc
(
PackedFunc
packed
);
/*!
* \brief construct from a lambda function with the same signature.
*
...
...
@@ -925,6 +923,8 @@ inline PackedFunc::FType PackedFunc::body() const {
return
body_
;
}
// internal namespace
namespace
detail
{
...
...
@@ -1132,6 +1132,10 @@ struct typed_packed_call_dispatcher<void> {
}
// namespace detail
template
<
typename
R
,
typename
...
Args
>
TypedPackedFunc
<
R
(
Args
...)
>::
TypedPackedFunc
(
PackedFunc
packed
)
:
packed_
(
packed
)
{}
template
<
typename
R
,
typename
...
Args
>
template
<
typename
FType
>
inline
void
TypedPackedFunc
<
R
(
Args
...)
>::
AssignTypedLambda
(
FType
flambda
)
{
packed_
=
PackedFunc
([
flambda
](
const
TVMArgs
&
args
,
TVMRetValue
*
rv
)
{
...
...
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