forked from microsoft/CNTK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed a few error throws to XXXError() calls; moved one Validate() dimension check under isFinal condition
- Loading branch information
Showing
28 changed files
with
1,739 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// | ||
// <copyright file="Exports.cpp" company="Microsoft"> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// </copyright> | ||
// | ||
// Exports.cpp : Defines the exported functions for the DLL application. | ||
// | ||
|
||
#include "stdafx.h" | ||
#define DATAREADER_EXPORTS | ||
#include "DataReader.h" | ||
#include "ImageReader.h" | ||
|
||
namespace Microsoft { namespace MSR { namespace CNTK { | ||
|
||
template<class ElemType> | ||
void DATAREADER_API GetReader(IDataReader<ElemType>** preader) | ||
{ | ||
*preader = new ImageReader<ElemType>(); | ||
} | ||
|
||
extern "C" DATAREADER_API void GetReaderF(IDataReader<float>** preader) | ||
{ | ||
GetReader(preader); | ||
} | ||
extern "C" DATAREADER_API void GetReaderD(IDataReader<double>** preader) | ||
{ | ||
GetReader(preader); | ||
} | ||
}}} |
Oops, something went wrong.