Browse Source

Buffer: Changed constructor to public

tags/v0.12
Eli Belash 6 years ago
parent
commit
49e0eca801
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TensorFlowNET.Core/Buffers/Buffer.cs

+ 1
- 1
src/TensorFlowNET.Core/Buffers/Buffer.cs View File

@@ -70,7 +70,7 @@ namespace Tensorflow


public Buffer() => _handle = TF_NewBuffer(); public Buffer() => _handle = TF_NewBuffer();


internal Buffer(IntPtr handle)
public Buffer(IntPtr handle)
{ {
if (handle == IntPtr.Zero) if (handle == IntPtr.Zero)
throw new ArgumentException("Handle (IntPtr) can't be zero.", nameof(handle)); throw new ArgumentException("Handle (IntPtr) can't be zero.", nameof(handle));


Loading…
Cancel
Save