Skip to content

Commit 59421ed

Browse files
committed
upgrade Google.Protobuf to 3.10.1
1 parent 98ead99 commit 59421ed

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/TensorFlowNET.Core/Graphs/Graph.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,6 @@ private ITensorOrOperation _as_graph_element_locked(object obj, bool allow_tenso
230230

231231
public void add_to_collection<T>(string name, T value)
232232
{
233-
if(name == "update_ops")
234-
{
235-
236-
}
237233
_check_not_finalized();
238234
if (_collections.ContainsKey(name))
239235
(_collections[name] as List<T>).Add(value);

src/TensorFlowNET.Core/TensorFlow.Binding.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ https://tensorflownet.readthedocs.io</Description>
3434

3535
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
3636
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
37-
<DefineConstants>TRACE;DEBUG;SERIALIZABLE</DefineConstants>
37+
<DefineConstants>TRACE;DEBUG;SERIALIZABLE_</DefineConstants>
3838
</PropertyGroup>
3939

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

5858
<ItemGroup>
59-
<PackageReference Include="Google.Protobuf" Version="3.10.0" />
60-
<PackageReference Include="Newtonsoft.Json" Version="12.0.2" />
59+
<PackageReference Include="Google.Protobuf" Version="3.10.1" />
6160
<PackageReference Include="NumSharp" Version="0.20.4" />
6261
</ItemGroup>
6362

test/TensorFlowNET.UnitTest/Keras/EmbeddingTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ namespace TensorFlowNET.UnitTest.Keras
1414
[TestClass]
1515
public class EmbeddingTest
1616
{
17+
[Ignore]
1718
[TestMethod]
1819
public void Embedding()
1920
{

test/TensorFlowNET.UnitTest/img_test/TestCrop.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ public class TestCrop
1313
[TestMethod]
1414
public void TestCropAndResize()
1515
{
16+
var graph = tf.Graph().as_default();
17+
1618
// 3x3 'Image' with numbered coordinates
1719
var input = np.array(0f, 1f, 2f, 3f, 4f, 5f, 6f, 7f, 8f);
1820
var image = tf.reshape(input, new int[] { 1, 3, 3, 1 });

0 commit comments

Comments
 (0)