Changes to get CNTKEval to compile on Windows
This commit is contained in:
Родитель
951d123abb
Коммит
735227c8b8
|
@ -5,6 +5,10 @@
|
||||||
//
|
//
|
||||||
// dllmain.cpp : Defines the entry point for the DLL application.
|
// dllmain.cpp : Defines the entry point for the DLL application.
|
||||||
#include "stdafx.h"
|
#include "stdafx.h"
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#include <Windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
BOOL APIENTRY DllMain( HMODULE /*hModule*/,
|
BOOL APIENTRY DllMain( HMODULE /*hModule*/,
|
||||||
DWORD ul_reason_for_call,
|
DWORD ul_reason_for_call,
|
||||||
|
|
|
@ -11,7 +11,13 @@
|
||||||
#include "IComputationNetBuilder.h"
|
#include "IComputationNetBuilder.h"
|
||||||
#include "SGD.h"
|
#include "SGD.h"
|
||||||
|
|
||||||
namespace Microsoft { namespace MSR { namespace CNTK {
|
// The SGD CLass is MPI-aware and expects these globals to exist.
|
||||||
|
int myRank = 0;
|
||||||
|
int numProcs = 1;
|
||||||
|
|
||||||
|
namespace Microsoft {
|
||||||
|
namespace MSR {
|
||||||
|
namespace CNTK {
|
||||||
|
|
||||||
typedef Matrix<float> FloatMatrix;
|
typedef Matrix<float> FloatMatrix;
|
||||||
typedef Matrix<double> DoubleMatrix;
|
typedef Matrix<double> DoubleMatrix;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче