https://github.com/Microsoft/CNTK
Raw File
Tip revision: 58f810fed055dc1b795b66ec8d3492dfbdfef968 authored by liqfu on 22 September 2018, 16:53:27 UTC
update with ONNX1.3 and latest onnxruntime
Tip revision: 58f810f
Packer.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 "Reader.h"
#include "MemoryProvider.h"

namespace CNTK {

// A packer interface.
class Packer
{
public:
    // Sets current epoch configuration.
    virtual void SetConfiguration(const ReaderConfiguration& config, const std::vector<MemoryProviderPtr>& memoryProviders) = 0;

    // Flushes the internal state of the packer.
    virtual void Reset() {};

    virtual Minibatch ReadMinibatch() = 0;
    virtual std::vector<StreamInformation> GetStreamDescriptions() = 0;

    virtual ~Packer() {}
};

typedef std::shared_ptr<Packer> PackerPtr;

}
back to top