Browse Source

SERIALIZABLE_

tags/v0.12
Oceania2018 6 years ago
parent
commit
e9d2e90280
7 changed files with 21 additions and 12 deletions
  1. +3
    -1
      src/TensorFlowNET.Core/Operations/Operation.Input.cs
  2. +3
    -1
      src/TensorFlowNET.Core/Operations/Operation.Output.cs
  3. +3
    -3
      src/TensorFlowNET.Core/Operations/Operation.cs
  4. +2
    -3
      src/TensorFlowNET.Core/TensorFlowNET.Core.csproj
  5. +3
    -1
      src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs
  6. +3
    -1
      src/TensorFlowNET.Core/Tensors/Tensor.cs
  7. +4
    -2
      src/TensorFlowNET.Core/Tensors/TensorShape.cs

+ 3
- 1
src/TensorFlowNET.Core/Operations/Operation.Input.cs View File

@@ -14,10 +14,12 @@
limitations under the License.
******************************************************************************/
using Newtonsoft.Json;
using System;
using System.Linq;
using System.Runtime.InteropServices;
#if SERIALIZABLE
using System.Text.Json.Serialization;
#endif
namespace Tensorflow
{


+ 3
- 1
src/TensorFlowNET.Core/Operations/Operation.Output.cs View File

@@ -14,10 +14,12 @@
limitations under the License.
******************************************************************************/

using Newtonsoft.Json;
using System;
using System.Linq;
using System.Runtime.InteropServices;
#if SERIALIZABLE
using System.Text.Json.Serialization;
#endif
using static Tensorflow.Binding;

namespace Tensorflow


+ 3
- 3
src/TensorFlowNET.Core/Operations/Operation.cs View File

@@ -16,12 +16,12 @@

using Google.Protobuf.Collections;
#if SERIALIZABLE
using Newtonsoft.Json;
using System.Text.Json.Serialization;
#endif
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Linq;
using Tensorflow.Util;

namespace Tensorflow
@@ -65,7 +65,7 @@ namespace Tensorflow
#if SERIALIZABLE
[JsonIgnore]
#endif
public int _id_value;
public int _id_value { get; set; }
#if SERIALIZABLE
[JsonIgnore]
#endif


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

@@ -43,7 +43,7 @@ Docs: 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'">
@@ -65,8 +65,7 @@ Docs: https://tensorflownet.readthedocs.io</Description>
</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" />
</ItemGroup>



+ 3
- 1
src/TensorFlowNET.Core/Tensors/Tensor.Creation.cs View File

@@ -25,7 +25,9 @@ using System.Text;
using NumSharp.Backends;
using NumSharp.Backends.Unmanaged;
using static Tensorflow.c_api;
using Newtonsoft.Json;
#if SERIALIZABLE
using System.Text.Json.Serialization;
#endif

namespace Tensorflow
{


+ 3
- 1
src/TensorFlowNET.Core/Tensors/Tensor.cs View File

@@ -28,7 +28,9 @@ using NumSharp.Backends;
using NumSharp.Backends.Unmanaged;
using NumSharp.Utilities;
using Tensorflow.Framework;
using Newtonsoft.Json;
#if SERIALIZABLE
using System.Text.Json.Serialization;
#endif

namespace Tensorflow
{


+ 4
- 2
src/TensorFlowNET.Core/Tensors/TensorShape.cs View File

@@ -1,10 +1,12 @@
using Newtonsoft.Json;
using NumSharp;
using NumSharp;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Runtime.CompilerServices;
#if SERIALIZABLE
using System.Text.Json.Serialization;
#endif
using static Tensorflow.Binding;

namespace Tensorflow


Loading…
Cancel
Save