Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tvm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cld
ml
tvm
Commits
e3365445
Commit
e3365445
authored
6 years ago
by
Jared Roesch
Committed by
Tianqi Chen
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[FIX] Fix issue with TypedPackedFunc template instatition (#1649)
parent
3dbc0d64
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/tvm/runtime/packed_func.h
+7
-3
7 additions, 3 deletions
include/tvm/runtime/packed_func.h
with
7 additions
and
3 deletions
include/tvm/runtime/packed_func.h
+
7
−
3
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
{
...
...
@@ -1131,6 +1131,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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment