https://github.com/Microsoft/CNTK
Raw File
Tip revision: 1e4895a3eb1fd9cce698e6f44f0a18441b3b6061 authored by Aghagolzadeh on 26 June 2018, 22:48:06 UTC
Update MatrixQuantizer_kernel.cu
Tip revision: 1e4895a
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