Skip to content

Commit f7cee4b

Browse files
committed
make Tensor.buffer be public.
1 parent 07f70f9 commit f7cee4b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/TensorFlowNET.Core/TensorFlowNET.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<AssemblyName>TensorFlow.NET</AssemblyName>
66
<RootNamespace>Tensorflow</RootNamespace>
77
<TargetTensorFlow>1.14.0</TargetTensorFlow>
8-
<Version>0.11.8</Version>
8+
<Version>0.11.8.1</Version>
99
<Authors>Haiping Chen, Meinrad Recheis, Eli Belash</Authors>
1010
<Company>SciSharp STACK</Company>
1111
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
@@ -17,7 +17,7 @@
1717
<PackageTags>TensorFlow, NumSharp, SciSharp, MachineLearning, TensorFlow.NET, C#</PackageTags>
1818
<Description>Google's TensorFlow full binding in .NET Standard.
1919
Docs: https://tensorflownet.readthedocs.io</Description>
20-
<AssemblyVersion>0.11.8.0</AssemblyVersion>
20+
<AssemblyVersion>0.11.8.1</AssemblyVersion>
2121
<PackageReleaseNotes>Changes since v0.10.0:
2222
1. Upgrade NumSharp to v0.20.3.
2323
2. Add DisposableObject class to manage object lifetime.
@@ -34,7 +34,7 @@ Docs: https://tensorflownet.readthedocs.io</Description>
3434
13. Return VariableV1 instead of RefVariable.
3535
14. Add Tensor overload to GradientDescentOptimizer.</PackageReleaseNotes>
3636
<LangVersion>7.3</LangVersion>
37-
<FileVersion>0.11.8.0</FileVersion>
37+
<FileVersion>0.11.8.1</FileVersion>
3838
<PackageLicenseFile>LICENSE</PackageLicenseFile>
3939
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
4040
<SignAssembly>true</SignAssembly>

src/TensorFlowNET.Core/Tensors/Tensor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public partial class Tensor : DisposableObject, ITensorOrOperation, _TensorLike
9797
[JsonIgnore]
9898
#endif
9999
public ulong size => _handle == IntPtr.Zero ? 0 : bytesize / itemsize;
100-
private IntPtr buffer => _handle == IntPtr.Zero ? IntPtr.Zero : c_api.TF_TensorData(_handle);
100+
public IntPtr buffer => _handle == IntPtr.Zero ? IntPtr.Zero : c_api.TF_TensorData(_handle);
101101
public int num_consumers(TF_Output oper_out) => _handle == IntPtr.Zero ? 0 : c_api.TF_OperationOutputNumConsumers(oper_out);
102102
#if SERIALIZABLE
103103
[JsonIgnore]

0 commit comments

Comments
 (0)