Browse Source

Tensor.Creation: Minor bug fix

tags/v0.12
Eli Belash 6 years ago
parent
commit
c0969be2b0
2 changed files with 1 additions and 2 deletions
  1. +1
    -1
      src/TensorFlowNET.Core/Status/c_api.status.cs
  2. +0
    -1
      src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs

+ 1
- 1
src/TensorFlowNET.Core/Status/c_api.status.cs View File

@@ -51,7 +51,7 @@ namespace Tensorflow
/// </summary>
/// <returns></returns>
[DllImport(TensorFlowLibName)]
public static unsafe extern IntPtr TF_NewStatus();
public static extern IntPtr TF_NewStatus();

/// <summary>
/// Record <code, msg> in *s. Any previous information is lost.


+ 0
- 1
src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs View File

@@ -528,7 +528,6 @@ namespace Tensorflow
}

_handle = CreateTensorFromNDArray(nd, tensorDType);
IsMemoryOwner = true;
}

private unsafe IntPtr CreateTensorFromNDArray(NDArray nd, TF_DataType? given_dtype)


Loading…
Cancel
Save