Skip to content

Commit

Permalink
Release v0.60.4 tf.net and tf.keras v0.6.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oceania2018 committed Oct 9, 2021
1 parent 3feff99 commit 492d6e1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 39 deletions.
10 changes: 5 additions & 5 deletions src/TensorFlowNET.Keras/Tensorflow.Keras.csproj
Expand Up @@ -7,7 +7,7 @@
<Nullable>enable</Nullable>
<RootNamespace>Tensorflow.Keras</RootNamespace>
<Platforms>AnyCPU;x64</Platforms>
<Version>0.6.3</Version>
<Version>0.6.4</Version>
<Authors>Haiping Chen</Authors>
<Product>Keras for .NET</Product>
<Copyright>Apache 2.0, Haiping Chen 2021</Copyright>
Expand All @@ -24,9 +24,9 @@
* Implemented backward_function.
* Support model.load_weights.
* Add Subtract layer
* Support YOLOv3 model.
* Text preprocessing
* Preprocessing.timeseries_dataset_from_array</PackageReleaseNotes>
* Preprocessing.timeseries_dataset_from_array
* Fixed memory leak for YOLOv3 model.</PackageReleaseNotes>
<Description>Keras for .NET

Keras is an API designed for human beings, not machines. Keras follows best practices for reducing cognitive load: it offers consistent &amp; simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear &amp; actionable error messages.</Description>
Expand All @@ -37,8 +37,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
<RepositoryType>Git</RepositoryType>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
<AssemblyVersion>0.6.3.0</AssemblyVersion>
<FileVersion>0.6.3.0</FileVersion>
<AssemblyVersion>0.6.4.0</AssemblyVersion>
<FileVersion>0.6.4.0</FileVersion>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
</PropertyGroup>

Expand Down
33 changes: 0 additions & 33 deletions test/TensorFlowNET.Graph.UnitTest/MultithreadingTests.cs
Expand Up @@ -109,9 +109,6 @@ void Core(int tid)
[TestMethod]
public void TensorCreation()
{
//lock (Locks.ProcessWide)
// tf.Session(); //create one to increase next id to 1.

MultiThreadedUnitTestExecuter.Run(8, Core);

//the core method
Expand All @@ -131,9 +128,6 @@ void Core(int tid)
[TestMethod]
public void TensorCreation_Array()
{
//lock (Locks.ProcessWide)
// tf.Session(); //create one to increase next id to 1.

MultiThreadedUnitTestExecuter.Run(8, Core);

//the core method
Expand All @@ -150,33 +144,6 @@ void Core(int tid)
}
}

[TestMethod]
public void TensorCreation_Undressed()
{
//lock (Locks.ProcessWide)
// tf.Session(); //create one to increase next id to 1.

MultiThreadedUnitTestExecuter.Run(8, Core);

//the core method
unsafe void Core(int tid)
{
using (var sess = tf.Session())
{
for (int i = 0; i < 100; i++)
{
var v = (int*)Marshal.AllocHGlobal(sizeof(int));
c_api.DeallocatorArgs _deallocatorArgs = new c_api.DeallocatorArgs();
var handle = c_api.TF_NewTensor(typeof(int).as_tf_dtype(), dims: new long[0], num_dims: 0,
data: (IntPtr)v, len: (UIntPtr)sizeof(int),
deallocator: (IntPtr data, IntPtr size, ref c_api.DeallocatorArgs args) => Marshal.FreeHGlobal(data),
ref _deallocatorArgs);
c_api.TF_DeleteTensor(handle);
}
}
}
}

[TestMethod]
public void SessionRun()
{
Expand Down
Expand Up @@ -15,7 +15,7 @@

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<DefineConstants>DEBUG;TRACE</DefineConstants>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
Expand Down
Expand Up @@ -24,6 +24,10 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

<ItemGroup>
<None Remove="Lite\testdata\add.bin" />
<None Remove="Lite\testdata\add_quantized.bin" />
Expand Down

0 comments on commit 492d6e1

Please sign in to comment.