https://github.com/Microsoft/CNTK
Raw File
Tip revision: 9e8d093ceaa2729b9b85f8f9fd798561ec603664 authored by Thiago Crepaldi on 07 June 2018, 17:59:44 UTC
Update linux build to use latest mkl-dnn and embed it with mkl
Tip revision: 9e8d093
MLFIndexBuilder.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 "IndexBuilder.h"

namespace CNTK {

    class MLFIndexBuilder : public IndexBuilder
    {
    public:
        MLFIndexBuilder(const FileWrapper& input, CorpusDescriptorPtr corpus);

        virtual std::wstring GetCacheFilename() override;

    private:

        virtual void Populate(std::shared_ptr<Index>& index) override;

        enum class State
        {
            Header,
            UtteranceKey,
            UtteranceFrames
        };

        inline bool TryParseSequenceKey(const std::string& line, size_t& id, std::function<size_t(const std::string&)> keyToId);
    };

} // namespace
back to top