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
e35ecae8
Commit
e35ecae8
authored
Nov 26, 2019
by
Junru Shao
Committed by
Tianqi Chen
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow Array/Map store objects that are not NodeRef (#4430)
parent
bc69a534
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/tvm/node/container.h
+3
-3
No files found.
include/tvm/node/container.h
View file @
e35ecae8
...
...
@@ -137,7 +137,7 @@ class IterAdapter {
* \tparam T The content NodeRef type.
*/
template
<
typename
T
,
typename
=
typename
std
::
enable_if
<
std
::
is_base_of
<
Node
Ref
,
T
>::
value
>::
type
>
typename
=
typename
std
::
enable_if
<
std
::
is_base_of
<
Object
Ref
,
T
>::
value
>::
type
>
class
Array
:
public
NodeRef
{
public
:
/*!
...
...
@@ -330,9 +330,9 @@ class Array : public NodeRef {
template
<
typename
K
,
typename
V
,
typename
=
typename
std
::
enable_if
<
std
::
is_base_of
<
Node
Ref
,
K
>::
value
||
std
::
is_base_of
<
Object
Ref
,
K
>::
value
||
std
::
is_base_of
<
std
::
string
,
K
>::
value
>::
type
,
typename
=
typename
std
::
enable_if
<
std
::
is_base_of
<
Node
Ref
,
V
>::
value
>::
type
>
typename
=
typename
std
::
enable_if
<
std
::
is_base_of
<
Object
Ref
,
V
>::
value
>::
type
>
class
Map
:
public
NodeRef
{
public
:
/*!
...
...
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