Skip to content

Commit 94c0bb8

Browse files
committed
Release v0.150.0 based on tensorflowv v2.15.0.
1 parent f7459b3 commit 94c0bb8

File tree

11 files changed

+27
-37
lines changed

11 files changed

+27
-37
lines changed

README.md

+4-15
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,6 @@
1515

1616
English | [中文](docs/README-CN.md)
1717

18-
**=========================================================**
19-
20-
### [Voting: Naming Convention Approach of v1.0.0](https://github.com/SciSharp/TensorFlow.NET/issues/1074)
21-
22-
Dear all,
23-
24-
We would like to urge you to participate in our upcoming vote regarding the naming convention for TensorFlow.NET version 1.0.0 in [#1074](https://github.com/SciSharp/TensorFlow.NET/issues/1074). Your participation in the vote is essential to help us decide on the best approach for improving the naming convention used in previous versions.
25-
26-
Thank you,
27-
28-
TensorFlow.NET Authors
29-
30-
**=========================================================**
31-
3218
*master branch and v0.100.x is corresponding to tensorflow v2.10, v0.6x branch is from tensorflow v2.6, v0.15-tensorflow1.15 is from tensorflow1.15. Please add `https://www.myget.org/F/scisharp/api/v3/index.json` to nuget source to use nightly release.*
3319

3420

@@ -75,9 +61,12 @@ PM> Install-Package TensorFlow.Keras
7561
The second part is the computing support part. Only one of the following packages is needed, depending on your device and system.
7662

7763
```
78-
### CPU version for Windows, Linux and Mac
64+
### CPU version for Windows and Linux
7965
PM> Install-Package SciSharp.TensorFlow.Redist
8066
67+
### CPU version for MacOS
68+
PM> Install-Package SciSharp.TensorFlow.Redist-OSX
69+
8170
### GPU version for Windows (CUDA and cuDNN are required)
8271
PM> Install-Package SciSharp.TensorFlow.Redist-Windows-GPU
8372

src/TensorFlowNET.Core/APIs/c_api.customize.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ namespace Tensorflow
88
public partial class c_api
99
{
1010
[DllImport(TensorFlowLibName)]
11-
public static extern void TFC_SetAttr(SafeGraphHandle graph, IntPtr op, string attr_name, SafeBufferHandle attr_value_proto, SafeStatusHandle status);
11+
public static extern void TF_SetAttr(SafeGraphHandle graph, IntPtr op, string attr_name, SafeBufferHandle attr_value_proto, SafeStatusHandle status);
1212
[DllImport(TensorFlowLibName)]
13-
public static extern SafeBufferHandle TFC_GetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output);
13+
public static extern SafeBufferHandle TF_GetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output);
1414
[DllImport(TensorFlowLibName)]
15-
public static extern void TFC_SetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output, byte[] data, long proto_len, SafeStatusHandle status);
15+
public static extern void TF_SetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output, byte[] data, long proto_len, SafeStatusHandle status);
1616
}
1717
}

src/TensorFlowNET.Core/Operations/Operation.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ internal void _set_attr(string attr_name, AttrValue attr_value)
437437
internal void _set_attr_with_buf(string attr_name, Buffer attr_buf)
438438
{
439439
Status status = new();
440-
c_api.TFC_SetAttr(graph, _handle, attr_name, attr_buf, status);
440+
c_api.TF_SetAttr(graph, _handle, attr_name, attr_buf, status);
441441
status.Check(true);
442442
}
443443
}

src/TensorFlowNET.Core/Operations/handle_data_util.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static void set_handle_data(Tensor target_t, HandleData handle_data)
5151
}
5252
Status status = new();
5353
var proto = handle_data.ToByteArray();
54-
c_api.TFC_SetHandleShapeAndType(target_t.graph.c_graph, target_t._as_tf_output(), proto, proto.Length, status);
54+
c_api.TF_SetHandleShapeAndType(target_t.graph.c_graph, target_t._as_tf_output(), proto, proto.Length, status);
5555
status.Check(true);
5656
}
5757

src/TensorFlowNET.Core/Tensorflow.Binding.csproj

+9-5
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
55
<AssemblyName>Tensorflow.Binding</AssemblyName>
66
<RootNamespace>Tensorflow</RootNamespace>
7-
<TargetTensorFlow>2.11.0</TargetTensorFlow>
8-
<Version>0.110.4</Version>
7+
<TargetTensorFlow>2.15.0</TargetTensorFlow>
8+
<Version>0.150.0</Version>
99
<LangVersion>10.0</LangVersion>
1010
<Nullable>enable</Nullable>
1111
<Authors>Haiping Chen, Eli Belash, Yaohui Liu, Meinrad Recheis</Authors>
@@ -20,8 +20,11 @@
2020
<Description>Google's TensorFlow full binding in .NET Standard.
2121
Building, training and infering deep learning models.
2222
https://tensorflownet.readthedocs.io</Description>
23-
<AssemblyVersion>0.110.3.0</AssemblyVersion>
23+
<AssemblyVersion>0.150.0.0</AssemblyVersion>
2424
<PackageReleaseNotes>
25+
tf.net 0.150.x and above are based on tensorflow native 2.15.0
26+
* Support BERT model.
27+
2528
tf.net 0.110.x and above are based on tensorflow native 2.11.0
2629
* Support RNN, LSTM model.
2730
* Support Transformer model.
@@ -43,8 +46,9 @@ https://tensorflownet.readthedocs.io</Description>
4346
tf.net 0.7x.x aligns with TensorFlow v2.7.x native library.
4447
tf.net 0.10x.x aligns with TensorFlow v2.10.x native library.
4548
tf.net 0.11x.x aligns with TensorFlow v2.11.x native library.
49+
tf.net 0.15x.x aligns with TensorFlow v2.15.x native library.
4650
</PackageReleaseNotes>
47-
<FileVersion>0.110.4.0</FileVersion>
51+
<FileVersion>0.150.0.0</FileVersion>
4852
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4953
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
5054
<PackageOutputPath>packages</PackageOutputPath>
@@ -176,7 +180,7 @@ https://tensorflownet.readthedocs.io</Description>
176180
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
177181
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
178182
<PackageReference Include="OneOf" Version="3.0.263" />
179-
<PackageReference Include="Protobuf.Text" Version="0.7.1" />
183+
<PackageReference Include="Protobuf.Text" Version="0.7.2" />
180184
<PackageReference Include="Razorvine.Pickle" Version="1.4.0" />
181185
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
182186
</ItemGroup>

src/TensorFlowNET.Core/ops.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ public static bool inside_function()
590590

591591
public static HandleData get_resource_handle_data(Tensor graph_op)
592592
{
593-
var handle_data = c_api.TFC_GetHandleShapeAndType(graph_op.graph.c_graph, graph_op._as_tf_output());
593+
var handle_data = c_api.TF_GetHandleShapeAndType(graph_op.graph.c_graph, graph_op._as_tf_output());
594594
try{
595595
var handle_str = c_api.ByteStringPiece(handle_data.DangerousGetHandle() == IntPtr.Zero ? null : new Buffer(handle_data));
596596
return HandleData.Parser.ParseFrom(handle_str);

src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

+5-4
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Nullable>enable</Nullable>
88
<RootNamespace>Tensorflow.Keras</RootNamespace>
99
<Platforms>AnyCPU;x64</Platforms>
10-
<Version>0.11.4</Version>
10+
<Version>0.15.0</Version>
1111
<Authors>Haiping Chen</Authors>
1212
<Product>Keras for .NET</Product>
1313
<Copyright>Apache 2.0, Haiping Chen since 2018</Copyright>
@@ -30,6 +30,7 @@
3030
* Fixed memory leak for YOLOv3 model.
3131
* Support RNN and LSTM models
3232
* Support Transformer model
33+
* Support BERT model
3334
</PackageReleaseNotes>
3435
<Description>Keras for .NET
3536

@@ -42,8 +43,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
4243
<RepositoryType>Git</RepositoryType>
4344
<SignAssembly>False</SignAssembly>
4445
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
45-
<AssemblyVersion>0.11.4.0</AssemblyVersion>
46-
<FileVersion>0.11.4.0</FileVersion>
46+
<AssemblyVersion>0.15.0.0</AssemblyVersion>
47+
<FileVersion>0.15.0.0</FileVersion>
4748
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4849
<Configurations>Debug;Release;GPU</Configurations>
4950
</PropertyGroup>
@@ -143,7 +144,7 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
143144
</PropertyGroup>
144145

145146
<ItemGroup>
146-
<PackageReference Include="HDF5-CSharp" Version="1.18.0" />
147+
<PackageReference Include="HDF5-CSharp" Version="1.19.0" />
147148
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
148149
<PackageReference Include="SharpZipLib" Version="1.4.2" />
149150
</ItemGroup>

src/TensorflowNET.Hub/Tensorflow.Hub.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</PropertyGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="SharpCompress" Version="0.33.0" />
29+
<PackageReference Include="SharpCompress" Version="0.34.1" />
3030
</ItemGroup>
3131

3232
<ItemGroup>

tools/TensorFlowNET.Console/Tensorflow.Console.csproj

+1-4
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,10 @@
1919
<PlatformTarget>AnyCPU</PlatformTarget>
2020
</PropertyGroup>
2121

22-
<ItemGroup>
23-
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.11.4" />
24-
</ItemGroup>
25-
2622
<ItemGroup>
2723
<ProjectReference Include="..\..\src\TensorFlowNET.Recommenders\Tensorflow.Recommenders.csproj" />
2824
<ProjectReference Include="..\..\src\TensorFlowNET.Text\Tensorflow.Text.csproj" />
25+
<ProjectReference Include="..\Tensorflow.UnitTest.RedistHolder\Tensorflow.UnitTest.RedistHolder.csproj" />
2926
</ItemGroup>
3027

3128
</Project>

tools/Tensorflow.CodeGen/Tensorflow.CodeGen.csproj

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
<ItemGroup>
1111
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="4.6.0-1.final" />
12-
<PackageReference Include="Protobuf.Text" Version="0.7.1" />
1312
</ItemGroup>
1413

1514
<ItemGroup>

tools/Tensorflow.UnitTest.RedistHolder/Tensorflow.UnitTest.RedistHolder.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.11.4" />
8+
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.16.0" />
99
<PackageReference Include="SciSharp.TensorFlow.Redist-Lite" Version="2.6.0" />
1010
</ItemGroup>
1111

0 commit comments

Comments
 (0)