Error occured when using FutureValue node
I wanna buliding a BLSTM using NDL , in this model, both of PastValue node and FutureValue node are required. In this project, I used the HTKMLFreader as the data reader. Here is my configuration code.
RootDir = ".."
ConfigDir = "$RootDir$/Config"
DataDir = "$RootDir$/Data"
OutputDir = "$RootDir$/Output"
ModelDir = "$OutputDir$/Models"
# deviceId = -1 for CPU, >=0 for GPU devices, "auto" chooses the best GPU, or CPU if no usable GPU is available
deviceId = 0
command = speechTrain
precision = "float"
traceLevel = 1
modelPath = "$ModelDir$/blstmp-4layer-deepgate.dnn"
parallelTrain = true
#######################################
# TRAINING CONFIG #
#######################################
frameMode = false
truncated = true
speechTrain = [
action = "train"
nbrUttsIneachRecurrentIter = 16
NDLNetworkBuilder = [
networkDescription = "$ConfigDir$/blstmp-4layer-deepgate.ndl"
]
SGD = [
epochSize = 0
minibatchSize = 16
learningRatesPerMB = 0.5
numMBsToShowResult = 10
momentumPerMB = 0:0.9
maxEpochs = 100
keepCheckPointFiles = true
]
reader = [
readerType = "HTKMLFReader"
readMethod = "blockRandomize"
miniBatchMode = "partial"
#nbruttsineachrecurrentiter = 32
randomize = "auto"
verbosity = 0
features = [
dim = 363
type = "real"
scpFile = "$DataDir$/glob_0000.scp"
]
labels = [
mlfFile = "$DataDir$/glob_0000.mlf"
labelMappingFile = "$DataDir$/state.list"
labelDim = 132
labelType = "category"
]
]
]
and the error is as below.
EXCEPTION occurred: The delay node tries to access future values that are out of bound, possibly because there is no sentence end marker in the MBLayout.
In addition, this error occurred when I built an BLSTM.
Hi Oscar, FutureValue conflicts with truncated BPTT. Truncated BPTT processes an input utterance left-to-right, and thus is not suitable for BLSTMs. Please try to set truncated=false.
Yup,it works ,Much obliged! :-)