Skip to content

Commit 492d6e1

Browse files
committed
Release v0.60.4 tf.net and tf.keras v0.6.4.
1 parent 3feff99 commit 492d6e1

File tree

4 files changed

+10
-39
lines changed

4 files changed

+10
-39
lines changed

src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

Lines changed: 5 additions & 5 deletions
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.6.3</Version>
10+
<Version>0.6.4</Version>
1111
<Authors>Haiping Chen</Authors>
1212
<Product>Keras for .NET</Product>
1313
<Copyright>Apache 2.0, Haiping Chen 2021</Copyright>
@@ -24,9 +24,9 @@
2424
* Implemented backward_function.
2525
* Support model.load_weights.
2626
* Add Subtract layer
27-
* Support YOLOv3 model.
2827
* Text preprocessing
29-
* Preprocessing.timeseries_dataset_from_array</PackageReleaseNotes>
28+
* Preprocessing.timeseries_dataset_from_array
29+
* Fixed memory leak for YOLOv3 model.</PackageReleaseNotes>
3030
<Description>Keras for .NET
3131

3232
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>
@@ -37,8 +37,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
3737
<RepositoryType>Git</RepositoryType>
3838
<SignAssembly>true</SignAssembly>
3939
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
40-
<AssemblyVersion>0.6.3.0</AssemblyVersion>
41-
<FileVersion>0.6.3.0</FileVersion>
40+
<AssemblyVersion>0.6.4.0</AssemblyVersion>
41+
<FileVersion>0.6.4.0</FileVersion>
4242
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4343
</PropertyGroup>
4444

test/TensorFlowNET.Graph.UnitTest/MultithreadingTests.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ void Core(int tid)
109109
[TestMethod]
110110
public void TensorCreation()
111111
{
112-
//lock (Locks.ProcessWide)
113-
// tf.Session(); //create one to increase next id to 1.
114-
115112
MultiThreadedUnitTestExecuter.Run(8, Core);
116113

117114
//the core method
@@ -131,9 +128,6 @@ void Core(int tid)
131128
[TestMethod]
132129
public void TensorCreation_Array()
133130
{
134-
//lock (Locks.ProcessWide)
135-
// tf.Session(); //create one to increase next id to 1.
136-
137131
MultiThreadedUnitTestExecuter.Run(8, Core);
138132

139133
//the core method
@@ -150,33 +144,6 @@ void Core(int tid)
150144
}
151145
}
152146

153-
[TestMethod]
154-
public void TensorCreation_Undressed()
155-
{
156-
//lock (Locks.ProcessWide)
157-
// tf.Session(); //create one to increase next id to 1.
158-
159-
MultiThreadedUnitTestExecuter.Run(8, Core);
160-
161-
//the core method
162-
unsafe void Core(int tid)
163-
{
164-
using (var sess = tf.Session())
165-
{
166-
for (int i = 0; i < 100; i++)
167-
{
168-
var v = (int*)Marshal.AllocHGlobal(sizeof(int));
169-
c_api.DeallocatorArgs _deallocatorArgs = new c_api.DeallocatorArgs();
170-
var handle = c_api.TF_NewTensor(typeof(int).as_tf_dtype(), dims: new long[0], num_dims: 0,
171-
data: (IntPtr)v, len: (UIntPtr)sizeof(int),
172-
deallocator: (IntPtr data, IntPtr size, ref c_api.DeallocatorArgs args) => Marshal.FreeHGlobal(data),
173-
ref _deallocatorArgs);
174-
c_api.TF_DeleteTensor(handle);
175-
}
176-
}
177-
}
178-
}
179-
180147
[TestMethod]
181148
public void SessionRun()
182149
{

test/TensorFlowNET.Graph.UnitTest/TensorFlowNET.Graph.UnitTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
1717
<DefineConstants>DEBUG;TRACE</DefineConstants>
18-
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
18+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
1919
</PropertyGroup>
2020

2121
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">

test/TensorFlowNET.Native.UnitTest/Tensorflow.Native.UnitTest.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
2525
</PropertyGroup>
2626

27+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
28+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
29+
</PropertyGroup>
30+
2731
<ItemGroup>
2832
<None Remove="Lite\testdata\add.bin" />
2933
<None Remove="Lite\testdata\add_quantized.bin" />

0 commit comments

Comments
 (0)