8000 Merge branches 'master' and 'master' of github.com:AsakusaRinne/Tenso… · SciSharp/TensorFlow.NET@1f64e24 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f64e24

Browse files
committed
Merge branches 'master' and 'master' of github.com:AsakusaRinne/TensorFlow.NET
2 parents 44b677f + 525cb08 commit 1f64e24

File tree

5 files changed

+8
-13
lines changed

5 files changed

+8
-13
lines changed

src/TensorFlowNET.Core/Eager/EagerRunner.TFE_Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public Tensor[] TFE_ExecuteCancelable(Context ctx,
4242
object[] attrs,
4343
int num_outputs)
4444
{
45-
var status = tf.Status;
45+
var status = new Status();
4646
var op = GetOp(ctx, op_name, status);
4747
c_api.TFE_OpSetDevice(op, device_name, status);
4848
if (status.ok())

src/TensorFlowNET.Core/Tensorflow.Binding.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyName>Tensorflow.Binding</AssemblyName>
66
<RootNamespace>Tensorflow</RootNamespace>
77
<TargetTensorFlow>2.10.0</TargetTensorFlow>
8-
<Version>1.0.0</Version>
8+
<Version>0.100.5</Version>
99
<LangVersion>10.0</LangVersion>
1010
<Nullable>enable</Nullable>
1111
<Authors>Haiping Chen, Meinrad Recheis, Eli Belash</Authors>
@@ -20,7 +20,7 @@
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>1.0.0.0</AssemblyVersion>
23+
<AssemblyVersion>0.100.5.0</AssemblyVersion>
2424
<PackageReleaseNotes>
2525
tf.net 0.100.x and above are based on tensorflow native 2.10.0
2626

@@ -38,7 +38,7 @@ https://tensorflownet.readthedocs.io</Description>
3838
tf.net 0.7x.x aligns with TensorFlow v2.7.x native library.
3939
tf.net 0.10x.x aligns with TensorFlow v2.10.x native library.
4040
</PackageReleaseNotes>
41-
<FileVersion>1.0.0.0</FileVersion>
41+
<FileVersion>0.100.5.0</FileVersion>
4242
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4343
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
4444
<PackageOutputPath>packages</PackageOutputPath>

src/TensorFlowNET.Core/Variables/BaseResourceVariable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public void __init__(bool trainable = true,
102102
if (handle is EagerTensor)
103103
{
104104
_handle = handle.EagerTensorHandle.DangerousGetHandle();
105-
eager_resource_deleter = new EagerResourceDeleter(handle, handle.Device);
105+
// eager_resource_deleter = new EagerResourceDeleter(handle, handle.Device);
106106
}
107107
else if(handle is null)
108108
{

src/TensorFlowNET.Core/Variables/EagerResourceDeleter.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ public EagerResourceDeleter(Tensor handle, string handle_device)
1414
_tensor = handle;
1515
_handle = handle.EagerTensorHandle.DangerousGetHandle();
1616
_handle_device = handle_device;
17-
18-
bool success = false;
19-
handle.EagerTensorHandle.DangerousAddRef(ref success);
2017
}
2118

2219
protected override void DisposeUnmanagedResources(IntPtr handle)
@@ -27,8 +24,6 @@ protected override void DisposeUnmanagedResources(IntPtr handle)
2724
tf.Runner.TFE_Execute(tf.Context, _handle_device, "DestroyResourceOp",
2825
new[] { _tensor },
2926
new object[] { "ignore_lookup_error", true }, 0);
30-
31-
_tensor.EagerTensorHandle.DangerousRelease();
3227
}
3328
}
3429
}

src/TensorFlowNET.Keras/Tensorflow.Keras.csproj

Lines changed: 3 additions & 3 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>1.0.0</Version>
10+
<Version>0.10.5</Version>
1111
<Authors>Haiping Chen</Authors>
1212
<Product>Keras for .NET</Product>
1313
<Copyright>Apache 2.0, Haiping Chen 2023</Copyright>
@@ -38,8 +38,8 @@ Keras is an API designed for human beings, not machines. Keras follows best prac
3838
<RepositoryType>Git</RepositoryType>
3939
<SignAssembly>true</SignAssembly>
4040
<AssemblyOriginatorKeyFile>Open.snk</AssemblyOriginatorKeyFile>
41-
<AssemblyVersion>1.0.0.0</AssemblyVersion>
42-
<FileVersion>1.0.0.0</FileVersion>
41+
<AssemblyVersion>0.10.5.0</AssemblyVersion>
42+
<FileVersion>0.10.5.0</FileVersion>
4343
<PackageLicenseFile>LICENSE</PackageLicenseFile>
4444
<Configurations>Debug;Release;GPU</Configurations>
4545
</PropertyGroup>

0 commit comments

Comments
 (0)
0