CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

Error occured when using FutureValue node

Open oscarzbz opened this issue 10 years ago • 3 comments

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.

oscarzbz avatar Apr 06 '16 07:04 oscarzbz

In addition, this error occurred when I built an BLSTM.

oscarzbz avatar Apr 11 '16 02:04 oscarzbz

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.

frankseide avatar Apr 11 '16 19:04 frankseide

Yup,it works ,Much obliged! :-)

oscarzbz avatar Apr 12 '16 01:04 oscarzbz