Browse Source

removing unused namespaces (#301)

* removing unused namespaces

* implementing Tensor to scalar and scalar to tensor conversions
tags/v0.10
Johann Dirry Haiping 6 years ago
parent
commit
0e9aeafad5
100 changed files with 24 additions and 328 deletions
  1. +1
    -4
      src/KerasNET.Core/Core.cs
  2. +1
    -5
      src/KerasNET.Core/IInitializer.cs
  3. +1
    -7
      src/KerasNET.Core/Initializer/BaseInitializer.cs
  4. +0
    -4
      src/KerasNET.Core/Layers/Dense.cs
  5. +1
    -5
      src/KerasNET.Core/Layers/ILayer.cs
  6. +0
    -2
      src/KerasNET.Core/Model.cs
  7. +0
    -3
      src/TensorFlowNET.Core/APIs/c_api.cs
  8. +0
    -5
      src/TensorFlowNET.Core/APIs/keras.layers.cs
  9. +0
    -3
      src/TensorFlowNET.Core/APIs/keras.preprocessing.cs
  10. +0
    -1
      src/TensorFlowNET.Core/APIs/tf.array.cs
  11. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.control.cs
  12. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.distributions.cs
  13. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.exp.cs
  14. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.gradients.cs
  15. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.graph.cs
  16. +0
    -3
      src/TensorFlowNET.Core/APIs/tf.init.cs
  17. +0
    -2
      src/TensorFlowNET.Core/APIs/tf.io.cs
  18. +0
    -3
      src/TensorFlowNET.Core/APIs/tf.layers.cs
  19. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.linalg.cs
  20. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.loss.cs
  21. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.math.cs
  22. +0
    -5
      src/TensorFlowNET.Core/APIs/tf.nn.cs
  23. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.ops.cs
  24. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.random.cs
  25. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.reduce_logsumexp.cs
  26. +0
    -4
      src/TensorFlowNET.Core/APIs/tf.reshape.cs
  27. +0
    -5
      src/TensorFlowNET.Core/APIs/tf.summary.cs
  28. +1
    -7
      src/TensorFlowNET.Core/APIs/tf.tensor.cs
  29. +0
    -3
      src/TensorFlowNET.Core/APIs/tf.tile.cs
  30. +0
    -2
      src/TensorFlowNET.Core/APIs/tf.variable.cs
  31. +0
    -2
      src/TensorFlowNET.Core/Attributes/c_api.ops.cs
  32. +0
    -2
      src/TensorFlowNET.Core/Buffers/Buffer.cs
  33. +0
    -2
      src/TensorFlowNET.Core/Buffers/TF_Buffer.cs
  34. +0
    -2
      src/TensorFlowNET.Core/Buffers/c_api.buffer.cs
  35. +0
    -3
      src/TensorFlowNET.Core/Clustering/KMeans.cs
  36. +0
    -3
      src/TensorFlowNET.Core/Clustering/_InitializeClustersOpFactory.cs
  37. +0
    -4
      src/TensorFlowNET.Core/Contrib/Learn/Preprocessing/VocabularyProcessor.cs
  38. +1
    -5
      src/TensorFlowNET.Core/Data/DatasetV1.cs
  39. +1
    -5
      src/TensorFlowNET.Core/Data/DatasetV1Adapter.cs
  40. +1
    -5
      src/TensorFlowNET.Core/Data/DatasetV2.cs
  41. +0
    -2
      src/TensorFlowNET.Core/Eager/Context.cs
  42. +0
    -2
      src/TensorFlowNET.Core/Eager/ContextOptions.cs
  43. +1
    -3
      src/TensorFlowNET.Core/Eager/Execute.cs
  44. +1
    -5
      src/TensorFlowNET.Core/Eager/Tape.cs
  45. +0
    -2
      src/TensorFlowNET.Core/Eager/c_api.eager.cs
  46. +1
    -3
      src/TensorFlowNET.Core/Eager/pywrap_tfe_src.cs
  47. +0
    -2
      src/TensorFlowNET.Core/Estimator/EstimatorV2.cs
  48. +1
    -4
      src/TensorFlowNET.Core/Estimator/HyperParams.cs
  49. +1
    -5
      src/TensorFlowNET.Core/Estimator/IEstimator.cs
  50. +1
    -6
      src/TensorFlowNET.Core/Estimator/TrainingExecutor.cs
  51. +0
    -2
      src/TensorFlowNET.Core/Exceptions/KeyError.cs
  52. +0
    -2
      src/TensorFlowNET.Core/Exceptions/RuntimeError.cs
  53. +0
    -2
      src/TensorFlowNET.Core/Exceptions/TypeError.cs
  54. +0
    -2
      src/TensorFlowNET.Core/Exceptions/ValueError.cs
  55. +1
    -5
      src/TensorFlowNET.Core/Framework/CompositeTensor.cs
  56. +0
    -4
      src/TensorFlowNET.Core/Framework/IndexedSlices.cs
  57. +1
    -5
      src/TensorFlowNET.Core/Framework/Models/ScopedTFFunction.cs
  58. +1
    -5
      src/TensorFlowNET.Core/Framework/Models/ScopedTFGraph.cs
  59. +1
    -5
      src/TensorFlowNET.Core/Framework/Models/ScopedTFImportGraphDefOptions.cs
  60. +0
    -2
      src/TensorFlowNET.Core/Framework/Models/ScopedTFImportGraphDefResults.cs
  61. +1
    -5
      src/TensorFlowNET.Core/Framework/Models/ScopedTFStatus.cs
  62. +0
    -1
      src/TensorFlowNET.Core/Framework/c_api_util.cs
  63. +0
    -2
      src/TensorFlowNET.Core/Framework/common_shapes.py.cs
  64. +0
    -1
      src/TensorFlowNET.Core/Framework/graph_util_impl.cs
  65. +0
    -1
      src/TensorFlowNET.Core/Framework/importer.py.cs
  66. +0
    -1
      src/TensorFlowNET.Core/Framework/meta_graph.py.cs
  67. +0
    -3
      src/TensorFlowNET.Core/Framework/op_def_registry.py.cs
  68. +0
    -4
      src/TensorFlowNET.Core/Framework/random_seed.py.cs
  69. +0
    -2
      src/TensorFlowNET.Core/Framework/smart_module.cs
  70. +1
    -5
      src/TensorFlowNET.Core/Framework/sparse_tensor.py.cs
  71. +0
    -2
      src/TensorFlowNET.Core/Functions/Function.cs
  72. +1
    -4
      src/TensorFlowNET.Core/Functions/TF_Function.cs
  73. +0
    -2
      src/TensorFlowNET.Core/Functions/c_api.function.cs
  74. +1
    -5
      src/TensorFlowNET.Core/Gradients/AggregationMethod.cs
  75. +0
    -2
      src/TensorFlowNET.Core/Gradients/RegisterGradient.cs
  76. +1
    -4
      src/TensorFlowNET.Core/Gradients/array_grad.cs
  77. +0
    -2
      src/TensorFlowNET.Core/Gradients/c_api.gradient.cs
  78. +0
    -2
      src/TensorFlowNET.Core/Gradients/control_flow_grad.py.cs
  79. +0
    -5
      src/TensorFlowNET.Core/Gradients/gradients_impl.py.cs
  80. +0
    -1
      src/TensorFlowNET.Core/Gradients/gradients_util.cs
  81. +0
    -2
      src/TensorFlowNET.Core/Gradients/math_grad.cs
  82. +0
    -2
      src/TensorFlowNET.Core/Gradients/nn_grad.cs
  83. +0
    -1
      src/TensorFlowNET.Core/Gradients/ops.gradient_function_mapping.cs
  84. +0
    -2
      src/TensorFlowNET.Core/Graphs/DefaultGraphStack.cs
  85. +0
    -4
      src/TensorFlowNET.Core/Graphs/FreezeGraph.cs
  86. +0
    -3
      src/TensorFlowNET.Core/Graphs/Graph.Control.cs
  87. +0
    -5
      src/TensorFlowNET.Core/Graphs/Graph.Export.cs
  88. +1
    -5
      src/TensorFlowNET.Core/Graphs/Graph.Gradient.cs.cs
  89. +0
    -4
      src/TensorFlowNET.Core/Graphs/Graph.Import.cs
  90. +0
    -1
      src/TensorFlowNET.Core/Graphs/Graph.Operation.cs
  91. +0
    -1
      src/TensorFlowNET.Core/Graphs/Graph.cs
  92. +0
    -2
      src/TensorFlowNET.Core/Graphs/ImportGraphDefOptions.cs
  93. +0
    -2
      src/TensorFlowNET.Core/Graphs/TF_ImportGraphDefResults.cs
  94. +0
    -3
      src/TensorFlowNET.Core/Graphs/_ControlDependenciesController.cs
  95. +0
    -2
      src/TensorFlowNET.Core/Graphs/c_api.graph.cs
  96. +0
    -3
      src/TensorFlowNET.Core/Graphs/graph_io.py.cs
  97. +0
    -2
      src/TensorFlowNET.Core/IO/gfile.cs
  98. +0
    -4
      src/TensorFlowNET.Core/IPyClass.cs
  99. +0
    -4
      src/TensorFlowNET.Core/ITensorOrOperation.cs
  100. +0
    -4
      src/TensorFlowNET.Core/Keras/BackendBase.cs

+ 1
- 4
src/KerasNET.Core/Core.cs View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;
using Tensorflow;

namespace Keras
{


+ 1
- 5
src/KerasNET.Core/IInitializer.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Keras
namespace Keras
{
interface IInitializer
{


+ 1
- 7
src/KerasNET.Core/Initializer/BaseInitializer.cs View File

@@ -1,10 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;
using Tensorflow.Layers;

namespace Keras.Initializer
namespace Keras.Initializer
{
class BaseInitializer : IInitializer
{


+ 0
- 4
src/KerasNET.Core/Layers/Dense.cs View File

@@ -15,12 +15,8 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using Tensorflow;
using static Keras.Keras;
using Keras;
using NumSharp;
using Tensorflow.Operations.Activation;



+ 1
- 5
src/KerasNET.Core/Layers/ILayer.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;
using NumSharp;
using Tensorflow;

namespace Keras.Layers
{


+ 0
- 2
src/KerasNET.Core/Model.cs View File

@@ -18,9 +18,7 @@ using Keras.Layers;
using NumSharp;
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;
using static Keras.Keras;
using static Tensorflow.Python;

namespace Keras


+ 0
- 3
src/TensorFlowNET.Core/APIs/c_api.cs View File

@@ -15,10 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Net;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 5
src/TensorFlowNET.Core/APIs/keras.layers.cs View File

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tensorflow.Keras;
using Tensorflow.Keras.Engine;
using Tensorflow.Keras.Layers;

namespace Tensorflow


+ 0
- 3
src/TensorFlowNET.Core/APIs/keras.preprocessing.cs View File

@@ -14,9 +14,6 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.Keras;
using Tensorflow.Keras.Engine;



+ 0
- 1
src/TensorFlowNET.Core/APIs/tf.array.cs View File

@@ -17,7 +17,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tensorflow
{


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.control.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.distributions.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.exp.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.gradients.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.graph.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 3
src/TensorFlowNET.Core/APIs/tf.init.cs View File

@@ -14,9 +14,6 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.Operations.Initializers;

namespace Tensorflow


+ 0
- 2
src/TensorFlowNET.Core/APIs/tf.io.cs View File

@@ -14,9 +14,7 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.IO;

namespace Tensorflow


+ 0
- 3
src/TensorFlowNET.Core/APIs/tf.layers.cs View File

@@ -14,9 +14,6 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.Keras.Layers;
using Tensorflow.Operations.Activation;



+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.linalg.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.loss.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.math.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 5
src/TensorFlowNET.Core/APIs/tf.nn.cs View File

@@ -14,13 +14,8 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tensorflow.Operations;
using Tensorflow.Operations.Activation;
using Tensorflow.Util;
using static Tensorflow.Python;

namespace Tensorflow


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.ops.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.random.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.reduce_logsumexp.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 4
src/TensorFlowNET.Core/APIs/tf.reshape.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf


+ 0
- 5
src/TensorFlowNET.Core/APIs/tf.summary.cs View File

@@ -14,11 +14,6 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.IO;

namespace Tensorflow
{
public static partial class tf


+ 1
- 7
src/TensorFlowNET.Core/APIs/tf.tensor.cs View File

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

using NumSharp;
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public static partial class tf
{
public static Tensor convert_to_tensor(object value,
string name = null) => ops.convert_to_tensor(value, name: name);
public static Tensor convert_to_tensor(object value, string name = null) => ops.convert_to_tensor(value, name: name);
}
}

+ 0
- 3
src/TensorFlowNET.Core/APIs/tf.tile.cs View File

@@ -15,9 +15,6 @@
******************************************************************************/

using NumSharp;
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/APIs/tf.variable.cs View File

@@ -14,9 +14,7 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Attributes/c_api.ops.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Buffers/Buffer.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Buffers/TF_Buffer.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Buffers/c_api.buffer.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 3
src/TensorFlowNET.Core/Clustering/KMeans.cs View File

@@ -15,9 +15,6 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using static Tensorflow.Python;

namespace Tensorflow.Clustering
{


+ 0
- 3
src/TensorFlowNET.Core/Clustering/_InitializeClustersOpFactory.cs View File

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static Tensorflow.Python;

namespace Tensorflow.Clustering


+ 0
- 4
src/TensorFlowNET.Core/Contrib/Learn/Preprocessing/VocabularyProcessor.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Contrib.Learn.Preprocessing
{
public class VocabularyProcessor


+ 1
- 5
src/TensorFlowNET.Core/Data/DatasetV1.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Data
namespace Tensorflow.Data
{
public class DatasetV1 : DatasetV2
{


+ 1
- 5
src/TensorFlowNET.Core/Data/DatasetV1Adapter.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Data
namespace Tensorflow.Data
{
/// <summary>
/// Wraps a V2 `Dataset` object in the `tf.compat.v1.data.Dataset` API.


+ 1
- 5
src/TensorFlowNET.Core/Data/DatasetV2.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Data
namespace Tensorflow.Data
{
/// <summary>
/// Represents a potentially large set of elements.


+ 0
- 2
src/TensorFlowNET.Core/Eager/Context.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Eager
{


+ 0
- 2
src/TensorFlowNET.Core/Eager/ContextOptions.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Eager
{


+ 1
- 3
src/TensorFlowNET.Core/Eager/Execute.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;

namespace Tensorflow.Eager
{


+ 1
- 5
src/TensorFlowNET.Core/Eager/Tape.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Eager
namespace Tensorflow.Eager
{
public class Tape
{


+ 0
- 2
src/TensorFlowNET.Core/Eager/c_api.eager.cs View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 1
- 3
src/TensorFlowNET.Core/Eager/pywrap_tfe_src.cs View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tensorflow.Eager
{


+ 0
- 2
src/TensorFlowNET.Core/Estimator/EstimatorV2.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.Data;

namespace Tensorflow.Estimator


+ 1
- 4
src/TensorFlowNET.Core/Estimator/HyperParams.cs View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.IO;

namespace Tensorflow.Estimator
{


+ 1
- 5
src/TensorFlowNET.Core/Estimator/IEstimator.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Estimator
namespace Tensorflow.Estimator
{
public interface IEstimator
{


+ 1
- 6
src/TensorFlowNET.Core/Estimator/TrainingExecutor.cs View File

@@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using static Tensorflow.Python;

namespace Tensorflow.Estimator
namespace Tensorflow.Estimator
{
/// <summary>
/// The executor to run `Estimator` training and evaluation.


+ 0
- 2
src/TensorFlowNET.Core/Exceptions/KeyError.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Exceptions/RuntimeError.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Exceptions/TypeError.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Exceptions/ValueError.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 1
- 5
src/TensorFlowNET.Core/Framework/CompositeTensor.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework
namespace Tensorflow.Framework
{
/// <summary>
/// Abstract base class for Tensor-like objects that are composed from Tensors.


+ 0
- 4
src/TensorFlowNET.Core/Framework/IndexedSlices.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework
{
/// <summary>


+ 1
- 5
src/TensorFlowNET.Core/Framework/Models/ScopedTFFunction.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework.Models
namespace Tensorflow.Framework.Models
{
class ScopedTFFunction
{


+ 1
- 5
src/TensorFlowNET.Core/Framework/Models/ScopedTFGraph.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework.Models
namespace Tensorflow.Framework.Models
{
public class ScopedTFGraph : Graph
{


+ 1
- 5
src/TensorFlowNET.Core/Framework/Models/ScopedTFImportGraphDefOptions.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework.Models
namespace Tensorflow.Framework.Models
{
public class ScopedTFImportGraphDefOptions : ImportGraphDefOptions
{


+ 0
- 2
src/TensorFlowNET.Core/Framework/Models/ScopedTFImportGraphDefResults.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework.Models
{


+ 1
- 5
src/TensorFlowNET.Core/Framework/Models/ScopedTFStatus.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework.Models
namespace Tensorflow.Framework.Models
{
public class ScopedTFStatus : Status
{


+ 0
- 1
src/TensorFlowNET.Core/Framework/c_api_util.cs View File

@@ -19,7 +19,6 @@ using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;



+ 0
- 2
src/TensorFlowNET.Core/Framework/common_shapes.py.cs View File

@@ -15,8 +15,6 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework
{


+ 0
- 1
src/TensorFlowNET.Core/Framework/graph_util_impl.cs View File

@@ -18,7 +18,6 @@ using NumSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static Tensorflow.Python;

namespace Tensorflow


+ 0
- 1
src/TensorFlowNET.Core/Framework/importer.py.cs View File

@@ -18,7 +18,6 @@ using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static Tensorflow.OpDef.Types;
using static Tensorflow.Python;



+ 0
- 1
src/TensorFlowNET.Core/Framework/meta_graph.py.cs View File

@@ -19,7 +19,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using Tensorflow.Operations;
using static Tensorflow.CollectionDef;
using static Tensorflow.MetaGraphDef.Types;


+ 0
- 3
src/TensorFlowNET.Core/Framework/op_def_registry.py.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;
using static Tensorflow.OpDef.Types;

namespace Tensorflow
{


+ 0
- 4
src/TensorFlowNET.Core/Framework/random_seed.py.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public class random_seed


+ 0
- 2
src/TensorFlowNET.Core/Framework/smart_module.cs View File

@@ -15,8 +15,6 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework
{


+ 1
- 5
src/TensorFlowNET.Core/Framework/sparse_tensor.py.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Framework
namespace Tensorflow.Framework
{
public static class SparseTensor
{


+ 0
- 2
src/TensorFlowNET.Core/Functions/Function.cs View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 1
- 4
src/TensorFlowNET.Core/Functions/TF_Function.cs View File

@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;
using System.Runtime.InteropServices;

namespace Tensorflow.Functions
{


+ 0
- 2
src/TensorFlowNET.Core/Functions/c_api.function.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 1
- 5
src/TensorFlowNET.Core/Gradients/AggregationMethod.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
namespace Tensorflow
{
public class AggregationMethod
{


+ 0
- 2
src/TensorFlowNET.Core/Gradients/RegisterGradient.cs View File

@@ -15,8 +15,6 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow.Gradients
{


+ 1
- 4
src/TensorFlowNET.Core/Gradients/array_grad.cs View File

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tensorflow.Framework;
using Tensorflow.Operations;
using static Tensorflow.Python;

namespace Tensorflow.Gradients
@@ -99,7 +96,7 @@ namespace Tensorflow.Gradients
new Tensor[] { non_neg_concat_dim, tf.constant(0) },
new Tensor[] { tf.constant(1), tf.constant(-1) });
var squeeze_sizes = array_ops.squeeze(slice);
out_grads = gen_array_ops.split(grad, squeeze_sizes, non_neg_concat_dim).ToList();
out_grads = gen_array_ops.split(grad, squeeze_sizes, (int)non_neg_concat_dim.Data<int>()[0]).ToList();
}
else
{


+ 0
- 2
src/TensorFlowNET.Core/Gradients/c_api.gradient.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Gradients/control_flow_grad.py.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tensorflow.Operations;

namespace Tensorflow.Gradients


+ 0
- 5
src/TensorFlowNET.Core/Gradients/gradients_impl.py.cs View File

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using static Tensorflow.Python;

namespace Tensorflow
{


+ 0
- 1
src/TensorFlowNET.Core/Gradients/gradients_util.cs View File

@@ -17,7 +17,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static Tensorflow.Python;

namespace Tensorflow


+ 0
- 2
src/TensorFlowNET.Core/Gradients/math_grad.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using static Tensorflow.Python;

namespace Tensorflow.Gradients


+ 0
- 2
src/TensorFlowNET.Core/Gradients/nn_grad.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tensorflow.Operations;

namespace Tensorflow.Gradients


+ 0
- 1
src/TensorFlowNET.Core/Gradients/ops.gradient_function_mapping.cs View File

@@ -18,7 +18,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using Tensorflow.Gradients;

namespace Tensorflow


+ 0
- 2
src/TensorFlowNET.Core/Graphs/DefaultGraphStack.cs View File

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tensorflow
{


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

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public class FreezeGraph


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

@@ -14,11 +14,8 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Tensorflow.Eager;
using Tensorflow.Operations;

namespace Tensorflow


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

@@ -14,11 +14,6 @@
limitations under the License.
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{
public partial class Graph


+ 1
- 5
src/TensorFlowNET.Core/Graphs/Graph.Gradient.cs.cs View File

@@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
namespace Tensorflow
{
public partial class Graph
{


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

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

using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


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

@@ -18,7 +18,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


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

@@ -18,7 +18,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Graphs/ImportGraphDefOptions.cs View File

@@ -15,8 +15,6 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/Graphs/TF_ImportGraphDefResults.cs View File

@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 3
src/TensorFlowNET.Core/Graphs/_ControlDependenciesController.cs View File

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

using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow.Eager;
using Tensorflow.Operations;

namespace Tensorflow


+ 0
- 2
src/TensorFlowNET.Core/Graphs/c_api.graph.cs View File

@@ -15,9 +15,7 @@
******************************************************************************/

using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace Tensorflow
{


+ 0
- 3
src/TensorFlowNET.Core/Graphs/graph_io.py.cs View File

@@ -15,10 +15,7 @@
******************************************************************************/

using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Tensorflow
{


+ 0
- 2
src/TensorFlowNET.Core/IO/gfile.cs View File

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

using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace Tensorflow.IO
{


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

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
public interface IPyClass


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

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

using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
/// <summary>


+ 0
- 4
src/TensorFlowNET.Core/Keras/BackendBase.cs View File

@@ -14,11 +14,7 @@
limitations under the License.
******************************************************************************/

using NumSharp;
using System;
using System.Collections.Generic;
using System.Text;
using Tensorflow;

namespace Tensorflow.Keras
{


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save