https://github.com/Microsoft/CNTK
Raw File
Tip revision: 9c5362401bb1badf024c6d4707b092637abad6ab authored by Rui Zhao (SPEECH) on 13 March 2020, 01:44:39 UTC
fix TS issue
Tip revision: 9c53624
MLFBinaryDeserializer.h
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//

#pragma once

#include <boost/noncopyable.hpp>
#include "MLFDeserializer.h"
#include "Index.h"

namespace CNTK {

    // Class represents an MLF deserializer.
    // Provides a set of chunks/sequences to the upper layers.
    class MLFBinaryDeserializer : public MLFDeserializer
    {
    public:
        // Expects new configuration.
        MLFBinaryDeserializer(CorpusDescriptorPtr corpus, const ConfigParameters& config, bool primary);

        // TODO: Should be removed, when all readers go away, expects configuration in a legacy mode.
        MLFBinaryDeserializer(CorpusDescriptorPtr corpus, const ConfigParameters& config, const std::wstring& streamName);

        // Retrieves a chunk with data.
        virtual ChunkPtr GetChunk(ChunkIdType) override;

    private:
        class BinarySequenceChunk;
    };
}
back to top