| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ed1a8d2 commit b27ccca
28 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | using System.Collections.Generic; | |
| 4 | 4 | using System.Text; | |
| 5 | 5 | ||
| 6 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 6 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 7 | 7 | { | |
| 8 | 8 | public class GRUCellArgs : AutoSerializeLayerArgs | |
| 9 | 9 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 1 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 2 | 2 | { | |
| 3 | 3 | public class LSTMArgs : RNNArgs | |
| 4 | 4 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | using Newtonsoft.Json; | |
| 2 | 2 | using static Tensorflow.Binding; | |
| 3 | 3 | ||
| 4 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 4 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 5 | 5 | { | |
| 6 | 6 | // TODO: complete the implementation | |
| 7 | 7 | public class LSTMCellArgs : AutoSerializeLayerArgs | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | 1 | using Newtonsoft.Json; | |
| 2 | 2 | using System.Collections.Generic; | |
| 3 | - using Tensorflow.Keras.Layers.Rnn; | ||
| 3 | + using Tensorflow.Keras.Layers; | ||
| 4 | 4 | ||
| 5 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 5 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 6 | 6 | { | |
| 7 | 7 | // TODO(Rinne): add regularizers. | |
| 8 | 8 | public class RNNArgs : AutoSerializeLayerArgs | |
@@ -23,16 +23,22 @@ public class RNNArgs : AutoSerializeLayerArgs | |||
| 23 | 23 | public int? InputDim { get; set; } | |
| 24 | 24 | public int? InputLength { get; set; } | |
| 25 | 25 | // TODO: Add `num_constants` and `zero_output_for_mask`. | |
| 26 | - | ||
| 26 | + [JsonProperty("units")] | ||
| 27 | 27 | public int Units { get; set; } | |
| 28 | + [JsonProperty("activation")] | ||
| 28 | 29 | public Activation Activation { get; set; } | |
| 30 | + [JsonProperty("recurrent_activation")] | ||
| 29 | 31 | public Activation RecurrentActivation { get; set; } | |
| 32 | + [JsonProperty("use_bias")] | ||
| 30 | 33 | public bool UseBias { get; set; } = true; | |
| 31 | 34 | public IInitializer KernelInitializer { get; set; } | |
| 32 | 35 | public IInitializer RecurrentInitializer { get; set; } | |
| 33 | 36 | public IInitializer BiasInitializer { get; set; } | |
| 37 | + [JsonProperty("dropout")] | ||
| 34 | 38 | public float Dropout { get; set; } = .0f; | |
| 39 | + [JsonProperty("zero_output_for_mask")] | ||
| 35 | 40 | public bool ZeroOutputForMask { get; set; } = false; | |
| 41 | + [JsonProperty("recurrent_dropout")] | ||
| 36 | 42 | public float RecurrentDropout { get; set; } = .0f; | |
| 37 | 43 | } | |
| 38 | 44 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | using System.Text; | |
| 4 | 4 | using Tensorflow.Common.Types; | |
| 5 | 5 | ||
| 6 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 6 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 7 | 7 | { | |
| 8 | 8 | public class RnnOptionalArgs: IOptionalArgs | |
| 9 | 9 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 1 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 2 | 2 | { | |
| 3 | 3 | public class SimpleRNNArgs : RNNArgs | |
| 4 | 4 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,6 +1,6 @@ | |||
| 1 | 1 | using Newtonsoft.Json; | |
| 2 | 2 | ||
| 3 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 3 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 4 | 4 | { | |
| 5 | 5 | public class SimpleRNNCellArgs: AutoSerializeLayerArgs | |
| 6 | 6 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | using System.Collections.Generic; | |
| 2 | - using Tensorflow.Keras.Layers.Rnn; | ||
| 2 | + using Tensorflow.Keras.Layers; | ||
| 3 | 3 | ||
| 4 | - namespace Tensorflow.Keras.ArgsDefinition.Rnn | ||
| 4 | + namespace Tensorflow.Keras.ArgsDefinition | ||
| 5 | 5 | { | |
| 6 | 6 | public class StackedRNNCellsArgs : LayerArgs | |
| 7 | 7 | { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | using System; | |
| 2 | 2 | using Tensorflow.Framework.Models; | |
| 3 | 3 | using Tensorflow.Keras.Engine; | |
| 4 | - using Tensorflow.Keras.Layers.Rnn; | ||
| 4 | + using Tensorflow.Keras.Layers; | ||
| 5 | 5 | using Tensorflow.NumPy; | |
| 6 | 6 | using static Google.Protobuf.Reflection.FieldDescriptorProto.Types; | |
| 7 | 7 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,7 @@ | |||
| 3 | 3 | using System.Text; | |
| 4 | 4 | using Tensorflow.Common.Types; | |
| 5 | 5 | ||
| 6 | - namespace Tensorflow.Keras.Layers.Rnn | ||
| 6 | + namespace Tensorflow.Keras.Layers | ||
| 7 | 7 | { | |
| 8 | 8 | public interface IRnnCell: ILayer | |
| 9 | 9 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments