swh:1:snp:f50ab94432af916b5fb8b4ad831e8dddded77084
Raw File
Tip revision: fd739752331bec4416e988984f15f36b84df79bb authored by Vadim Mazalov on 22 November 2017, 19:54:43 UTC
Ensure bias and scale params have the same name
Tip revision: fd73975
DataDeserializer.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

// Currently it is a workaround to make CNTKLibrary.h header only
// So that interfaces can be implemented by different libraries without
// binary dependency on CNTKLibrary.so/dll.
// TODO: CNTKLibrary.h should be cleaned up to allow header only dependencies.

#define CNTK_HEADERONLY_DEFINITIONS     1

namespace CNTK {

#pragma warning(push)
#pragma warning(disable : 4996)

#ifdef _MSC_VER
    template <class E>
    __declspec(noreturn) void ThrowFormatted(const char* format, ...);
#else
    template <class E>
    __attribute__((noreturn)) void ThrowFormatted(const char* format, ...) __attribute__((format(printf, 1, 2)));
#endif

#pragma warning(pop)

}

namespace CNTK { namespace Internal {
    bool IsReversingTensorShapesInErrorMessagesEnabled();
}}

#undef max

// Current a stop gap to redirect to CNTK v2 interfaces/types.
#include "CNTKLibraryExperimental.h"

#include "Config.h"

using Microsoft::MSR::CNTK::ConfigParameters;
back to top