Skip to content

Commit 77c6939

Browse files
committed
upgrade NumSharp.
1 parent f115a05 commit 77c6939

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/TensorFlowNET.Core/TensorFlow.Binding.csproj

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,11 @@ https://tensorflownet.readthedocs.io</Description>
6565

6666
<ItemGroup>
6767
<PackageReference Include="Google.Protobuf" Version="3.11.4" />
68-
<PackageReference Include="NumSharp.Lite" Version="0.1.4" />
68+
<PackageReference Include="NumSharp.Lite" Version="0.1.7" />
6969
<PackageReference Include="Protobuf.Text" Version="0.4.0" />
7070
</ItemGroup>
7171

7272
<ItemGroup>
7373
<Folder Include="Keras\Initializers\" />
7474
</ItemGroup>
75-
76-
<ItemGroup>
77-
<ProjectReference Include="..\..\..\NumSharp.Lite\NumSharp\NumSharp.Lite.csproj" />
78-
</ItemGroup>
7975
</Project>

src/TensorFlowNET.Core/Tensors/Tensor.Value.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ private unsafe NDArray GetScalar(TF_DataType dtype)
166166
switch(dtype)
167167
{
168168
case TF_DataType.TF_STRING:
169-
return StringData()[0];
169+
return (NDArray)StringData()[0];
170170
case TF_DataType.TF_INT32:
171171
return *(int*)buffer;
172172
default:

src/TensorFlowNet.Benchmarks/Tensorflow.Benchmark.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<ItemGroup>
2121
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
2222
<PackageReference Include="SciSharp.TensorFlow.Redist" Version="1.15.1" />
23-
<PackageReference Include="TensorFlow.NET" Version="0.15.0" />
23+
<PackageReference Include="TensorFlow.NET" Version="0.15.1" />
2424
</ItemGroup>
2525

2626
</Project>

0 commit comments

Comments
 (0)