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
58fa0531
Commit
58fa0531
authored
Nov 21, 2018
by
Steven S. Lyubomirsky
Committed by
Tianqi Chen
Nov 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse shape dims of weight type (#2155)
parent
f3ae3f20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/tvm/relay/testing/lstm.py
+2
-2
No files found.
python/tvm/relay/testing/lstm.py
View file @
58fa0531
...
...
@@ -49,7 +49,7 @@ def lstm_cell(num_hidden, batch_size=1, dtype="float32", name=""):
builder
=
relay
.
ScopeBuilder
()
input_type
=
relay
.
TensorType
((
batch_size
,
num_hidden
),
dtype
)
weight_type
=
relay
.
TensorType
((
num_hidden
,
4
*
num_hidden
),
dtype
)
weight_type
=
relay
.
TensorType
((
4
*
num_hidden
,
num_hidden
),
dtype
)
bias_type
=
relay
.
TensorType
((
4
*
num_hidden
,),
dtype
)
dense_type
=
relay
.
TensorType
((
batch_size
,
4
*
num_hidden
),
dtype
)
...
...
@@ -116,7 +116,7 @@ def lstm_cell(num_hidden, batch_size=1, dtype="float32", name=""):
def
get_net
(
iterations
,
num_hidden
,
batch_size
=
1
,
dtype
=
"float32"
):
'''Constructs an unrolled RNN with LSTM cells'''
input_type
=
relay
.
TensorType
((
batch_size
,
num_hidden
),
dtype
)
weight_type
=
relay
.
TensorType
((
num_hidden
,
4
*
num_hidden
),
dtype
)
weight_type
=
relay
.
TensorType
((
4
*
num_hidden
,
num_hidden
),
dtype
)
bias_type
=
relay
.
TensorType
((
4
*
num_hidden
,),
dtype
)
state_type
=
relay
.
TupleType
([
input_type
,
input_type
])
...
...
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