Browse Source

Release v0.150.0 based on tensorflowv v2.15.0.

tags/v0.150.0-BERT-Model
Haiping Chen 1 year ago
parent
commit
94c0bb8796
11 changed files with 27 additions and 37 deletions
  1. +4
    -15
      README.md
  2. +3
    -3
      src/TensorFlowNET.Core/APIs/c_api.customize.cs
  3. +1
    -1
      src/TensorFlowNET.Core/Operations/Operation.cs
  4. +1
    -1
      src/TensorFlowNET.Core/Operations/handle_data_util.cs
  5. +9
    -5
      src/TensorFlowNET.Core/Tensorflow.Binding.csproj
  6. +1
    -1
      src/TensorFlowNET.Core/ops.cs
  7. +5
    -4
      src/TensorFlowNET.Keras/Tensorflow.Keras.csproj
  8. +1
    -1
      src/TensorflowNET.Hub/Tensorflow.Hub.csproj
  9. +1
    -4
      tools/TensorFlowNET.Console/Tensorflow.Console.csproj
  10. +0
    -1
      tools/Tensorflow.CodeGen/Tensorflow.CodeGen.csproj
  11. +1
    -1
      tools/Tensorflow.UnitTest.RedistHolder/Tensorflow.UnitTest.RedistHolder.csproj

+ 4
- 15
README.md View File

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


@@ -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



+ 3
- 3
src/TensorFlowNET.Core/APIs/c_api.customize.cs View File

@@ -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);
}
}

+ 1
- 1
src/TensorFlowNET.Core/Operations/Operation.cs View File

@@ -437,7 +437,7 @@ namespace Tensorflow
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);
}
}

+ 1
- 1
src/TensorFlowNET.Core/Operations/handle_data_util.cs View File

@@ -51,7 +51,7 @@ namespace Tensorflow.Operations
}
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);
}



+ 9
- 5
src/TensorFlowNET.Core/Tensorflow.Binding.csproj View File

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


+ 1
- 1
src/TensorFlowNET.Core/ops.cs View File

@@ -590,7 +590,7 @@ namespace Tensorflow

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);


+ 5
- 4
src/TensorFlowNET.Keras/Tensorflow.Keras.csproj View File

@@ -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>
@@ -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

@@ -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>
@@ -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>


+ 1
- 1
src/TensorflowNET.Hub/Tensorflow.Hub.csproj View File

@@ -26,7 +26,7 @@
</PropertyGroup>

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

<ItemGroup>


+ 1
- 4
tools/TensorFlowNET.Console/Tensorflow.Console.csproj View File

@@ -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>

+ 0
- 1
tools/Tensorflow.CodeGen/Tensorflow.CodeGen.csproj View File

@@ -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>


+ 1
- 1
tools/Tensorflow.UnitTest.RedistHolder/Tensorflow.UnitTest.RedistHolder.csproj View File

@@ -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>



Loading…
Cancel
Save