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
83b2ad3b
Commit
83b2ad3b
authored
Jan 02, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jan 02, 2021
Browse files
Internal change
PiperOrigin-RevId: 349861117
parent
718fb2c0
Changes
37
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
68 additions
and
32 deletions
+68
-32
official/modeling/__init__.py
official/modeling/__init__.py
+14
-0
official/modeling/activations/__init__.py
official/modeling/activations/__init__.py
+2
-2
official/modeling/activations/gelu.py
official/modeling/activations/gelu.py
+2
-2
official/modeling/activations/gelu_test.py
official/modeling/activations/gelu_test.py
+2
-2
official/modeling/activations/relu.py
official/modeling/activations/relu.py
+2
-2
official/modeling/activations/relu_test.py
official/modeling/activations/relu_test.py
+2
-2
official/modeling/activations/sigmoid.py
official/modeling/activations/sigmoid.py
+2
-2
official/modeling/activations/sigmoid_test.py
official/modeling/activations/sigmoid_test.py
+2
-2
official/modeling/activations/swish.py
official/modeling/activations/swish.py
+2
-2
official/modeling/activations/swish_test.py
official/modeling/activations/swish_test.py
+2
-2
official/modeling/hyperparams/__init__.py
official/modeling/hyperparams/__init__.py
+1
-2
official/modeling/hyperparams/base_config.py
official/modeling/hyperparams/base_config.py
+1
-1
official/modeling/hyperparams/base_config_test.py
official/modeling/hyperparams/base_config_test.py
+0
-1
official/modeling/hyperparams/config_definitions.py
official/modeling/hyperparams/config_definitions.py
+1
-2
official/modeling/hyperparams/oneof.py
official/modeling/hyperparams/oneof.py
+1
-2
official/modeling/hyperparams/oneof_test.py
official/modeling/hyperparams/oneof_test.py
+0
-2
official/modeling/hyperparams/params_dict.py
official/modeling/hyperparams/params_dict.py
+2
-2
official/modeling/hyperparams/params_dict_test.py
official/modeling/hyperparams/params_dict_test.py
+2
-2
official/modeling/optimization/__init__.py
official/modeling/optimization/__init__.py
+14
-0
official/modeling/optimization/configs/__init__.py
official/modeling/optimization/configs/__init__.py
+14
-0
No files found.
official/modeling/__init__.py
View file @
83b2ad3b
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
official/modeling/activations/__init__.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Activations package definition."""
from
official.modeling.activations.gelu
import
gelu
from
official.modeling.activations.relu
import
relu6
...
...
official/modeling/activations/gelu.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Gaussian error linear unit."""
import
tensorflow
as
tf
...
...
official/modeling/activations/gelu_test.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for the Gaussian error linear unit."""
import
tensorflow
as
tf
...
...
official/modeling/activations/relu.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Customized Relu activation."""
import
tensorflow
as
tf
...
...
official/modeling/activations/relu_test.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for the customized Relu activation."""
import
tensorflow
as
tf
...
...
official/modeling/activations/sigmoid.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Customized Sigmoid activation."""
import
tensorflow
as
tf
...
...
official/modeling/activations/sigmoid_test.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for the customized Sigmoid activation."""
import
numpy
as
np
...
...
official/modeling/activations/swish.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Customized Swish activation."""
import
tensorflow
as
tf
...
...
official/modeling/activations/swish_test.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for the customized Swish activation."""
import
numpy
as
np
import
tensorflow
as
tf
...
...
official/modeling/hyperparams/__init__.py
View file @
83b2ad3b
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -12,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Hyperparams package definition."""
# pylint: disable=g-multiple-import
from
official.modeling.hyperparams.base_config
import
*
...
...
official/modeling/hyperparams/base_config.py
View file @
83b2ad3b
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Base configurations to standardize experiments."""
import
copy
...
...
official/modeling/hyperparams/base_config_test.py
View file @
83b2ad3b
...
...
@@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
import
pprint
from
typing
import
List
,
Tuple
...
...
official/modeling/hyperparams/config_definitions.py
View file @
83b2ad3b
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -12,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Common configuration settings."""
# pylint:disable=wildcard-import
import
dataclasses
...
...
official/modeling/hyperparams/oneof.py
View file @
83b2ad3b
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -12,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Config class that supports oneof functionality."""
from
typing
import
Optional
...
...
official/modeling/hyperparams/oneof_test.py
View file @
83b2ad3b
# Lint as: python3
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -12,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
import
dataclasses
import
tensorflow
as
tf
...
...
official/modeling/hyperparams/params_dict.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""A parameter dictionary class which supports the nest structure."""
import
collections
...
...
official/modeling/hyperparams/params_dict_test.py
View file @
83b2ad3b
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
@@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
"""Tests for params_dict.py."""
import
os
...
...
official/modeling/optimization/__init__.py
View file @
83b2ad3b
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Optimization package definition."""
# pylint: disable=wildcard-import
...
...
official/modeling/optimization/configs/__init__.py
View file @
83b2ad3b
# Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
Prev
1
2
Next
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