Skip to content

Commit 1dd8d2e

Browse files
Merge branch 'keras-team:master' into lakshmikala
2 parents 9b93462 + 16f6e03 commit 1dd8d2e

File tree

210 files changed

+19647
-1021
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+19647
-1021
lines changed

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Description of the change
2+
<!--- Describe your changes in detail. -->
3+
4+
5+
## Reference
6+
<!--- Link to the reference implementation, research paper, and GitHub issue. -->
7+
8+
## Colab Notebook
9+
<!-- If adding any new API, attach a colab showing the high-level usage. If adding a model, please also include numerics verification against a reference implementation.-->
10+
11+
## Checklist
12+
<!--- Please make sure all checkboxes are ticked before submitting this PR for review. -->
13+
14+
- [ ] I have added all the necessary unit tests for my change.
15+
- [ ] I have verified that my change does not break existing code and works with all backends (TensorFlow, JAX, and PyTorch).
16+
- [ ] My PR is based on the latest changes of the main branch (if unsure, rebase the code).
17+
- [ ] I have followed the Keras Hub [Model contribution guidelines](https://github.com/keras-team/keras-hub/blob/master/CONTRIBUTING_MODELS.md) in making these changes.
18+
- [ ] I have followed the Keras Hub [API design guidelines](https://github.com/keras-team/keras-hub/blob/master/API_DESIGN_GUIDE.md) in making these changes.
19+
- [ ] I have signed the [Contributor License Agreement](https://cla.developers.google.com/about).

.kokoro/github/ubuntu/gpu/build.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ fi
1616
set -x
1717
cd "${KOKORO_ROOT}/"
1818

19-
PYTHON_BINARY="/usr/bin/python3.9"
19+
PYTHON_BINARY="/usr/bin/python3.10"
2020

2121
"${PYTHON_BINARY}" -m venv venv
2222
source venv/bin/activate
2323
# Check the python version
2424
python --version
2525
python3 --version
2626

27-
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:"
27+
# setting the LD_LIBRARY_PATH manually is causing segmentation fault
28+
# export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64:"
2829
# Check cuda
2930
nvidia-smi
3031
nvcc --version
@@ -56,8 +57,8 @@ pip install huggingface_hub
5657
if [ "${RUN_XLARGE:-0}" == "1" ]
5758
then
5859
pytest keras_hub --check_gpu --run_large --run_extra_large \
59-
--cov=keras-hub
60+
--cov=keras_hub
6061
else
6162
pytest keras_hub --check_gpu --run_large \
62-
--cov=keras-hub
63+
--cov=keras_hub
6364
fi

.kokoro/github/ubuntu/gpu/jax/continuous.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/jax/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/tensorflow/continuous.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/tensorflow/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/torch/continuous.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout to 120 mins from default 180 mins
34+
timeout_mins: 120

.kokoro/github/ubuntu/gpu/torch/presubmit.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ before_action {
3030
}
3131
}
3232

33-
# Set timeout to 60 mins from default 180 mins
34-
timeout_mins: 60
33+
# Set timeout lower from default 180 mins
34+
timeout_mins: 120

RELEASE_PROCESS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Use the following steps to create an `X.Y.0` release.
4848
of the package. Development releases will have version numbers like
4949
`X.Y.0.dev0`, and critically will never be installed by default by `pip`.
5050

51-
On the relase branch, check the version in `src/version_utils.py`. If the
51+
On the relase branch, check the version in `src/version.py`. If the
5252
current version is not `X.Y.0.dev0`, make a PR following [this template](https://github.com/keras-team/keras-hub/pull/1638)
5353
to update the our version number fo look like `X.Y.0.dev0`. This PR should
5454
base off our new release branch instead of the master branch. You can use the
@@ -164,7 +164,7 @@ to push certain fixes out to our users.
164164
of the package. Development releases will have version numbers like
165165
`X.Y.Z.dev0`, and critically will never be installed by default by `pip`.
166166

167-
On the relase branch, check the version in `src/version_utils.py`. If the
167+
On the relase branch, check the version in `src/version.py`. If the
168168
current version is not `X.Y.Z.dev0`, make a PR following [this template](https://github.com/keras-team/keras-hub/pull/1638)
169169
to update the our version number fo look like `X.Y.Z.dev0`. This PR should
170170
base off our new release branch instead of the master branch. You can use the

api_gen.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def export_version_string(api_init_fname):
3636
with open(api_init_fname) as f:
3737
contents = f.read()
3838
with open(api_init_fname, "w") as f:
39-
contents += "from keras_hub.src.version_utils import __version__ as __version__\n" # noqa: E501
39+
contents += (
40+
"from keras_hub.src.version import __version__ as __version__\n"
41+
)
4042
f.write(contents)
4143

4244

0 commit comments

Comments
 (0)