https://github.com/Microsoft/CNTK
Raw File
Tip revision: db6d03aa40971edaf88bcd2c906bd5ea65201846 authored by Spandan Tiwari on 26 August 2018, 22:28:31 UTC
text fix
Tip revision: db6d03a
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