From 27ab492cadf583627dfdaad9d8b346aff946708f Mon Sep 17 00:00:00 2001 From: Oceania2018 Date: Fri, 18 Oct 2019 06:52:14 -0500 Subject: [PATCH] change to Newtonsoft.Json. --- src/TensorFlowNET.Core/Operations/Operation.Input.cs | 2 +- src/TensorFlowNET.Core/Operations/Operation.Output.cs | 2 +- src/TensorFlowNET.Core/Operations/Operation.cs | 2 +- src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs | 2 +- src/TensorFlowNET.Core/Tensors/Tensor.cs | 2 +- src/TensorFlowNET.Core/Tensors/TensorShape.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/TensorFlowNET.Core/Operations/Operation.Input.cs b/src/TensorFlowNET.Core/Operations/Operation.Input.cs index 7d905f3e..57ac8271 100644 --- a/src/TensorFlowNET.Core/Operations/Operation.Input.cs +++ b/src/TensorFlowNET.Core/Operations/Operation.Input.cs @@ -18,7 +18,7 @@ using System; using System.Linq; using System.Runtime.InteropServices; #if SERIALIZABLE -using System.Text.Json.Serialization; +using Newtonsoft.Json; #endif namespace Tensorflow diff --git a/src/TensorFlowNET.Core/Operations/Operation.Output.cs b/src/TensorFlowNET.Core/Operations/Operation.Output.cs index e68513b5..77bf68a1 100644 --- a/src/TensorFlowNET.Core/Operations/Operation.Output.cs +++ b/src/TensorFlowNET.Core/Operations/Operation.Output.cs @@ -18,7 +18,7 @@ using System; using System.Linq; using System.Runtime.InteropServices; #if SERIALIZABLE -using System.Text.Json.Serialization; +using Newtonsoft.Json; #endif using static Tensorflow.Binding; diff --git a/src/TensorFlowNET.Core/Operations/Operation.cs b/src/TensorFlowNET.Core/Operations/Operation.cs index c270afc3..3b40c95a 100644 --- a/src/TensorFlowNET.Core/Operations/Operation.cs +++ b/src/TensorFlowNET.Core/Operations/Operation.cs @@ -16,7 +16,7 @@ using Google.Protobuf.Collections; #if SERIALIZABLE -using System.Text.Json.Serialization; +using Newtonsoft.Json; #endif using System; using System.Collections.Generic; diff --git a/src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs b/src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs index 9b9e31da..39c272b4 100644 --- a/src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs +++ b/src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs @@ -26,7 +26,7 @@ using NumSharp.Backends; using NumSharp.Backends.Unmanaged; using static Tensorflow.c_api; #if SERIALIZABLE -using System.Text.Json.Serialization; +using Newtonsoft.Json; #endif namespace Tensorflow diff --git a/src/TensorFlowNET.Core/Tensors/Tensor.cs b/src/TensorFlowNET.Core/Tensors/Tensor.cs index 485ee4f1..01290644 100644 --- a/src/TensorFlowNET.Core/Tensors/Tensor.cs +++ b/src/TensorFlowNET.Core/Tensors/Tensor.cs @@ -29,7 +29,7 @@ using NumSharp.Backends.Unmanaged; using NumSharp.Utilities; using Tensorflow.Framework; #if SERIALIZABLE -using System.Text.Json.Serialization; +using Newtonsoft.Json; #endif namespace Tensorflow diff --git a/src/TensorFlowNET.Core/Tensors/TensorShape.cs b/src/TensorFlowNET.Core/Tensors/TensorShape.cs index 02e57800..bfd90a75 100644 --- a/src/TensorFlowNET.Core/Tensors/TensorShape.cs +++ b/src/TensorFlowNET.Core/Tensors/TensorShape.cs @@ -5,7 +5,7 @@ using System.Diagnostics.CodeAnalysis; using System.Linq; using System.Runtime.CompilerServices; #if SERIALIZABLE -using System.Text.Json.Serialization; +using Newtonsoft.Json; #endif using static Tensorflow.Binding;