diff --git a/src/TensorFlowNET.Core/Sessions/_FetchMapper.cs b/src/TensorFlowNET.Core/Sessions/_FetchMapper.cs index eb465998..5437c48b 100644 --- a/src/TensorFlowNET.Core/Sessions/_FetchMapper.cs +++ b/src/TensorFlowNET.Core/Sessions/_FetchMapper.cs @@ -47,7 +47,7 @@ namespace Tensorflow switch(Type.GetTypeCode(type)) { case TypeCode.Single: - return np.array(values.Select(x => x.GetSingle(0)).ToArray()); + return np.array(values.Select(x => (float)x).ToArray()); default: throw new NotImplementedException("build_results"); }