Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
David Brownell
committed
Jun 6, 2018
1 parent
cdb9afb
commit 7882cf0
Showing
39 changed files
with
1,389 additions
and
247 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,11 @@ | ||
cmake_minimum_required(VERSION 3.8) | ||
|
||
project(CNTK) | ||
|
||
include(Tools/cmake/options.cmake REQUIRED) | ||
include(Tools/cmake/common.cmake REQUIRED) | ||
include(Tools/cmake/cntk_common.cmake REQUIRED) | ||
|
||
add_subdirectory(bindings/csharp/swig) | ||
|
||
include(Tools/cmake/debug.cmake REQUIRED) |
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
141 changes: 56 additions & 85 deletions
141
Tests/EndToEndTests/CNTKv2CSharp/CNTKLibraryCSTrainingTest/CNTKLibraryCSTrainingTest.csproj
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 |
---|---|---|
@@ -1,97 +1,68 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0" DefaultTargets="Build" InitialTargets="CheckDependencies" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<Import Project="$(SolutionDir)\CNTK.Common.props" /> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<Import Project="..\..\..\..\CNTK.Common.props" /> | ||
|
||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">x64</Platform> | ||
<ProjectGuid>{0DF2109B-BB85-4718-82DE-1C0536D4F2C3}</ProjectGuid> | ||
<IntermediateOutputPath>$(IntDir)obj\</IntermediateOutputPath> | ||
<BaseIntermediateOutputPath>$(IntDir)obj\</BaseIntermediateOutputPath> | ||
<OutputPath>$(OutDir)</OutputPath> | ||
<OutputType>Exe</OutputType> | ||
<OutDirPrefix Condition="'$(OutDirPrefix)' == ''">..\..\..\..</OutDirPrefix> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<RootNamespace>CNTK.CNTKLibraryCSTrainingTest</RootNamespace> | ||
|
||
<IsPackable>false</IsPackable> | ||
|
||
<Version>$(CntkVersion)</Version> | ||
|
||
<Authors>Microsoft Corporation</Authors> | ||
|
||
<Copyright>Copyright © $([System.DateTime]::Now.ToString(`yyyy`))</Copyright> | ||
|
||
<OutDir>$(OutDirPrefix)\$(Platform)\$(Configuration)</OutDir> | ||
|
||
<Platforms>x64</Platforms> | ||
|
||
<Configurations>Debug;Debug_CpuOnly;Release;Release_CpuOnly;Release_NoOpt</Configurations> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<WarningLevel>4</WarningLevel> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<DebugType>portable</DebugType> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet> | ||
<ErrorReport>prompt</ErrorReport> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>CNTK.CNTKLibraryCSTrainingTest</RootNamespace> | ||
<AssemblyName>CNTKLibraryCSTrainingTest</AssemblyName> | ||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<TargetFrameworkProfile /> | ||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(DebugBuild)"> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="$(ReleaseBuild)"> | ||
<DebugType>pdbonly</DebugType> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<!-- The following definitions are needed in order to make the configuration Debug/Debug_CpuOnly live --> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug_CpuOnly|x64'"> | ||
<DefineConstants>TRACE;DEBUG;CPUONLY</DefineConstants> | ||
<WarningsAsErrors /> | ||
<ApplicationIcon /> | ||
<OutputType>Exe</OutputType> | ||
<StartupObject /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> | ||
<Optimize>true</Optimize> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_NoOpt|x64'"> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<Optimize>false</Optimize> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_CpuOnly|x64'"> | ||
<Optimize>true</Optimize> | ||
<DefineConstants>TRACE;CPUONLY</DefineConstants> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug_CpuOnly|x64'"> | ||
<DefineConstants>TRACE;DEBUG_CPUONLY;NETCOREAPP2_0;CPUONLY</DefineConstants> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release_NoOpt|x64'"> | ||
<Optimize>false</Optimize> | ||
<DefineConstants>TRACE</DefineConstants> | ||
|
||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release_CpuOnly|x64'"> | ||
<DefineConstants>TRACE;RELEASE_CPUONLY;NETCOREAPP2_0;CPUONLY</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Drawing" /> | ||
<ProjectReference Include="..\..\..\..\bindings\csharp\CNTKLibraryManagedDll\CNTKLibraryManagedDll.csproj"> | ||
<Project>{3A09FFE0-7865-4268-8301-73ED64BB75DF}</Project> | ||
<Name>CNTKLibraryManagedDll</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\..\..\Examples\Evaluation\ImageExtension\CNTKImageProcessing.cs"> | ||
<Link>CNTKImageProcessing.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\CifarResNetClassifier.cs"> | ||
<Link>CifarResNetClassifier.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\LogisticRegression.cs"> | ||
<Link>LogisticRegression.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\LSTMSequenceClassifier.cs"> | ||
<Link>LSTMSequenceClassifier.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\MNISTClassifier.cs"> | ||
<Link>MNISTClassifier.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\TestHelper.cs"> | ||
<Link>TestHelper.cs</Link> | ||
</Compile> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\TransferLearning.cs"> | ||
<Link>TransferLearning.cs</Link> | ||
</Compile> | ||
<Compile Include="Program.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="SimpleFeedForwardClassifierTest.cs" /> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\CifarResNetClassifier.cs" Link="CifarResNetClassifier.cs" /> | ||
<Compile Include="..\..\..\..\Examples\Evaluation\ImageExtension\CNTKImageProcessing.cs" Link="CNTKImageProcessing.cs" /> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\LogisticRegression.cs" Link="LogisticRegression.cs" /> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\LSTMSequenceClassifier.cs" Link="LSTMSequenceClassifier.cs" /> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\MNISTClassifier.cs" Link="MNISTClassifier.cs" /> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\TestHelper.cs" Link="TestHelper.cs" /> | ||
<Compile Include="..\..\..\..\Examples\TrainingCSharp\Common\TransferLearning.cs" Link="TransferLearning.cs" /> | ||
|
||
<None Remove="App.config" /> | ||
<Compile Remove="Properties\AssemblyInfo.cs" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="App.config" /> | ||
<PackageReference Include="CoreCompat.System.Drawing" Version="1.0.0-beta006" /> | ||
|
||
<ProjectReference Include="..\..\..\..\bindings\csharp\CNTKLibraryManagedDll\CNTKLibraryManagedDll.csproj" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Target Name="Build" Condition="$(HasSwig)" DependsOnTargets="$(BuildDependsOn)" /> | ||
<Target Name="CheckDependencies"> | ||
<Warning Condition="!$(HasSwig)" Text="The project requires SWIG to be installed. Please see https://docs.microsoft.com/en-us/cognitive-toolkit/Setup-CNTK-on-Windows#optional-swig for installation instructions." /> | ||
</Target> | ||
</Project> | ||
|
||
</Project> |
Oops, something went wrong.