Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
fb4b9580
Unverified
Commit
fb4b9580
authored
Oct 24, 2021
by
srihari-humbarwadi
Browse files
add missing `from_config` method
parent
c1b65fc1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/paste_masks.py
...projects/panoptic_maskrcnn/modeling/layers/paste_masks.py
+10
-3
No files found.
official/vision/beta/projects/panoptic_maskrcnn/modeling/layers/paste_masks.py
View file @
fb4b9580
...
@@ -121,6 +121,9 @@ class BilinearGridSampler(tf.keras.layers.Layer):
...
@@ -121,6 +121,9 @@ class BilinearGridSampler(tf.keras.layers.Layer):
def
get_config
(
self
):
def
get_config
(
self
):
return
self
.
_config_dict
return
self
.
_config_dict
@
classmethod
def
from_config
(
cls
,
config
):
return
cls
(
**
config
)
class
PasteMasks
(
tf
.
keras
.
layers
.
Layer
):
class
PasteMasks
(
tf
.
keras
.
layers
.
Layer
):
...
@@ -169,3 +172,7 @@ class PasteMasks(tf.keras.layers.Layer):
...
@@ -169,3 +172,7 @@ class PasteMasks(tf.keras.layers.Layer):
def
get_config
(
self
):
def
get_config
(
self
):
return
self
.
_config_dict
return
self
.
_config_dict
@
classmethod
def
from_config
(
cls
,
config
):
return
cls
(
**
config
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment