Skip to content

Commit b95d74d

Browse files
committed
[CIBUILD] change the size of optimizers_test
1 parent fbd6a79 commit b95d74d

34 files changed

+46
-57
lines changed

Diff for: .devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Tensorflow Addons SIG Dev Container",
2+
"name": "Tensorflow Deepray SIG Dev Container",
33
// Uncomment this for GPU image
44
// "build": {
55
// "args": {

Diff for: .github/ISSUE_TEMPLATE/bug-performance-report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ about: Use this template for reporting a bug or a performance issue.
77
**System information**
88
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
99
- TensorFlow version and how it was installed (source or binary):
10-
- TensorFlow-Addons version and how it was installed (source or binary):
10+
- TensorFlow-Deepray version and how it was installed (source or binary):
1111
- Python version:
1212
- Is GPU used? (yes/no):
1313

Diff for: CONTRIBUTING.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ review.
2626

2727
## Requirements for New Contributions to the Repository
2828

29-
**All new components/features to Addons need to first be submitted as a feature
29+
**All new components/features to Deepray need to first be submitted as a feature
3030
request issue. This will allow the team to check with our counterparts in the TF
3131
ecosystem and ensure it is not roadmapped internally for Keras or TF core. These
3232
feature requests will be labeled with `ecosystem-review` while we determine if it
33-
should be included in Addons.**
33+
should be included in Deepray.**
3434

3535
The tensorflow/deepray repository contains additional functionality
3636
fitting the following criteria:
3737

3838
* The functionality is not otherwise available in TensorFlow
39-
* Addons have to be compatible with TensorFlow 2.x.
39+
* Deepray have to be compatible with TensorFlow 2.x.
4040
* The addon conforms to the code and documentation standards
4141
* The addon is impactful to the community (e.g. an implementation used
4242
in widely cited paper)
@@ -178,7 +178,7 @@ pip install tensorflow==2.12.0
178178
pip install -e ./
179179
```
180180

181-
It's going to install Addons in editable mode without compiling anything.
181+
It's going to install Deepray in editable mode without compiling anything.
182182
You can modify source files and changes will be seen at the next Python
183183
interpreter startup. This command needs to be executed only once.
184184
Now, anywhere on your system, if you do `import deepray`, it's
@@ -379,7 +379,7 @@ context, see [this pull request](https://github.com/tensorflow/deepray/pull/928)
379379
You can import some common types
380380
from [deepray/utils/types.py](deepray/utils/types.py).
381381

382-
We recommend adding types if you add a new class/function to Addons' public API,
382+
We recommend adding types if you add a new class/function to Deepray' public API,
383383
but we don't enforce it.
384384

385385
Since adding type hints can be hard, especially for people who are not

Diff for: MIGRATION_TO_CORE.md

-11
This file was deleted.

Diff for: STYLE_GUIDE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#### C++
22
C++ code should conform to [Google C++ Style Guide](https://google.github.io/styleguide/cppguide.html).
33

4-
Addons uses [clang-format](https://clang.llvm.org/docs/ClangFormat.html)
4+
Deepray uses [clang-format](https://clang.llvm.org/docs/ClangFormat.html)
55
to check your C/C++ changes. Sometimes you have some manually formatted
66
code that you don’t want clang-format to touch.
77
You can disable formatting like this:
@@ -57,4 +57,4 @@ yapf --style=./.yapf -ir ./**/*.py
5757

5858
Follow the guidance in the [TensorFlow Style Guide - Conventions](https://www.tensorflow.org/community/contribute/code_style#tensorflow_conventions_and_special_uses).
5959

60-
Please note that Addons follows the conventions of the TensorFlow library, but formats our code using [PEP8](https://www.python.org/dev/peps/pep-0008/) guidelines.
60+
Please note that Deepray follows the conventions of the TensorFlow library, but formats our code using [PEP8](https://www.python.org/dev/peps/pep-0008/) guidelines.

Diff for: build_deps/tf_dependency/build_defs.bzl.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons Build Definitions inherited from TensorFlow Core
1+
# Deepray Build Definitions inherited from TensorFlow Core
22

33
D_GLIBCXX_USE_CXX11_ABI = "%{tf_cx11_abi}"
44
CPLUSPLUS_VERSION = "%{tf_cplusplus_ver}"

Diff for: deepray/activations/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Activations
1+
# Deepray - Activations
22

33
## Contents
44
https://www.tensorflow.org/deepray/api_docs/python/dp/activations

Diff for: deepray/callbacks/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Callbacks
1+
# Deepray - Callbacks
22

33
## Contents
44
https://www.tensorflow.org/deepray/api_docs/python/dp/callbacks

Diff for: deepray/custom_ops/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Custom Ops
1+
# Deepray - Custom Ops
22

33
## Contents
44
| Sub-Package | Description |

Diff for: deepray/image/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Image
1+
# Deepray - Image
22

33
## Components
44
https://www.tensorflow.org/deepray/api_docs/python/dp/image

Diff for: deepray/image/distort_image_ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def adjust_hsv_in_yiq(
174174

175175
if not options.is_custom_kernel_disabled():
176176
warnings.warn(
177-
"C++/CUDA kernel of `adjust_hsv_in_yiq` will be removed in Addons `0.13`.",
177+
"C++/CUDA kernel of `adjust_hsv_in_yiq` will be removed in Deepray `0.13`.",
178178
DeprecationWarning,
179179
)
180180
try:

Diff for: deepray/layers/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Layers
1+
# Deepray - Layers
22

33
## Components
44
https://www.tensorflow.org/deepray/api_docs/python/dp/layers

Diff for: deepray/layers/multihead_attention.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(
9898
**kwargs,
9999
):
100100
warnings.warn(
101-
"`MultiHeadAttention` will be deprecated in Addons 0.13. "
101+
"`MultiHeadAttention` will be deprecated in Deepray 0.13. "
102102
"Please use `tf.keras.layers.MultiHeadAttention` instead.",
103103
DeprecationWarning,
104104
)

Diff for: deepray/losses/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Losses
1+
# Deepray - Losses
22

33
## Components
44
https://www.tensorflow.org/deepray/api_docs/python/dp/losses

Diff for: deepray/metrics/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Metrics
1+
# Deepray - Metrics
22

33
## Contents
44
https://www.tensorflow.org/deepray/api_docs/python/dp/metrics

Diff for: deepray/metrics/r_square.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
if "y_shape" in kwargs:
9393
warnings.warn(
9494
"y_shape has been removed, because it's automatically derived,"
95-
"and will be deprecated in Addons 0.18.",
95+
"and will be deprecated in Deepray 0.18.",
9696
DeprecationWarning,
9797
)
9898

Diff for: deepray/optimizers/BUILD

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ py_library(
1313

1414
py_test(
1515
name = "optimizers_test",
16-
size = "small",
16+
size = "medium",
1717
srcs = glob(["tests/*"]),
1818
main = "tests/run_all_test.py",
1919
deps = [

Diff for: deepray/optimizers/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Optimizers
1+
# Deepray - Optimizers
22

33
## Components
44
https://www.tensorflow.org/deepray/api_docs/python/dp/optimizers

Diff for: deepray/optimizers/lamb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
if "weight_decay_rate" in kwargs:
8282
warnings.warn(
8383
"weight_decay_rate has been renamed to weight_decay,"
84-
"and will be deprecated in Addons 0.18.",
84+
"and will be deprecated in Deepray 0.18.",
8585
DeprecationWarning,
8686
)
8787
weight_decay = kwargs["weight_decay_rate"]

Diff for: deepray/options.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
_FALLBACK_WARNING_TEMPLATE = """{}
1515
1616
The {} C++/CUDA custom op could not be loaded.
17-
For this reason, Addons will fallback to an implementation written
17+
For this reason, Deepray will fallback to an implementation written
1818
in Python with public TensorFlow ops. There worst you might experience with
1919
this is a moderate slowdown on GPU. There can be multiple
2020
reason for this loading error, one of them may be an ABI incompatibility between
@@ -23,7 +23,7 @@
2323
shared object file was displayed above.
2424
2525
If you want this warning to disappear, either make sure the TensorFlow installed
26-
is compatible with this version of Addons, or tell Deepray to
26+
is compatible with this version of Deepray, or tell Deepray to
2727
prefer using Python implementations and not custom C++/CUDA ones. You can do that
2828
by setting the enviornment variable `DEEPRAY_PY_OPS=1`:
2929
```bash

Diff for: deepray/register.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
def register_all(keras_objects: bool = True, custom_kernels: bool = True) -> None:
1010
"""Register Deepray' objects in TensorFlow global dictionaries.
1111
12-
When loading a Keras model that has a TF Addons' function, it is needed
12+
When loading a Keras model that has a TF Deepray' function, it is needed
1313
for this function to be known by the Keras deserialization process.
1414
1515
There are two ways to do this, either do
@@ -53,13 +53,13 @@ def register_all(keras_objects: bool = True, custom_kernels: bool = True) -> Non
5353
Keras objects
5454
with `tf.keras.utils.register_keras_serializable(package="Deepray")`
5555
If set to False, doesn't register any Keras objects
56-
of Addons in TensorFlow.
56+
of Deepray in TensorFlow.
5757
custom_kernels: boolean, `True` by default. If `True`, loads all
5858
custom kernels of Deepray with
5959
`tf.load_op_library("path/to/so/file.so")`. Loading the SO files
6060
register them automatically. If `False` doesn't load and register
6161
the shared objects files. Not that it might be useful to turn it off
62-
if your installation of Addons doesn't work well with custom ops.
62+
if your installation of Deepray doesn't work well with custom ops.
6363
Returns:
6464
None
6565
"""
@@ -82,7 +82,7 @@ def register_custom_kernels() -> None:
8282
if not all_shared_objects:
8383
raise FileNotFoundError(
8484
"No shared objects files were found in the custom ops "
85-
"directory in Tensorflow Addons, check your installation again, "
85+
"directory in Tensorflow Deepray, check your installation again, "
8686
"or, if you don't need custom ops, call `dp.register_all(custom_kernels=False)`"
8787
" instead."
8888
)

Diff for: deepray/rnn/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - RNN
1+
# Deepray - RNN
22

33
## Components
44
https://www.tensorflow.org/deepray/api_docs/python/dp/rnn

Diff for: deepray/seq2seq/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Seq2seq
1+
# Deepray - Seq2seq
22

33
## Contents
44
https://www.tensorflow.org/deepray/api_docs/python/dp/seq2seq

Diff for: deepray/text/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Addons - Text
1+
# Deepray - Text
22

33
## Components
44
https://www.tensorflow.org/deepray/api_docs/python/dp/text

Diff for: deepray/utils/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# Addons Utils
1+
# Deepray Utils

Diff for: deepray/utils/ensure_tf_install.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def _check_tf_version():
2929
"""Warn the user if the version of TensorFlow used is not supported.
3030
3131
This is not a check for custom ops compatibility. This check only ensure that
32-
we support this TensorFlow version if the user uses only Addons' Python code.
32+
we support this TensorFlow version if the user uses only Deepray' Python code.
3333
"""
3434

3535
if "dev" in tf.__version__:
@@ -50,7 +50,7 @@ def _check_tf_version():
5050
return
5151

5252
warnings.warn(
53-
"Tensorflow Addons supports using Python ops for all Tensorflow versions "
53+
"Tensorflow Deepray supports using Python ops for all Tensorflow versions "
5454
"above or equal to {} and strictly below {} (nightly versions are not "
5555
"supported). \n "
5656
"The versions of TensorFlow you are currently using is {} and is not "

Diff for: deepray/utils/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
# ==============================================================================
15-
"""Utilities for testing Addons."""
15+
"""Utilities for testing Deepray."""
1616

1717
import os
1818
import random

Diff for: docs/overview.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pip install artifacts/deepray-*.whl
6868

6969
#### Standardized API within Subpackages
7070
User experience and project maintainability are core concepts in
71-
TF-Addons. In order to achieve these we require that our additions
71+
Deepray. In order to achieve these we require that our additions
7272
conform to established API patterns seen in core TensorFlow.
7373

7474
#### GPU/CPU Custom-Ops
@@ -77,7 +77,7 @@ a CUDA 10 installation not be found then the op will automatically fall back to
7777
a CPU implementation.
7878

7979
#### Proxy Maintainership
80-
Addons has been designed to compartmentalize subpackages and submodules so
80+
Deepray has been designed to compartmentalize subpackages and submodules so
8181
that they can be maintained by users who have expertise and a vested interest
8282
in that component.
8383

@@ -125,7 +125,7 @@ warning.
125125

126126

127127
## Contributing
128-
TF-Addons is a community led open source project. As such, the project
128+
Deepray is a community led open source project. As such, the project
129129
depends on public contributions, bug-fixes, and documentation. Please see
130130
[contribution guidelines](https://github.com/tensorflow/deepray/blob/master/CONTRIBUTING.md)
131131
for a guide on how to contribute. This project adheres to [TensorFlow's code of conduct](https://github.com/tensorflow/deepray/blob/master/CODE_OF_CONDUCT.md).

Diff for: docs/tutorials/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Deepray welcomes and highly encourages tutorial contributions.
55

66
## How To Contribute
77

8-
Addons tutorials are created using [Google Colab](https://colab.research.google.com/)
8+
Deepray tutorials are created using [Google Colab](https://colab.research.google.com/)
99
and the jupyter notebooks are saved to this directory in the repository. To do
1010
this, follow the below steps:
1111

@@ -18,4 +18,4 @@ URL boxes so that they match the name of your new example notebook
1818
4. Follow the guidelines of the template
1919
5. "Save a copy in GitHub" and select your new branch. The notebook should be
2020
named `subpackage_submodule`
21-
6. Submit the branch as a PR on the TF-Addons GitHub
21+
6. Submit the branch as a PR on the Deepray GitHub

Diff for: docs/tutorials/layers_normalizations.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"id": "kTlbneoEUKrD"
113113
},
114114
"source": [
115-
"### Install Tensorflow 2.0 and Tensorflow-Addons"
115+
"### Install Tensorflow 2.0 and Deepray"
116116
]
117117
},
118118
{

Diff for: docs/tutorials/optimizers_conditionalgradient.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
},
6767
"source": [
6868
"# Overview\n",
69-
"This notebook will demonstrate how to use the Conditional Graident Optimizer from the Addons package."
69+
"This notebook will demonstrate how to use the Conditional Graident Optimizer from the Deepray package."
7070
]
7171
},
7272
{

Diff for: docs/tutorials/optimizers_cyclicallearningrate.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"source": [
7171
"## Overview\n",
7272
"\n",
73-
"This tutorial demonstrates the use of Cyclical Learning Rate from the Addons package."
73+
"This tutorial demonstrates the use of Cyclical Learning Rate from the Deepray package."
7474
]
7575
},
7676
{

Diff for: docs/tutorials/optimizers_lazyadam.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"source": [
6767
"## Overview\n",
6868
"\n",
69-
"This notebook will demonstrate how to use the lazy adam optimizer from the Addons package.\n"
69+
"This notebook will demonstrate how to use the lazy adam optimizer from the Deepray package.\n"
7070
]
7171
},
7272
{

Diff for: tools/testing/source_code_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_no_private_tf_api():
108108
"A private tensorflow API import was found in {} at line {}.\n"
109109
"tensorflow.python refers to TensorFlow's internal source "
110110
"code and private functions/classes.\n"
111-
"The use of those is forbidden in Addons for stability reasons."
111+
"The use of those is forbidden in Deepray for stability reasons."
112112
"\nYou should find a public alternative or ask the "
113113
"TensorFlow team to expose publicly the function/class "
114114
"that you are using.\n"

0 commit comments

Comments
 (0)