Skip to content

Commit

Permalink
Update all the dropout related logic to use keras.backend.RandomGener…
Browse files Browse the repository at this point in the history
…ator.

Consolidate all the BaseRandomLayer into base_layer.py.

PiperOrigin-RevId: 399749520
  • Loading branch information
qlzh727 authored and tensorflower-gardener committed Sep 29, 2021
1 parent 071bcc8 commit 1d17276
Show file tree
Hide file tree
Showing 70 changed files with 165 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.__internal__.legacy.layers.Dropout"
tf_class {
is_instance: "<class \'keras.legacy_tf_layers.core.Dropout\'>"
is_instance: "<class \'keras.layers.core.dropout.Dropout\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.legacy_tf_layers.base.Layer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tf_class {
is_instance: "<class \'keras.layers.recurrent.PeepholeLSTMCell\'>"
is_instance: "<class \'keras.layers.recurrent.LSTMCell\'>"
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.AdditiveAttention"
tf_class {
is_instance: "<class \'keras.layers.dense_attention.AdditiveAttention\'>"
is_instance: "<class \'keras.layers.dense_attention.BaseDenseAttention\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.AlphaDropout"
tf_class {
is_instance: "<class \'keras.layers.noise.AlphaDropout\'>"
is_instance: "<class \'keras.layers.noise.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.Attention"
tf_class {
is_instance: "<class \'keras.layers.dense_attention.Attention\'>"
is_instance: "<class \'keras.layers.dense_attention.BaseDenseAttention\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
1 change: 1 addition & 0 deletions keras/api/golden/v1/tensorflow.keras.layers.-dropout.pbtxt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
path: "tensorflow.keras.layers.Dropout"
tf_class {
is_instance: "<class \'keras.layers.core.dropout.Dropout\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.GRUCell"
tf_class {
is_instance: "<class \'keras.layers.recurrent.GRUCell\'>"
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.GaussianDropout"
tf_class {
is_instance: "<class \'keras.layers.noise.GaussianDropout\'>"
is_instance: "<class \'keras.layers.noise.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.GaussianNoise"
tf_class {
is_instance: "<class \'keras.layers.noise.GaussianNoise\'>"
is_instance: "<class \'keras.layers.noise.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.LSTMCell"
tf_class {
is_instance: "<class \'keras.layers.recurrent.LSTMCell\'>"
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomContrast"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomContrast\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomCrop"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomCrop\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomFlip"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomFlip\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomHeight"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomHeight\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomRotation"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomRotation\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomTranslation"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomTranslation\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomWidth"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomWidth\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.RandomZoom"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomZoom\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.SimpleRNNCell"
tf_class {
is_instance: "<class \'keras.layers.recurrent.SimpleRNNCell\'>"
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.SpatialDropout1D"
tf_class {
is_instance: "<class \'keras.layers.core.spatial_dropout.SpatialDropout1D\'>"
is_instance: "<class \'keras.layers.core.dropout.Dropout\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.SpatialDropout2D"
tf_class {
is_instance: "<class \'keras.layers.core.spatial_dropout.SpatialDropout2D\'>"
is_instance: "<class \'keras.layers.core.dropout.Dropout\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.SpatialDropout3D"
tf_class {
is_instance: "<class \'keras.layers.core.spatial_dropout.SpatialDropout3D\'>"
is_instance: "<class \'keras.layers.core.dropout.Dropout\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomContrast"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomContrast\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomCrop"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomCrop\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomFlip"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomFlip\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomHeight"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomHeight\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomRotation"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomRotation\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomTranslation"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomTranslation\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomWidth"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomWidth\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.experimental.preprocessing.RandomZoom"
tf_class {
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.RandomZoom\'>"
is_instance: "<class \'keras.layers.preprocessing.image_preprocessing.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tf_class {
is_instance: "<class \'keras.layers.recurrent.PeepholeLSTMCell\'>"
is_instance: "<class \'keras.layers.recurrent.LSTMCell\'>"
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.AdditiveAttention"
tf_class {
is_instance: "<class \'keras.layers.dense_attention.AdditiveAttention\'>"
is_instance: "<class \'keras.layers.dense_attention.BaseDenseAttention\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.AlphaDropout"
tf_class {
is_instance: "<class \'keras.layers.noise.AlphaDropout\'>"
is_instance: "<class \'keras.layers.noise.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ path: "tensorflow.keras.layers.Attention"
tf_class {
is_instance: "<class \'keras.layers.dense_attention.Attention\'>"
is_instance: "<class \'keras.layers.dense_attention.BaseDenseAttention\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
1 change: 1 addition & 0 deletions keras/api/golden/v2/tensorflow.keras.layers.-dropout.pbtxt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
path: "tensorflow.keras.layers.Dropout"
tf_class {
is_instance: "<class \'keras.layers.core.dropout.Dropout\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ tf_class {
is_instance: "<class \'keras.layers.recurrent_v2.GRUCell\'>"
is_instance: "<class \'keras.layers.recurrent.GRUCell\'>"
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
1 change: 1 addition & 0 deletions keras/api/golden/v2/tensorflow.keras.layers.-g-r-u.pbtxt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ tf_class {
is_instance: "<class \'keras.layers.recurrent.DropoutRNNCellMixin\'>"
is_instance: "<class \'keras.layers.recurrent.GRU\'>"
is_instance: "<class \'keras.layers.recurrent.RNN\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.GaussianDropout"
tf_class {
is_instance: "<class \'keras.layers.noise.GaussianDropout\'>"
is_instance: "<class \'keras.layers.noise.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path: "tensorflow.keras.layers.GaussianNoise"
tf_class {
is_instance: "<class \'keras.layers.noise.GaussianNoise\'>"
is_instance: "<class \'keras.layers.noise.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.BaseRandomLayer\'>"
is_instance: "<class \'keras.engine.base_layer.Layer\'>"
is_instance: "<class \'tensorflow.python.module.module.Module\'>"
is_instance: "<class \'tensorflow.python.training.tracking.tracking.AutoTrackable\'>"
Expand Down
Loading

0 comments on commit 1d17276

Please sign in to comment.