Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
bc8da700
Commit
bc8da700
authored
Jan 19, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix train-timit (#603)
parent
e4953ecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
examples/CTC-TIMIT/train-timit.py
examples/CTC-TIMIT/train-timit.py
+4
-3
No files found.
examples/CTC-TIMIT/train-timit.py
View file @
bc8da700
...
...
@@ -10,6 +10,7 @@ from six.moves import range
from
tensorpack
import
*
from
tensorpack.tfutils.gradproc
import
SummaryGradient
,
GlobalNormClip
from
tensorpack.utils
import
serialize
import
tensorflow
as
tf
from
timitdata
import
TIMITBatch
...
...
@@ -26,9 +27,9 @@ FEATUREDIM = 39 # MFCC feature dimension
class
Model
(
ModelDesc
):
def
_get_inputs
(
self
):
return
[
InputDesc
(
tf
.
float32
,
[
None
,
None
,
FEATUREDIM
],
'feat'
),
# bxmaxseqx39
InputDesc
(
tf
.
int64
,
None
,
'labelidx'
),
# label is b x maxlen, sparse
InputDesc
(
tf
.
int32
,
None
,
'labelvalue'
),
InputDesc
(
tf
.
int64
,
None
,
'labelshape'
),
InputDesc
(
tf
.
int64
,
[
None
,
None
]
,
'labelidx'
),
# label is b x maxlen, sparse
InputDesc
(
tf
.
int32
,
[
None
]
,
'labelvalue'
),
InputDesc
(
tf
.
int64
,
[
None
]
,
'labelshape'
),
InputDesc
(
tf
.
int32
,
[
None
],
'seqlen'
),
# b
]
...
...
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