Skip to content

Commit

Permalink
Release v0.150.0 based on tensorflowv v2.15.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed Nov 5, 2023
1 parent f7459b3 commit 94c0bb8
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 37 deletions.
19 changes: 4 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@

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

**=========================================================**

### [Voting: Naming Convention Approach of v1.0.0](https://github.com/SciSharp/TensorFlow.NET/issues/1074)

Dear all,

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.

Thank you,

TensorFlow.NET Authors

**=========================================================**

*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.*


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

```
### CPU version for Windows, Linux and Mac
### CPU version for Windows and Linux
PM> Install-Package SciSharp.TensorFlow.Redist
### CPU version for MacOS
PM> Install-Package SciSharp.TensorFlow.Redist-OSX
### GPU version for Windows (CUDA and cuDNN are required)
PM> Install-Package SciSharp.TensorFlow.Redist-Windows-GPU
Expand Down
6 changes: 3 additions & 3 deletions src/TensorFlowNET.Core/APIs/c_api.customize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ namespace Tensorflow
public partial class c_api
{
[DllImport(TensorFlowLibName)]
public static extern void TFC_SetAttr(SafeGraphHandle graph, IntPtr op, string attr_name, SafeBufferHandle attr_value_proto, SafeStatusHandle status);
public static extern void TF_SetAttr(SafeGraphHandle graph, IntPtr op, string attr_name, SafeBufferHandle attr_value_proto, SafeStatusHandle status);
[DllImport(TensorFlowLibName)]
public static extern SafeBufferHandle TFC_GetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output);
public static extern SafeBufferHandle TF_GetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output);
[DllImport(TensorFlowLibName)]
public static extern void TFC_SetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output, byte[] data, long proto_len, SafeStatusHandle status);
public static extern void TF_SetHandleShapeAndType(SafeGraphHandle c_graph, TF_Output output, byte[] data, long proto_len, SafeStatusHandle status);
}
}
2 changes: 1 addition & 1 deletion src/TensorFlowNET.Core/Operations/Operation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ internal void _set_attr(string attr_name, AttrValue attr_value)
internal void _set_attr_with_buf(string attr_name, Buffer attr_buf)
{
Status status = new();
c_api.TFC_SetAttr(graph, _handle, attr_name, attr_buf, status);
c_api.TF_SetAttr(graph, _handle, attr_name, attr_buf, status);
status.Check(true);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/TensorFlowNET.Core/Operations/handle_data_util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void set_handle_data(Tensor target_t, HandleData handle_data)
}
Status status = new();
var proto = handle_data.ToByteArray();
c_api.TFC_SetHandleShapeAndType(target_t.graph.c_graph, target_t._as_tf_output(), proto, proto.Length, status);
c_api.TF_SetHandleShapeAndType(target_t.graph.c_graph, target_t._as_tf_output(), proto, proto.Length, status);
status.Check(true);
}

Expand Down
14 changes: 9 additions & 5 deletions src/TensorFlowNET.Core/Tensorflow.Binding.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<AssemblyName>Tensorflow.Binding</AssemblyName>
<RootNamespace>Tensorflow</RootNamespace>
<TargetTensorFlow>2.11.0</TargetTensorFlow>
<Version>0.110.4</Version>
<TargetTensorFlow>2.15.0</TargetTensorFlow>
<Version>0.150.0</Version>
<LangVersion>10.0</LangVersion>
<Nullable>enable</Nullable>
<Authors>Haiping Chen, Eli Belash, Yaohui Liu, Meinrad Recheis</Authors>
Expand All @@ -20,8 +20,11 @@
<Description>Google's TensorFlow full binding in .NET Standard.
Building, training and infering deep learning models.
https://tensorflownet.readthedocs.io</Description>
<AssemblyVersion>0.110.3.0</AssemblyVersion>
<AssemblyVersion>0.150.0.0</AssemblyVersion>
<PackageReleaseNotes>
tf.net 0.150.x and above are based on tensorflow native 2.15.0
* Support BERT model.

tf.net 0.110.x and above are based on tensorflow native 2.11.0
* Support RNN, LSTM model.
* Support Transformer model.
Expand All @@ -43,8 +46,9 @@ https://tensorflownet.readthedocs.io</Description>
tf.net 0.7x.x aligns with TensorFlow v2.7.x native library.
tf.net 0.10x.x aligns with TensorFlow v2.10.x native library.
tf.net 0.11x.x aligns with TensorFlow v2.11.x native library.
tf.net 0.15x.x aligns with TensorFlow v2.15.x native library.
</PackageReleaseNotes>
<FileVersion>0.110.4.0</FileVersion>
<FileVersion>0.150.0.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageOutputPath>packages</PackageOutputPath>
Expand Down Expand Up @@ -176,7 +180,7 @@ https://tensorflownet.readthedocs.io</Description>
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="OneOf" Version="3.0.263" />
<PackageReference Include="Protobuf.Text" Version="0.7.1" />
<PackageReference Include="Protobuf.Text" Version="0.7.2" />
<PackageReference Include="Razorvine.Pickle" Version="1.4.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TensorFlowNET.Core/ops.cs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ public static bool inside_function()

public static HandleData get_resource_handle_data(Tensor graph_op)
{
var handle_data = c_api.TFC_GetHandleShapeAndType(graph_op.graph.c_graph, graph_op._as_tf_output());
var handle_data = c_api.TF_GetHandleShapeAndType(graph_op.graph.c_graph, graph_op._as_tf_output());
try{
var handle_str = c_api.ByteStringPiece(handle_data.DangerousGetHandle() == IntPtr.Zero ? null : new Buffer(handle_data));
return HandleData.Parser.ParseFrom(handle_str);
Expand Down
9 changes: 5 additions & 4 deletions src/TensorFlowNET.Keras/Tensorflow.Keras.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<RootNamespace>Tensorflow.Keras</RootNamespace>
<Platforms>AnyCPU;x64</Platforms>
<Version>0.11.4</Version>
<Version>0.15.0</Version>
<Authors>Haiping Chen</Authors>
<Product>Keras for .NET</Product>
<Copyright>Apache 2.0, Haiping Chen since 2018</Copyright>
Expand All @@ -30,6 +30,7 @@
* Fixed memory leak for YOLOv3 model.
* Support RNN and LSTM models
* Support Transformer model
* Support BERT model
</PackageReleaseNotes>
<Description>Keras for .NET

Expand All @@ -42,8 +43,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
<RepositoryType>Git</RepositoryType>
<SignAssembly>False</SignAssembly>
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
<AssemblyVersion>0.11.4.0</AssemblyVersion>
<FileVersion>0.11.4.0</FileVersion>
<AssemblyVersion>0.15.0.0</AssemblyVersion>
<FileVersion>0.15.0.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Configurations>Debug;Release;GPU</Configurations>
</PropertyGroup>
Expand Down Expand Up @@ -143,7 +144,7 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
</PropertyGroup>

<ItemGroup>
<PackageReference Include="HDF5-CSharp" Version="1.18.0" />
<PackageReference Include="HDF5-CSharp" Version="1.19.0" />
<PackageReference Include="MethodBoundaryAspect.Fody" Version="2.0.149" />
<PackageReference Include="SharpZipLib" Version="1.4.2" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/TensorflowNET.Hub/Tensorflow.Hub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SharpCompress" Version="0.33.0" />
<PackageReference Include="SharpCompress" Version="0.34.1" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 1 addition & 4 deletions tools/TensorFlowNET.Console/Tensorflow.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.11.4" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\TensorFlowNET.Recommenders\Tensorflow.Recommenders.csproj" />
<ProjectReference Include="..\..\src\TensorFlowNET.Text\Tensorflow.Text.csproj" />
<ProjectReference Include="..\Tensorflow.UnitTest.RedistHolder\Tensorflow.UnitTest.RedistHolder.csproj" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion tools/Tensorflow.CodeGen/Tensorflow.CodeGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

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

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.11.4" />
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="2.16.0" />
<PackageReference Include="SciSharp.TensorFlow.Redist-Lite" Version="2.6.0" />
</ItemGroup>

Expand Down

0 comments on commit 94c0bb8

Please sign in to comment.