Browse Source

upgrade Google.Protobuf to 3.10.1

tags/v0.13
Oceania2018 5 years ago
parent
commit
59421ed6d0
4 changed files with 5 additions and 7 deletions
  1. +0
    -4
      src/TensorFlowNET.Core/Graphs/Graph.cs
  2. +2
    -3
      src/TensorFlowNET.Core/TensorFlow.Binding.csproj
  3. +1
    -0
      test/TensorFlowNET.UnitTest/Keras/EmbeddingTest.cs
  4. +2
    -0
      test/TensorFlowNET.UnitTest/img_test/TestCrop.cs

+ 0
- 4
src/TensorFlowNET.Core/Graphs/Graph.cs View File

@@ -230,10 +230,6 @@ namespace Tensorflow

public void add_to_collection<T>(string name, T value)
{
if(name == "update_ops")
{
}
_check_not_finalized();
if (_collections.ContainsKey(name))
(_collections[name] as List<T>).Add(value);


+ 2
- 3
src/TensorFlowNET.Core/TensorFlow.Binding.csproj View File

@@ -34,7 +34,7 @@ https://tensorflownet.readthedocs.io</Description>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DefineConstants>TRACE;DEBUG;SERIALIZABLE</DefineConstants>
<DefineConstants>TRACE;DEBUG;SERIALIZABLE_</DefineConstants>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@@ -56,8 +56,7 @@ https://tensorflownet.readthedocs.io</Description>
</ItemGroup>

<ItemGroup>
<PackageReference Include="Google.Protobuf" Version="3.10.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
<PackageReference Include="Google.Protobuf" Version="3.10.1" />
<PackageReference Include="NumSharp" Version="0.20.4" />
</ItemGroup>



+ 1
- 0
test/TensorFlowNET.UnitTest/Keras/EmbeddingTest.cs View File

@@ -14,6 +14,7 @@ namespace TensorFlowNET.UnitTest.Keras
[TestClass]
public class EmbeddingTest
{
[Ignore]
[TestMethod]
public void Embedding()
{


+ 2
- 0
test/TensorFlowNET.UnitTest/img_test/TestCrop.cs View File

@@ -13,6 +13,8 @@ namespace TensorFlowNET.UnitTest.img_test
[TestMethod]
public void TestCropAndResize()
{
var graph = tf.Graph().as_default();

// 3x3 'Image' with numbered coordinates
var input = np.array(0f, 1f, 2f, 3f, 4f, 5f, 6f, 7f, 8f);
var image = tf.reshape(input, new int[] { 1, 3, 3, 1 });


Loading…
Cancel
Save