From 77c6939cc6cef0db7d08db739376d648d36b9dfa Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Sun, 8 Mar 2020 23:45:08 -0500 Subject: [PATCH] upgrade NumSharp. --- src/TensorFlowNET.Core/TensorFlow.Binding.csproj | 6 +----- src/TensorFlowNET.Core/Tensors/Tensor.Value.cs | 2 +- src/TensorFlowNet.Benchmarks/Tensorflow.Benchmark.csproj | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/TensorFlowNET.Core/TensorFlow.Binding.csproj b/src/TensorFlowNET.Core/TensorFlow.Binding.csproj index b1cbd1f1..ed66191a 100644 --- a/src/TensorFlowNET.Core/TensorFlow.Binding.csproj +++ b/src/TensorFlowNET.Core/TensorFlow.Binding.csproj @@ -65,15 +65,11 @@ https://tensorflownet.readthedocs.io - + - - - - diff --git a/src/TensorFlowNET.Core/Tensors/Tensor.Value.cs b/src/TensorFlowNET.Core/Tensors/Tensor.Value.cs index 40d10c4f..24fccebc 100644 --- a/src/TensorFlowNET.Core/Tensors/Tensor.Value.cs +++ b/src/TensorFlowNET.Core/Tensors/Tensor.Value.cs @@ -166,7 +166,7 @@ namespace Tensorflow switch(dtype) { case TF_DataType.TF_STRING: - return StringData()[0]; + return (NDArray)StringData()[0]; case TF_DataType.TF_INT32: return *(int*)buffer; default: diff --git a/src/TensorFlowNet.Benchmarks/Tensorflow.Benchmark.csproj b/src/TensorFlowNet.Benchmarks/Tensorflow.Benchmark.csproj index 96a00a98..d0595499 100644 --- a/src/TensorFlowNet.Benchmarks/Tensorflow.Benchmark.csproj +++ b/src/TensorFlowNet.Benchmarks/Tensorflow.Benchmark.csproj @@ -20,7 +20,7 @@ - +