Skip to content

Commit 5b9defe

Browse files
authored
Merge pull request #3 from interesaaat/LibTorchSharpFirstTest
libTorchSharp first part
2 parents c35cbb7 + 9534cbb commit 5b9defe

File tree

160 files changed

+210432
-9503
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+210432
-9503
lines changed

.gitignore

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
*pdb
2-
*exe
3-
bin
4-
obj
5-
.vs/
1+
*~
2+
.vs/
3+
.vscode/
4+
obj/
5+
bin/
6+
*.exe
7+
*.pdb
8+
*.trx
9+
.*.sw*
10+
linux
11+
macos
12+
windows
13+
*.zip
14+
/Debug

AtenSharp/AtenSharp.csproj

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
</PropertyGroup>
6+
7+
<PropertyGroup>
8+
<GeneratePackageOnBuild Condition=" '$(Configuration)' == 'Release' ">true</GeneratePackageOnBuild>
9+
<PackageId>AtenSharp</PackageId>
10+
<PackageVersion>0.1</PackageVersion>
11+
<Authors>Miguel de Icaza</Authors>
12+
<PackageLicenseUrl>https://github.com/xamarin/TorchSharp/blob/master/LICENSE</PackageLicenseUrl>
13+
<PackageProjectUrl>https://github.com/xamarin/TorchSharp/</PackageProjectUrl>
14+
<PackageTags>machine-learning, torch, pytorch, xamarin, .net, c#, f#</PackageTags>
15+
<Description>.NET Bindings for Torch</Description>
16+
<Owners>Miguel de Icaza</Owners>
17+
<Summary>.NET API for Torch</Summary>
18+
<PackageReleaseNotes></PackageReleaseNotes>
19+
</PropertyGroup>
20+
21+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
22+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
23+
</PropertyGroup>
24+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
26+
<DebugType></DebugType>
27+
<DocumentationFile>bin\Release\netstandard2.0\TorchSharp.xml</DocumentationFile>
28+
</PropertyGroup>
29+
<ItemGroup>
30+
<None Remove="PreprocessedT4Template.tt" />
31+
</ItemGroup>
32+
<ItemGroup>
33+
<None Update="TypeGeneration.tt">
34+
<Generator>TextTemplatingFileGenerator</Generator>
35+
<LastGenOutput>TypeGeneration.cs</LastGenOutput>
36+
</None>
37+
<None Update="Raw/Blas.tt">
38+
<Generator>TextTemplatingFileGenerator</Generator>
39+
<LastGenOutput>Raw/Blas.generated.cs</LastGenOutput>
40+
</None>
41+
<None Update="Raw/Lapack.tt">
42+
<Generator>TextTemplatingFileGenerator</Generator>
43+
<LastGenOutput>Raw/Lapack.generated.cs</LastGenOutput>
44+
</None>
45+
<None Update="Raw/Vector.tt">
46+
<Generator>TextTemplatingFileGenerator</Generator>
47+
<LastGenOutput>Raw/Vector.generated.cs</LastGenOutput>
48+
</None>
49+
<None Update="FileOperations.tt">
50+
<Generator>TextTemplatingFileGenerator</Generator>
51+
<LastGenOutput>FileOperations.cs</LastGenOutput>
52+
</None>
53+
<None Update="Generator.cshtml">
54+
<Generator>RazorTemplatePreprocessor</Generator>
55+
<LastGenOutput>Generator.cs</LastGenOutput>
56+
</None>
57+
</ItemGroup>
58+
<ItemGroup>
59+
<Compile Remove="PreprocessedT4Template.cs" />
60+
<Compile Remove="T4Template.cs" />
61+
<Compile Remove="Handle.cs" />
62+
</ItemGroup>
63+
<ItemGroup>
64+
<Compile Update="TypeGeneration.cs">
65+
<DependentUpon>TypeGeneration.tt</DependentUpon>
66+
<DesignTime>True</DesignTime>
67+
<AutoGen>True</AutoGen>
68+
</Compile>
69+
<Compile Update="Raw/Blas.generated.cs">
70+
<DependentUpon>Raw/Types.ttinclude</DependentUpon>
71+
<DependentUpon>Raw/Blas.tt</DependentUpon>
72+
</Compile>
73+
<Compile Update="Raw/Lapack.generated.cs">
74+
<DependentUpon>Raw/Types.ttinclude</DependentUpon>
75+
<DependentUpon>Raw/Lapack.tt</DependentUpon>
76+
</Compile>
77+
<Compile Update="Raw/Vector.generated.cs">
78+
<DependentUpon>Raw/Types.ttinclude</DependentUpon>
79+
<DependentUpon>Raw/Vector.tt</DependentUpon>
80+
</Compile>
81+
<Compile Update="FileOperations.cs">
82+
<DependentUpon>FileOperations.tt</DependentUpon>
83+
<DesignTime>True</DesignTime>
84+
<AutoGen>True</AutoGen>
85+
</Compile>
86+
</ItemGroup>
87+
<ItemGroup>
88+
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
89+
</ItemGroup>
90+
<PropertyGroup>
91+
<HasPayload Condition="Exists('../windows') and Exists ('../macos') and Exists ('../linux')">true</HasPayload>
92+
</PropertyGroup>
93+
<ItemGroup Condition="'$(HasPayload)' == 'true'">
94+
<None Include="nuget\TorchSharp.targets" PackagePath="build\netstandard2.0\TensorFlowSharp.targets" Pack="true" />
95+
96+
<None Include="..\windows\c10.dll" Link="nuget\runtimes\win7-x64\native\c10.dll" PackagePath="runtimes\win7-x64\native\c10.dll" Pack="true" />
97+
<None Include="..\windows\caffe2.dll" Link="nuget\runtimes\win7-x64\native\caffe2.dll" PackagePath="runtimes\win7-x64\native\caffe2.dll" Pack="true" />
98+
99+
<None Include="..\macos\libtorch\lib\libc10.dylib" Link="nuget\runtimes\osx\native\libc10.dylib" PackagePath="runtimes\osx\native\libc10.dylib" Pack="true" />
100+
<None Include="..\macos\libtorch\lib\libcaffe2.dylib" Link="nuget\runtimes\osx\native\libcaffe2.dylib" PackagePath="runtimes\osx\native\libcaffe2.dylib" Pack="true" />
101+
102+
<None Include="..\linux\libtorch\lib\libc10.so" Link="nuget\runtimes\linux\native\libc10.so" PackagePath="runtimes\linux\native\libc10.so" Pack="true" />
103+
<None Include="..\linux\libtorch\lib\libcaffe2.so" Link="nuget\runtimes\linux\native\libcaffe2.so" PackagePath="runtimes\linux\native\libcaffe2.so" Pack="true" />
104+
</ItemGroup>
105+
</Project>

0 commit comments

Comments
 (0)