| @@ -14,10 +14,12 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| ******************************************************************************/ | ******************************************************************************/ | ||||
| using Newtonsoft.Json; | |||||
| using System; | using System; | ||||
| using System.Linq; | using System.Linq; | ||||
| using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
| #if SERIALIZABLE | |||||
| using System.Text.Json.Serialization; | |||||
| #endif | |||||
| namespace Tensorflow | namespace Tensorflow | ||||
| { | { | ||||
| @@ -14,10 +14,12 @@ | |||||
| limitations under the License. | limitations under the License. | ||||
| ******************************************************************************/ | ******************************************************************************/ | ||||
| using Newtonsoft.Json; | |||||
| using System; | using System; | ||||
| using System.Linq; | using System.Linq; | ||||
| using System.Runtime.InteropServices; | using System.Runtime.InteropServices; | ||||
| #if SERIALIZABLE | |||||
| using System.Text.Json.Serialization; | |||||
| #endif | |||||
| using static Tensorflow.Binding; | using static Tensorflow.Binding; | ||||
| namespace Tensorflow | namespace Tensorflow | ||||
| @@ -16,12 +16,12 @@ | |||||
| using Google.Protobuf.Collections; | using Google.Protobuf.Collections; | ||||
| #if SERIALIZABLE | #if SERIALIZABLE | ||||
| using Newtonsoft.Json; | |||||
| using System.Text.Json.Serialization; | |||||
| #endif | #endif | ||||
| using System; | using System; | ||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.IO; | using System.IO; | ||||
| using System.Linq; | |||||
| using System.Linq; | |||||
| using Tensorflow.Util; | using Tensorflow.Util; | ||||
| namespace Tensorflow | namespace Tensorflow | ||||
| @@ -65,7 +65,7 @@ namespace Tensorflow | |||||
| #if SERIALIZABLE | #if SERIALIZABLE | ||||
| [JsonIgnore] | [JsonIgnore] | ||||
| #endif | #endif | ||||
| public int _id_value; | |||||
| public int _id_value { get; set; } | |||||
| #if SERIALIZABLE | #if SERIALIZABLE | ||||
| [JsonIgnore] | [JsonIgnore] | ||||
| #endif | #endif | ||||
| @@ -43,7 +43,7 @@ Docs: https://tensorflownet.readthedocs.io</Description> | |||||
| <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||||
| <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | <AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||||
| <DefineConstants>TRACE;DEBUG;SERIALIZABLE</DefineConstants> | |||||
| <DefineConstants>TRACE;DEBUG;SERIALIZABLE_</DefineConstants> | |||||
| </PropertyGroup> | </PropertyGroup> | ||||
| <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||||
| @@ -65,8 +65,7 @@ Docs: https://tensorflownet.readthedocs.io</Description> | |||||
| </ItemGroup> | </ItemGroup> | ||||
| <ItemGroup> | <ItemGroup> | ||||
| <PackageReference Include="Google.Protobuf" Version="3.5.1" /> | |||||
| <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> | |||||
| <PackageReference Include="Google.Protobuf" Version="3.10.0" /> | |||||
| <PackageReference Include="NumSharp" Version="0.20.4" /> | <PackageReference Include="NumSharp" Version="0.20.4" /> | ||||
| </ItemGroup> | </ItemGroup> | ||||
| @@ -25,7 +25,9 @@ using System.Text; | |||||
| using NumSharp.Backends; | using NumSharp.Backends; | ||||
| using NumSharp.Backends.Unmanaged; | using NumSharp.Backends.Unmanaged; | ||||
| using static Tensorflow.c_api; | using static Tensorflow.c_api; | ||||
| using Newtonsoft.Json; | |||||
| #if SERIALIZABLE | |||||
| using System.Text.Json.Serialization; | |||||
| #endif | |||||
| namespace Tensorflow | namespace Tensorflow | ||||
| { | { | ||||
| @@ -28,7 +28,9 @@ using NumSharp.Backends; | |||||
| using NumSharp.Backends.Unmanaged; | using NumSharp.Backends.Unmanaged; | ||||
| using NumSharp.Utilities; | using NumSharp.Utilities; | ||||
| using Tensorflow.Framework; | using Tensorflow.Framework; | ||||
| using Newtonsoft.Json; | |||||
| #if SERIALIZABLE | |||||
| using System.Text.Json.Serialization; | |||||
| #endif | |||||
| namespace Tensorflow | namespace Tensorflow | ||||
| { | { | ||||
| @@ -1,10 +1,12 @@ | |||||
| using Newtonsoft.Json; | |||||
| using NumSharp; | |||||
| using NumSharp; | |||||
| using System; | using System; | ||||
| using System.Collections.Generic; | using System.Collections.Generic; | ||||
| using System.Diagnostics.CodeAnalysis; | using System.Diagnostics.CodeAnalysis; | ||||
| using System.Linq; | using System.Linq; | ||||
| using System.Runtime.CompilerServices; | using System.Runtime.CompilerServices; | ||||
| #if SERIALIZABLE | |||||
| using System.Text.Json.Serialization; | |||||
| #endif | |||||
| using static Tensorflow.Binding; | using static Tensorflow.Binding; | ||||
| namespace Tensorflow | namespace Tensorflow | ||||