diff --git a/keras_hub/__init__.py b/keras_hub/__init__.py index 50b3ee2eb8..5dfe59e6d6 100644 --- a/keras_hub/__init__.py +++ b/keras_hub/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os # sentencepiece segfaults on some version of tensorflow if tf is imported first. diff --git a/keras_hub/api/__init__.py b/keras_hub/api/__init__.py index d715d4170a..7e44f01381 100644 --- a/keras_hub/api/__init__.py +++ b/keras_hub/api/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/bounding_box/__init__.py b/keras_hub/api/bounding_box/__init__.py index 989cdb1c6f..dfdea4305c 100644 --- a/keras_hub/api/bounding_box/__init__.py +++ b/keras_hub/api/bounding_box/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/layers/__init__.py b/keras_hub/api/layers/__init__.py index c428474288..5d9f9927a5 100644 --- a/keras_hub/api/layers/__init__.py +++ b/keras_hub/api/layers/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/metrics/__init__.py b/keras_hub/api/metrics/__init__.py index fc3c46c78d..88a0a7df2b 100644 --- a/keras_hub/api/metrics/__init__.py +++ b/keras_hub/api/metrics/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/models/__init__.py b/keras_hub/api/models/__init__.py index ee0022ab59..1d44e9b075 100644 --- a/keras_hub/api/models/__init__.py +++ b/keras_hub/api/models/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/samplers/__init__.py b/keras_hub/api/samplers/__init__.py index 52d4a8920e..9feb76c669 100644 --- a/keras_hub/api/samplers/__init__.py +++ b/keras_hub/api/samplers/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/tokenizers/__init__.py b/keras_hub/api/tokenizers/__init__.py index d0edf9dabd..f2eb66f60a 100644 --- a/keras_hub/api/tokenizers/__init__.py +++ b/keras_hub/api/tokenizers/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/api/utils/__init__.py b/keras_hub/api/utils/__init__.py index baab86c319..96399893bb 100644 --- a/keras_hub/api/utils/__init__.py +++ b/keras_hub/api/utils/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DO NOT EDIT. This file was autogenerated. Do not edit it by hand, diff --git a/keras_hub/src/__init__.py b/keras_hub/src/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/__init__.py +++ b/keras_hub/src/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/api_export.py b/keras_hub/src/api_export.py index 22199959c1..9e2efbfbd1 100644 --- a/keras_hub/src/api_export.py +++ b/keras_hub/src/api_export.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import types from keras.saving import register_keras_serializable diff --git a/keras_hub/src/bounding_box/__init__.py b/keras_hub/src/bounding_box/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/bounding_box/__init__.py +++ b/keras_hub/src/bounding_box/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/bounding_box/converters.py b/keras_hub/src/bounding_box/converters.py index 63996e6abf..263cd6df33 100644 --- a/keras_hub/src/bounding_box/converters.py +++ b/keras_hub/src/bounding_box/converters.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Converter functions for working with bounding box formats.""" import keras diff --git a/keras_hub/src/bounding_box/converters_test.py b/keras_hub/src/bounding_box/converters_test.py index 9b46294569..9617a2a2aa 100644 --- a/keras_hub/src/bounding_box/converters_test.py +++ b/keras_hub/src/bounding_box/converters_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import itertools import numpy as np diff --git a/keras_hub/src/bounding_box/formats.py b/keras_hub/src/bounding_box/formats.py index 4f419457c4..c8e50ab60a 100644 --- a/keras_hub/src/bounding_box/formats.py +++ b/keras_hub/src/bounding_box/formats.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """ formats.py contains axis information for each supported format. """ diff --git a/keras_hub/src/bounding_box/iou.py b/keras_hub/src/bounding_box/iou.py index 4f404f008a..df2c907e4a 100644 --- a/keras_hub/src/bounding_box/iou.py +++ b/keras_hub/src/bounding_box/iou.py @@ -1,17 +1,5 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Contains functions to compute ious of bounding boxes.""" + import math import keras diff --git a/keras_hub/src/bounding_box/iou_test.py b/keras_hub/src/bounding_box/iou_test.py index 5469dea03e..2e00f24869 100644 --- a/keras_hub/src/bounding_box/iou_test.py +++ b/keras_hub/src/bounding_box/iou_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Tests for iou functions.""" import numpy as np diff --git a/keras_hub/src/bounding_box/to_dense.py b/keras_hub/src/bounding_box/to_dense.py index 90ba829346..68b00d065f 100644 --- a/keras_hub/src/bounding_box/to_dense.py +++ b/keras_hub/src/bounding_box/to_dense.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras_hub.src.bounding_box.validate_format as validate_format from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/bounding_box/to_dense_test.py b/keras_hub/src/bounding_box/to_dense_test.py index d33d093cd2..91acb8137a 100644 --- a/keras_hub/src/bounding_box/to_dense_test.py +++ b/keras_hub/src/bounding_box/to_dense_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest import tensorflow as tf from keras import backend diff --git a/keras_hub/src/bounding_box/to_ragged.py b/keras_hub/src/bounding_box/to_ragged.py index 104916af82..f86712dd35 100644 --- a/keras_hub/src/bounding_box/to_ragged.py +++ b/keras_hub/src/bounding_box/to_ragged.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras import keras_hub.src.bounding_box.validate_format as validate_format diff --git a/keras_hub/src/bounding_box/to_ragged_test.py b/keras_hub/src/bounding_box/to_ragged_test.py index 203924671b..9b76866ddc 100644 --- a/keras_hub/src/bounding_box/to_ragged_test.py +++ b/keras_hub/src/bounding_box/to_ragged_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest from keras import backend diff --git a/keras_hub/src/bounding_box/utils.py b/keras_hub/src/bounding_box/utils.py index 4fe27e93b5..ac4fe8d05b 100644 --- a/keras_hub/src/bounding_box/utils.py +++ b/keras_hub/src/bounding_box/utils.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Utility functions for working with bounding boxes.""" from keras import ops diff --git a/keras_hub/src/bounding_box/utils_test.py b/keras_hub/src/bounding_box/utils_test.py index 044fa088cc..a6e3af0350 100644 --- a/keras_hub/src/bounding_box/utils_test.py +++ b/keras_hub/src/bounding_box/utils_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras import ops diff --git a/keras_hub/src/bounding_box/validate_format.py b/keras_hub/src/bounding_box/validate_format.py index 5cd5660b52..8680dbb693 100644 --- a/keras_hub/src/bounding_box/validate_format.py +++ b/keras_hub/src/bounding_box/validate_format.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export try: diff --git a/keras_hub/src/bounding_box/validate_format_test.py b/keras_hub/src/bounding_box/validate_format_test.py index 496d9fc729..e2025e290a 100644 --- a/keras_hub/src/bounding_box/validate_format_test.py +++ b/keras_hub/src/bounding_box/validate_format_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.bounding_box import validate_format diff --git a/keras_hub/src/layers/__init__.py b/keras_hub/src/layers/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/layers/__init__.py +++ b/keras_hub/src/layers/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/layers/modeling/__init__.py b/keras_hub/src/layers/modeling/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/layers/modeling/__init__.py +++ b/keras_hub/src/layers/modeling/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/layers/modeling/alibi_bias.py b/keras_hub/src/layers/modeling/alibi_bias.py index 6de1df61da..d21d39432a 100644 --- a/keras_hub/src/layers/modeling/alibi_bias.py +++ b/keras_hub/src/layers/modeling/alibi_bias.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/layers/modeling/alibi_bias_test.py b/keras_hub/src/layers/modeling/alibi_bias_test.py index 5f8075aa1d..627cede5a2 100644 --- a/keras_hub/src/layers/modeling/alibi_bias_test.py +++ b/keras_hub/src/layers/modeling/alibi_bias_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops from keras import random diff --git a/keras_hub/src/layers/modeling/cached_multi_head_attention.py b/keras_hub/src/layers/modeling/cached_multi_head_attention.py index ad83f79c67..0441e71845 100644 --- a/keras_hub/src/layers/modeling/cached_multi_head_attention.py +++ b/keras_hub/src/layers/modeling/cached_multi_head_attention.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/cached_multi_head_attention_test.py b/keras_hub/src/layers/modeling/cached_multi_head_attention_test.py index 27eeb99573..6690667ade 100644 --- a/keras_hub/src/layers/modeling/cached_multi_head_attention_test.py +++ b/keras_hub/src/layers/modeling/cached_multi_head_attention_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import random diff --git a/keras_hub/src/layers/modeling/f_net_encoder.py b/keras_hub/src/layers/modeling/f_net_encoder.py index 3fa5b22655..e4d4400561 100644 --- a/keras_hub/src/layers/modeling/f_net_encoder.py +++ b/keras_hub/src/layers/modeling/f_net_encoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/f_net_encoder_test.py b/keras_hub/src/layers/modeling/f_net_encoder_test.py index a594c4e84d..0fe2d361dd 100644 --- a/keras_hub/src/layers/modeling/f_net_encoder_test.py +++ b/keras_hub/src/layers/modeling/f_net_encoder_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import random diff --git a/keras_hub/src/layers/modeling/masked_lm_head.py b/keras_hub/src/layers/modeling/masked_lm_head.py index 9979625f7a..c26da2243b 100644 --- a/keras_hub/src/layers/modeling/masked_lm_head.py +++ b/keras_hub/src/layers/modeling/masked_lm_head.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/masked_lm_head_test.py b/keras_hub/src/layers/modeling/masked_lm_head_test.py index bd9daf92ea..28da6dc6f9 100644 --- a/keras_hub/src/layers/modeling/masked_lm_head_test.py +++ b/keras_hub/src/layers/modeling/masked_lm_head_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import random from keras_hub.src.layers.modeling.masked_lm_head import MaskedLMHead diff --git a/keras_hub/src/layers/modeling/position_embedding.py b/keras_hub/src/layers/modeling/position_embedding.py index f59ac87a9d..afa0c8f679 100644 --- a/keras_hub/src/layers/modeling/position_embedding.py +++ b/keras_hub/src/layers/modeling/position_embedding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/position_embedding_test.py b/keras_hub/src/layers/modeling/position_embedding_test.py index 02d224e762..d6e577c66e 100644 --- a/keras_hub/src/layers/modeling/position_embedding_test.py +++ b/keras_hub/src/layers/modeling/position_embedding_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import numpy as np from keras import ops diff --git a/keras_hub/src/layers/modeling/reversible_embedding.py b/keras_hub/src/layers/modeling/reversible_embedding.py index 963085d5d8..549416d2a0 100644 --- a/keras_hub/src/layers/modeling/reversible_embedding.py +++ b/keras_hub/src/layers/modeling/reversible_embedding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops from packaging.version import parse diff --git a/keras_hub/src/layers/modeling/reversible_embedding_test.py b/keras_hub/src/layers/modeling/reversible_embedding_test.py index 80ad2457ee..00d87ed875 100644 --- a/keras_hub/src/layers/modeling/reversible_embedding_test.py +++ b/keras_hub/src/layers/modeling/reversible_embedding_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import keras diff --git a/keras_hub/src/layers/modeling/rotary_embedding.py b/keras_hub/src/layers/modeling/rotary_embedding.py index 0350c6b687..cd28f2124e 100644 --- a/keras_hub/src/layers/modeling/rotary_embedding.py +++ b/keras_hub/src/layers/modeling/rotary_embedding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/rotary_embedding_test.py b/keras_hub/src/layers/modeling/rotary_embedding_test.py index 73678308d4..35c2cc1356 100644 --- a/keras_hub/src/layers/modeling/rotary_embedding_test.py +++ b/keras_hub/src/layers/modeling/rotary_embedding_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras import numpy as np from keras import ops diff --git a/keras_hub/src/layers/modeling/sine_position_encoding.py b/keras_hub/src/layers/modeling/sine_position_encoding.py index 4294052a52..2299989346 100644 --- a/keras_hub/src/layers/modeling/sine_position_encoding.py +++ b/keras_hub/src/layers/modeling/sine_position_encoding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/sine_position_encoding_test.py b/keras_hub/src/layers/modeling/sine_position_encoding_test.py index edecda3fbe..eb0aeb2ff3 100644 --- a/keras_hub/src/layers/modeling/sine_position_encoding_test.py +++ b/keras_hub/src/layers/modeling/sine_position_encoding_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops from keras import random diff --git a/keras_hub/src/layers/modeling/token_and_position_embedding.py b/keras_hub/src/layers/modeling/token_and_position_embedding.py index 20cbcfd00d..ef76d3a70b 100644 --- a/keras_hub/src/layers/modeling/token_and_position_embedding.py +++ b/keras_hub/src/layers/modeling/token_and_position_embedding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/layers/modeling/token_and_position_embedding_test.py b/keras_hub/src/layers/modeling/token_and_position_embedding_test.py index dc52a56245..f0ef202aed 100644 --- a/keras_hub/src/layers/modeling/token_and_position_embedding_test.py +++ b/keras_hub/src/layers/modeling/token_and_position_embedding_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops from keras import random diff --git a/keras_hub/src/layers/modeling/transformer_decoder.py b/keras_hub/src/layers/modeling/transformer_decoder.py index a5e6d82327..cafce6b265 100644 --- a/keras_hub/src/layers/modeling/transformer_decoder.py +++ b/keras_hub/src/layers/modeling/transformer_decoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/layers/modeling/transformer_decoder_test.py b/keras_hub/src/layers/modeling/transformer_decoder_test.py index 73bb9d225a..7cbd32bed8 100644 --- a/keras_hub/src/layers/modeling/transformer_decoder_test.py +++ b/keras_hub/src/layers/modeling/transformer_decoder_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from absl.testing import parameterized from keras import ops from keras import random diff --git a/keras_hub/src/layers/modeling/transformer_encoder.py b/keras_hub/src/layers/modeling/transformer_encoder.py index 614ba0f0f4..8d3fb0f950 100644 --- a/keras_hub/src/layers/modeling/transformer_encoder.py +++ b/keras_hub/src/layers/modeling/transformer_encoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/layers/modeling/transformer_encoder_test.py b/keras_hub/src/layers/modeling/transformer_encoder_test.py index 9640d02a19..c4763d3763 100644 --- a/keras_hub/src/layers/modeling/transformer_encoder_test.py +++ b/keras_hub/src/layers/modeling/transformer_encoder_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from absl.testing import parameterized from keras import ops diff --git a/keras_hub/src/layers/modeling/transformer_layer_utils.py b/keras_hub/src/layers/modeling/transformer_layer_utils.py index de18fec771..ebc8ff37be 100644 --- a/keras_hub/src/layers/modeling/transformer_layer_utils.py +++ b/keras_hub/src/layers/modeling/transformer_layer_utils.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from absl import logging from keras import ops diff --git a/keras_hub/src/layers/modeling/transformer_layer_utils_test.py b/keras_hub/src/layers/modeling/transformer_layer_utils_test.py index 8fc232b1cb..1c92950444 100644 --- a/keras_hub/src/layers/modeling/transformer_layer_utils_test.py +++ b/keras_hub/src/layers/modeling/transformer_layer_utils_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import random diff --git a/keras_hub/src/layers/preprocessing/__init__.py b/keras_hub/src/layers/preprocessing/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/layers/preprocessing/__init__.py +++ b/keras_hub/src/layers/preprocessing/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/layers/preprocessing/audio_converter.py b/keras_hub/src/layers/preprocessing/audio_converter.py index a07b45cd19..3ddf805abc 100644 --- a/keras_hub/src/layers/preprocessing/audio_converter.py +++ b/keras_hub/src/layers/preprocessing/audio_converter.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.preprocessing_layer import ( PreprocessingLayer, diff --git a/keras_hub/src/layers/preprocessing/audio_converter_test.py b/keras_hub/src/layers/preprocessing/audio_converter_test.py index be06bac65d..f0580970c2 100644 --- a/keras_hub/src/layers/preprocessing/audio_converter_test.py +++ b/keras_hub/src/layers/preprocessing/audio_converter_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pathlib diff --git a/keras_hub/src/layers/preprocessing/image_converter.py b/keras_hub/src/layers/preprocessing/image_converter.py index 893ad6ccf3..b93e36e069 100644 --- a/keras_hub/src/layers/preprocessing/image_converter.py +++ b/keras_hub/src/layers/preprocessing/image_converter.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.preprocessing_layer import ( PreprocessingLayer, diff --git a/keras_hub/src/layers/preprocessing/image_converter_test.py b/keras_hub/src/layers/preprocessing/image_converter_test.py index 46fc837eaa..3c0651ad72 100644 --- a/keras_hub/src/layers/preprocessing/image_converter_test.py +++ b/keras_hub/src/layers/preprocessing/image_converter_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pathlib diff --git a/keras_hub/src/layers/preprocessing/masked_lm_mask_generator.py b/keras_hub/src/layers/preprocessing/masked_lm_mask_generator.py index f38618d361..b32dbca067 100644 --- a/keras_hub/src/layers/preprocessing/masked_lm_mask_generator.py +++ b/keras_hub/src/layers/preprocessing/masked_lm_mask_generator.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.preprocessing_layer import ( PreprocessingLayer, diff --git a/keras_hub/src/layers/preprocessing/masked_lm_mask_generator_test.py b/keras_hub/src/layers/preprocessing/masked_lm_mask_generator_test.py index ce2c3653a0..f3e58d3133 100644 --- a/keras_hub/src/layers/preprocessing/masked_lm_mask_generator_test.py +++ b/keras_hub/src/layers/preprocessing/masked_lm_mask_generator_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import tensorflow as tf from keras import ops diff --git a/keras_hub/src/layers/preprocessing/multi_segment_packer.py b/keras_hub/src/layers/preprocessing/multi_segment_packer.py index c7ec72a603..3c0a8e346d 100644 --- a/keras_hub/src/layers/preprocessing/multi_segment_packer.py +++ b/keras_hub/src/layers/preprocessing/multi_segment_packer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.preprocessing_layer import ( PreprocessingLayer, diff --git a/keras_hub/src/layers/preprocessing/multi_segment_packer_test.py b/keras_hub/src/layers/preprocessing/multi_segment_packer_test.py index 78d6ccaa00..c38aa137e5 100644 --- a/keras_hub/src/layers/preprocessing/multi_segment_packer_test.py +++ b/keras_hub/src/layers/preprocessing/multi_segment_packer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras_hub.src.layers.preprocessing.multi_segment_packer import ( diff --git a/keras_hub/src/layers/preprocessing/preprocessing_layer.py b/keras_hub/src/layers/preprocessing/preprocessing_layer.py index 924c89c23b..5050cd529f 100644 --- a/keras_hub/src/layers/preprocessing/preprocessing_layer.py +++ b/keras_hub/src/layers/preprocessing/preprocessing_layer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.utils.tensor_utils import assert_tf_libs_installed diff --git a/keras_hub/src/layers/preprocessing/random_deletion.py b/keras_hub/src/layers/preprocessing/random_deletion.py index 62225f90a9..ed4411e230 100644 --- a/keras_hub/src/layers/preprocessing/random_deletion.py +++ b/keras_hub/src/layers/preprocessing/random_deletion.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import random from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/layers/preprocessing/random_deletion_test.py b/keras_hub/src/layers/preprocessing/random_deletion_test.py index 109387c37a..1c4616a5b3 100644 --- a/keras_hub/src/layers/preprocessing/random_deletion_test.py +++ b/keras_hub/src/layers/preprocessing/random_deletion_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import tensorflow as tf diff --git a/keras_hub/src/layers/preprocessing/random_swap.py b/keras_hub/src/layers/preprocessing/random_swap.py index 31d1d7bd65..2884ce0e36 100644 --- a/keras_hub/src/layers/preprocessing/random_swap.py +++ b/keras_hub/src/layers/preprocessing/random_swap.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import random from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/layers/preprocessing/random_swap_test.py b/keras_hub/src/layers/preprocessing/random_swap_test.py index dfc9cb6f61..3da0bf1d24 100644 --- a/keras_hub/src/layers/preprocessing/random_swap_test.py +++ b/keras_hub/src/layers/preprocessing/random_swap_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import tensorflow as tf diff --git a/keras_hub/src/layers/preprocessing/resizing_image_converter.py b/keras_hub/src/layers/preprocessing/resizing_image_converter.py index f5e044c886..199cbdceba 100644 --- a/keras_hub/src/layers/preprocessing/resizing_image_converter.py +++ b/keras_hub/src/layers/preprocessing/resizing_image_converter.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/layers/preprocessing/resizing_image_converter_test.py b/keras_hub/src/layers/preprocessing/resizing_image_converter_test.py index b54b0a0d94..052ae9d526 100644 --- a/keras_hub/src/layers/preprocessing/resizing_image_converter_test.py +++ b/keras_hub/src/layers/preprocessing/resizing_image_converter_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops diff --git a/keras_hub/src/layers/preprocessing/start_end_packer.py b/keras_hub/src/layers/preprocessing/start_end_packer.py index 0f218b5e74..f50f09b7f1 100644 --- a/keras_hub/src/layers/preprocessing/start_end_packer.py +++ b/keras_hub/src/layers/preprocessing/start_end_packer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.preprocessing_layer import ( PreprocessingLayer, diff --git a/keras_hub/src/layers/preprocessing/start_end_packer_test.py b/keras_hub/src/layers/preprocessing/start_end_packer_test.py index bf989bd459..3b0ea65a9c 100644 --- a/keras_hub/src/layers/preprocessing/start_end_packer_test.py +++ b/keras_hub/src/layers/preprocessing/start_end_packer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import tensorflow as tf from keras_hub.src.layers.preprocessing.start_end_packer import StartEndPacker diff --git a/keras_hub/src/metrics/__init__.py b/keras_hub/src/metrics/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/metrics/__init__.py +++ b/keras_hub/src/metrics/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/metrics/bleu.py b/keras_hub/src/metrics/bleu.py index c6829e740e..30f3944fb0 100644 --- a/keras_hub/src/metrics/bleu.py +++ b/keras_hub/src/metrics/bleu.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import collections import math diff --git a/keras_hub/src/metrics/bleu_test.py b/keras_hub/src/metrics/bleu_test.py index a33ad51002..e284394da1 100644 --- a/keras_hub/src/metrics/bleu_test.py +++ b/keras_hub/src/metrics/bleu_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import pytest import tensorflow as tf diff --git a/keras_hub/src/metrics/edit_distance.py b/keras_hub/src/metrics/edit_distance.py index edda7ad40d..65f124805c 100644 --- a/keras_hub/src/metrics/edit_distance.py +++ b/keras_hub/src/metrics/edit_distance.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/metrics/edit_distance_test.py b/keras_hub/src/metrics/edit_distance_test.py index 43fd1e93a8..40d754204a 100644 --- a/keras_hub/src/metrics/edit_distance_test.py +++ b/keras_hub/src/metrics/edit_distance_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import pytest import tensorflow as tf diff --git a/keras_hub/src/metrics/perplexity.py b/keras_hub/src/metrics/perplexity.py index db2431c89a..11c8c01667 100644 --- a/keras_hub/src/metrics/perplexity.py +++ b/keras_hub/src/metrics/perplexity.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/metrics/perplexity_test.py b/keras_hub/src/metrics/perplexity_test.py index 6b6589aafa..e5aed9f48f 100644 --- a/keras_hub/src/metrics/perplexity_test.py +++ b/keras_hub/src/metrics/perplexity_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.metrics.perplexity import Perplexity diff --git a/keras_hub/src/metrics/rouge_base.py b/keras_hub/src/metrics/rouge_base.py index 0869d9e960..e243c82548 100644 --- a/keras_hub/src/metrics/rouge_base.py +++ b/keras_hub/src/metrics/rouge_base.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/metrics/rouge_l.py b/keras_hub/src/metrics/rouge_l.py index 619d48452d..18db8ab65b 100644 --- a/keras_hub/src/metrics/rouge_l.py +++ b/keras_hub/src/metrics/rouge_l.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.metrics.rouge_base import RougeBase diff --git a/keras_hub/src/metrics/rouge_l_test.py b/keras_hub/src/metrics/rouge_l_test.py index 7d6c8cd325..267eaa7941 100644 --- a/keras_hub/src/metrics/rouge_l_test.py +++ b/keras_hub/src/metrics/rouge_l_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import tensorflow as tf from keras_hub.src.metrics.rouge_l import RougeL diff --git a/keras_hub/src/metrics/rouge_n.py b/keras_hub/src/metrics/rouge_n.py index e4f2242034..a8eeeccc00 100644 --- a/keras_hub/src/metrics/rouge_n.py +++ b/keras_hub/src/metrics/rouge_n.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.metrics.rouge_base import RougeBase diff --git a/keras_hub/src/metrics/rouge_n_test.py b/keras_hub/src/metrics/rouge_n_test.py index 92a8d8bbc9..b45c823b2b 100644 --- a/keras_hub/src/metrics/rouge_n_test.py +++ b/keras_hub/src/metrics/rouge_n_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import pytest import tensorflow as tf diff --git a/keras_hub/src/models/__init__.py b/keras_hub/src/models/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/__init__.py +++ b/keras_hub/src/models/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/albert/__init__.py b/keras_hub/src/models/albert/__init__.py index 5f507ab1c2..02185685c7 100644 --- a/keras_hub/src/models/albert/__init__.py +++ b/keras_hub/src/models/albert/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.albert.albert_backbone import AlbertBackbone from keras_hub.src.models.albert.albert_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/albert/albert_backbone.py b/keras_hub/src/models/albert/albert_backbone.py index 04730e1a2b..2158d3f74b 100644 --- a/keras_hub/src/models/albert/albert_backbone.py +++ b/keras_hub/src/models/albert/albert_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/albert/albert_backbone_test.py b/keras_hub/src/models/albert/albert_backbone_test.py index 5a120e1b40..fa48f52d31 100644 --- a/keras_hub/src/models/albert/albert_backbone_test.py +++ b/keras_hub/src/models/albert/albert_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/albert/albert_masked_lm.py b/keras_hub/src/models/albert/albert_masked_lm.py index 097a3b827d..650c6fe4ea 100644 --- a/keras_hub/src/models/albert/albert_masked_lm.py +++ b/keras_hub/src/models/albert/albert_masked_lm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/albert/albert_masked_lm_preprocessor.py b/keras_hub/src/models/albert/albert_masked_lm_preprocessor.py index d4f02d4f67..45bf73b25e 100644 --- a/keras_hub/src/models/albert/albert_masked_lm_preprocessor.py +++ b/keras_hub/src/models/albert/albert_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.albert.albert_backbone import AlbertBackbone from keras_hub.src.models.albert.albert_tokenizer import AlbertTokenizer diff --git a/keras_hub/src/models/albert/albert_masked_lm_preprocessor_test.py b/keras_hub/src/models/albert/albert_masked_lm_preprocessor_test.py index e870fa4a63..a137641d79 100644 --- a/keras_hub/src/models/albert/albert_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/albert/albert_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/albert/albert_masked_lm_test.py b/keras_hub/src/models/albert/albert_masked_lm_test.py index d95ad6fa1b..f6e5d7cc62 100644 --- a/keras_hub/src/models/albert/albert_masked_lm_test.py +++ b/keras_hub/src/models/albert/albert_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/albert/albert_presets.py b/keras_hub/src/models/albert/albert_presets.py index b98d7373f9..fc7b169606 100644 --- a/keras_hub/src/models/albert/albert_presets.py +++ b/keras_hub/src/models/albert/albert_presets.py @@ -1,19 +1,5 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """ALBERT model preset configurations.""" - backbone_presets = { "albert_base_en_uncased": { "metadata": { diff --git a/keras_hub/src/models/albert/albert_text_classifier.py b/keras_hub/src/models/albert/albert_text_classifier.py index 46e583c468..ef994647d9 100644 --- a/keras_hub/src/models/albert/albert_text_classifier.py +++ b/keras_hub/src/models/albert/albert_text_classifier.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/albert/albert_text_classifier_preprocessor.py b/keras_hub/src/models/albert/albert_text_classifier_preprocessor.py index 811f0f3312..a99cdd4f00 100644 --- a/keras_hub/src/models/albert/albert_text_classifier_preprocessor.py +++ b/keras_hub/src/models/albert/albert_text_classifier_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.albert.albert_backbone import AlbertBackbone from keras_hub.src.models.albert.albert_tokenizer import AlbertTokenizer diff --git a/keras_hub/src/models/albert/albert_text_classifier_preprocessor_test.py b/keras_hub/src/models/albert/albert_text_classifier_preprocessor_test.py index 8f1ab0a93b..878b2d02c6 100644 --- a/keras_hub/src/models/albert/albert_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/albert/albert_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/albert/albert_text_classifier_test.py b/keras_hub/src/models/albert/albert_text_classifier_test.py index 40df84baec..3d6413ff99 100644 --- a/keras_hub/src/models/albert/albert_text_classifier_test.py +++ b/keras_hub/src/models/albert/albert_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/albert/albert_tokenizer.py b/keras_hub/src/models/albert/albert_tokenizer.py index 0e54c5078f..cdf2878ca3 100644 --- a/keras_hub/src/models/albert/albert_tokenizer.py +++ b/keras_hub/src/models/albert/albert_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.albert.albert_backbone import AlbertBackbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/albert/albert_tokenizer_test.py b/keras_hub/src/models/albert/albert_tokenizer_test.py index 9699207c96..20d5b0f818 100644 --- a/keras_hub/src/models/albert/albert_tokenizer_test.py +++ b/keras_hub/src/models/albert/albert_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/backbone.py b/keras_hub/src/models/backbone.py index 00481bd9eb..fa065a3df5 100644 --- a/keras_hub/src/models/backbone.py +++ b/keras_hub/src/models/backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import keras diff --git a/keras_hub/src/models/backbone_test.py b/keras_hub/src/models/backbone_test.py index 8822fe3bf5..137ffde53f 100644 --- a/keras_hub/src/models/backbone_test.py +++ b/keras_hub/src/models/backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os import numpy as np diff --git a/keras_hub/src/models/bart/__init__.py b/keras_hub/src/models/bart/__init__.py index 80b6071a4a..9500033f0a 100644 --- a/keras_hub/src/models/bart/__init__.py +++ b/keras_hub/src/models/bart/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.bart.bart_backbone import BartBackbone from keras_hub.src.models.bart.bart_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/bart/bart_backbone.py b/keras_hub/src/models/bart/bart_backbone.py index f15c6a8a6a..a301f96c2f 100644 --- a/keras_hub/src/models/bart/bart_backbone.py +++ b/keras_hub/src/models/bart/bart_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bart/bart_backbone_test.py b/keras_hub/src/models/bart/bart_backbone_test.py index d51827dbe2..bb53d784b8 100644 --- a/keras_hub/src/models/bart/bart_backbone_test.py +++ b/keras_hub/src/models/bart/bart_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/bart/bart_presets.py b/keras_hub/src/models/bart/bart_presets.py index 1e72eee9a7..1df8a94bee 100644 --- a/keras_hub/src/models/bart/bart_presets.py +++ b/keras_hub/src/models/bart/bart_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """BART model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/bart/bart_seq_2_seq_lm.py b/keras_hub/src/models/bart/bart_seq_2_seq_lm.py index 5adc45d61c..d52c7f5454 100644 --- a/keras_hub/src/models/bart/bart_seq_2_seq_lm.py +++ b/keras_hub/src/models/bart/bart_seq_2_seq_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor.py b/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor.py index 478ee1a269..a7662bed6c 100644 --- a/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor.py +++ b/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.start_end_packer import StartEndPacker from keras_hub.src.models.bart.bart_backbone import BartBackbone diff --git a/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor_test.py b/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor_test.py index 21b329f134..dbbb934e3d 100644 --- a/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor_test.py +++ b/keras_hub/src/models/bart/bart_seq_2_seq_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bart.bart_seq_2_seq_lm_preprocessor import ( diff --git a/keras_hub/src/models/bart/bart_seq_2_seq_lm_test.py b/keras_hub/src/models/bart/bart_seq_2_seq_lm_test.py index 494e4116d0..f525908b67 100644 --- a/keras_hub/src/models/bart/bart_seq_2_seq_lm_test.py +++ b/keras_hub/src/models/bart/bart_seq_2_seq_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/bart/bart_tokenizer.py b/keras_hub/src/models/bart/bart_tokenizer.py index 4cf53aa9b3..e48332436f 100644 --- a/keras_hub/src/models/bart/bart_tokenizer.py +++ b/keras_hub/src/models/bart/bart_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.bart.bart_backbone import BartBackbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/bart/bart_tokenizer_test.py b/keras_hub/src/models/bart/bart_tokenizer_test.py index 633618976d..d017b713eb 100644 --- a/keras_hub/src/models/bart/bart_tokenizer_test.py +++ b/keras_hub/src/models/bart/bart_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bart.bart_tokenizer import BartTokenizer diff --git a/keras_hub/src/models/bert/__init__.py b/keras_hub/src/models/bert/__init__.py index 0ee5feb84a..0f7519e278 100644 --- a/keras_hub/src/models/bert/__init__.py +++ b/keras_hub/src/models/bert/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.bert.bert_backbone import BertBackbone from keras_hub.src.models.bert.bert_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/bert/bert_backbone.py b/keras_hub/src/models/bert/bert_backbone.py index df00172b8b..8ea51dfcf9 100644 --- a/keras_hub/src/models/bert/bert_backbone.py +++ b/keras_hub/src/models/bert/bert_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bert/bert_backbone_test.py b/keras_hub/src/models/bert/bert_backbone_test.py index 91a703a08f..0dcb1f7de5 100644 --- a/keras_hub/src/models/bert/bert_backbone_test.py +++ b/keras_hub/src/models/bert/bert_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/bert/bert_masked_lm.py b/keras_hub/src/models/bert/bert_masked_lm.py index 4bbe6a595a..b534978d41 100644 --- a/keras_hub/src/models/bert/bert_masked_lm.py +++ b/keras_hub/src/models/bert/bert_masked_lm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bert/bert_masked_lm_preprocessor.py b/keras_hub/src/models/bert/bert_masked_lm_preprocessor.py index 84aa0dea86..f62245b811 100644 --- a/keras_hub/src/models/bert/bert_masked_lm_preprocessor.py +++ b/keras_hub/src/models/bert/bert_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.bert.bert_backbone import BertBackbone from keras_hub.src.models.bert.bert_tokenizer import BertTokenizer diff --git a/keras_hub/src/models/bert/bert_masked_lm_preprocessor_test.py b/keras_hub/src/models/bert/bert_masked_lm_preprocessor_test.py index c6076d701d..d1780a9d7d 100644 --- a/keras_hub/src/models/bert/bert_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/bert/bert_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bert.bert_masked_lm_preprocessor import ( diff --git a/keras_hub/src/models/bert/bert_masked_lm_test.py b/keras_hub/src/models/bert/bert_masked_lm_test.py index 67e92e6bcf..38606222d6 100644 --- a/keras_hub/src/models/bert/bert_masked_lm_test.py +++ b/keras_hub/src/models/bert/bert_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bert.bert_backbone import BertBackbone diff --git a/keras_hub/src/models/bert/bert_presets.py b/keras_hub/src/models/bert/bert_presets.py index b4547e259c..0789ca78fc 100644 --- a/keras_hub/src/models/bert/bert_presets.py +++ b/keras_hub/src/models/bert/bert_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """BERT model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/bert/bert_text_classifier.py b/keras_hub/src/models/bert/bert_text_classifier.py index 0f21e0c82a..d18eda5932 100644 --- a/keras_hub/src/models/bert/bert_text_classifier.py +++ b/keras_hub/src/models/bert/bert_text_classifier.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bert/bert_text_classifier_preprocessor.py b/keras_hub/src/models/bert/bert_text_classifier_preprocessor.py index 8239d300f9..e794436558 100644 --- a/keras_hub/src/models/bert/bert_text_classifier_preprocessor.py +++ b/keras_hub/src/models/bert/bert_text_classifier_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.bert.bert_backbone import BertBackbone from keras_hub.src.models.bert.bert_tokenizer import BertTokenizer diff --git a/keras_hub/src/models/bert/bert_text_classifier_preprocessor_test.py b/keras_hub/src/models/bert/bert_text_classifier_preprocessor_test.py index 53bd8727f2..30ef3823f6 100644 --- a/keras_hub/src/models/bert/bert_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/bert/bert_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bert.bert_text_classifier_preprocessor import ( diff --git a/keras_hub/src/models/bert/bert_text_classifier_test.py b/keras_hub/src/models/bert/bert_text_classifier_test.py index feee2c3a94..d72159d78f 100644 --- a/keras_hub/src/models/bert/bert_text_classifier_test.py +++ b/keras_hub/src/models/bert/bert_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bert.bert_backbone import BertBackbone diff --git a/keras_hub/src/models/bert/bert_tokenizer.py b/keras_hub/src/models/bert/bert_tokenizer.py index 7bb5182863..a00e422d3b 100644 --- a/keras_hub/src/models/bert/bert_tokenizer.py +++ b/keras_hub/src/models/bert/bert_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.bert.bert_backbone import BertBackbone from keras_hub.src.tokenizers.word_piece_tokenizer import WordPieceTokenizer diff --git a/keras_hub/src/models/bert/bert_tokenizer_test.py b/keras_hub/src/models/bert/bert_tokenizer_test.py index 5b8e3e754c..193237a688 100644 --- a/keras_hub/src/models/bert/bert_tokenizer_test.py +++ b/keras_hub/src/models/bert/bert_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bert.bert_tokenizer import BertTokenizer diff --git a/keras_hub/src/models/bloom/__init__.py b/keras_hub/src/models/bloom/__init__.py index 3f5897cf81..52a3428af1 100644 --- a/keras_hub/src/models/bloom/__init__.py +++ b/keras_hub/src/models/bloom/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.bloom.bloom_backbone import BloomBackbone from keras_hub.src.models.bloom.bloom_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/bloom/bloom_attention.py b/keras_hub/src/models/bloom/bloom_attention.py index 29199904a3..19b6ca5f89 100644 --- a/keras_hub/src/models/bloom/bloom_attention.py +++ b/keras_hub/src/models/bloom/bloom_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/models/bloom/bloom_backbone.py b/keras_hub/src/models/bloom/bloom_backbone.py index f8c9a1eada..ab2a9484e1 100644 --- a/keras_hub/src/models/bloom/bloom_backbone.py +++ b/keras_hub/src/models/bloom/bloom_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bloom/bloom_backbone_test.py b/keras_hub/src/models/bloom/bloom_backbone_test.py index 75fcc02b29..6b1eaf8623 100644 --- a/keras_hub/src/models/bloom/bloom_backbone_test.py +++ b/keras_hub/src/models/bloom/bloom_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/bloom/bloom_causal_lm.py b/keras_hub/src/models/bloom/bloom_causal_lm.py index f047762182..d167bd5cc5 100644 --- a/keras_hub/src/models/bloom/bloom_causal_lm.py +++ b/keras_hub/src/models/bloom/bloom_causal_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor.py b/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor.py index de3dd90a0b..b0e1e67d3d 100644 --- a/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor.py +++ b/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.bloom.bloom_backbone import BloomBackbone from keras_hub.src.models.bloom.bloom_tokenizer import BloomTokenizer diff --git a/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor_test.py b/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor_test.py index 6b59132653..c8d13f1e70 100644 --- a/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/bloom/bloom_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bloom.bloom_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/bloom/bloom_causal_lm_test.py b/keras_hub/src/models/bloom/bloom_causal_lm_test.py index 7f4119c264..ada3d8eeb1 100644 --- a/keras_hub/src/models/bloom/bloom_causal_lm_test.py +++ b/keras_hub/src/models/bloom/bloom_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/bloom/bloom_decoder.py b/keras_hub/src/models/bloom/bloom_decoder.py index 86a456a8b8..c0842d58bd 100644 --- a/keras_hub/src/models/bloom/bloom_decoder.py +++ b/keras_hub/src/models/bloom/bloom_decoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. # import keras # from keras import ops import keras diff --git a/keras_hub/src/models/bloom/bloom_presets.py b/keras_hub/src/models/bloom/bloom_presets.py index e34554ed0d..8ae778522b 100644 --- a/keras_hub/src/models/bloom/bloom_presets.py +++ b/keras_hub/src/models/bloom/bloom_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """BLOOM model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/bloom/bloom_tokenizer.py b/keras_hub/src/models/bloom/bloom_tokenizer.py index a5b470f16e..02b3692334 100644 --- a/keras_hub/src/models/bloom/bloom_tokenizer.py +++ b/keras_hub/src/models/bloom/bloom_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.bloom.bloom_backbone import BloomBackbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/bloom/bloom_tokenizer_test.py b/keras_hub/src/models/bloom/bloom_tokenizer_test.py index 32984c92f8..5180c2a8dd 100644 --- a/keras_hub/src/models/bloom/bloom_tokenizer_test.py +++ b/keras_hub/src/models/bloom/bloom_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.bloom.bloom_tokenizer import BloomTokenizer diff --git a/keras_hub/src/models/causal_lm.py b/keras_hub/src/models/causal_lm.py index 56b93cd78e..c86bd7be9f 100644 --- a/keras_hub/src/models/causal_lm.py +++ b/keras_hub/src/models/causal_lm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import itertools from functools import partial diff --git a/keras_hub/src/models/causal_lm_preprocessor.py b/keras_hub/src/models/causal_lm_preprocessor.py index 0963669c1e..3284e312cd 100644 --- a/keras_hub/src/models/causal_lm_preprocessor.py +++ b/keras_hub/src/models/causal_lm_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/causal_lm_preprocessor_test.py b/keras_hub/src/models/causal_lm_preprocessor_test.py index ce193907d3..8eb411a181 100644 --- a/keras_hub/src/models/causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/causal_lm_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.bert.bert_tokenizer import BertTokenizer diff --git a/keras_hub/src/models/clip/__init__.py b/keras_hub/src/models/clip/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/clip/__init__.py +++ b/keras_hub/src/models/clip/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/clip/clip_encoder_block.py b/keras_hub/src/models/clip/clip_encoder_block.py index 863b705515..522b9a5b64 100644 --- a/keras_hub/src/models/clip/clip_encoder_block.py +++ b/keras_hub/src/models/clip/clip_encoder_block.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras import dtype_policies from keras import layers from keras import ops diff --git a/keras_hub/src/models/clip/clip_preprocessor.py b/keras_hub/src/models/clip/clip_preprocessor.py index 454afc87f7..2b3e433230 100644 --- a/keras_hub/src/models/clip/clip_preprocessor.py +++ b/keras_hub/src/models/clip/clip_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/clip/clip_preprocessor_test.py b/keras_hub/src/models/clip/clip_preprocessor_test.py index 733150ba3b..e7ab87a156 100644 --- a/keras_hub/src/models/clip/clip_preprocessor_test.py +++ b/keras_hub/src/models/clip/clip_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.clip.clip_preprocessor import CLIPPreprocessor diff --git a/keras_hub/src/models/clip/clip_text_encoder.py b/keras_hub/src/models/clip/clip_text_encoder.py index 0376777bb6..208acfddc7 100644 --- a/keras_hub/src/models/clip/clip_text_encoder.py +++ b/keras_hub/src/models/clip/clip_text_encoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras import layers from keras_hub.src.layers.modeling.token_and_position_embedding import ( diff --git a/keras_hub/src/models/clip/clip_tokenizer.py b/keras_hub/src/models/clip/clip_tokenizer.py index 5917b00906..76a0eb01b2 100644 --- a/keras_hub/src/models/clip/clip_tokenizer.py +++ b/keras_hub/src/models/clip/clip_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer from keras_hub.src.tokenizers.byte_pair_tokenizer import convert_to_ragged_batch diff --git a/keras_hub/src/models/clip/clip_tokenizer_test.py b/keras_hub/src/models/clip/clip_tokenizer_test.py index 8ecea96a58..6b40b92074 100644 --- a/keras_hub/src/models/clip/clip_tokenizer_test.py +++ b/keras_hub/src/models/clip/clip_tokenizer_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.clip.clip_tokenizer import CLIPTokenizer diff --git a/keras_hub/src/models/csp_darknet/__init__.py b/keras_hub/src/models/csp_darknet/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/csp_darknet/__init__.py +++ b/keras_hub/src/models/csp_darknet/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/csp_darknet/csp_darknet_backbone.py b/keras_hub/src/models/csp_darknet/csp_darknet_backbone.py index bf12c9d7f3..eb709e2550 100644 --- a/keras_hub/src/models/csp_darknet/csp_darknet_backbone.py +++ b/keras_hub/src/models/csp_darknet/csp_darknet_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import layers diff --git a/keras_hub/src/models/csp_darknet/csp_darknet_backbone_test.py b/keras_hub/src/models/csp_darknet/csp_darknet_backbone_test.py index 5eb960e3ba..35b601987d 100644 --- a/keras_hub/src/models/csp_darknet/csp_darknet_backbone_test.py +++ b/keras_hub/src/models/csp_darknet/csp_darknet_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier.py b/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier.py index 4a7d4719e3..7485204b7a 100644 --- a/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier.py +++ b/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier_test.py b/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier_test.py index c67685b763..78eddcbbac 100644 --- a/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier_test.py +++ b/keras_hub/src/models/csp_darknet/csp_darknet_image_classifier_test.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest diff --git a/keras_hub/src/models/deberta_v3/__init__.py b/keras_hub/src/models/deberta_v3/__init__.py index 2d099d5d43..bc3af5b7d8 100644 --- a/keras_hub/src/models/deberta_v3/__init__.py +++ b/keras_hub/src/models/deberta_v3/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.deberta_v3.deberta_v3_backbone import ( DebertaV3Backbone, ) diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_backbone.py b/keras_hub/src/models/deberta_v3/deberta_v3_backbone.py index 57ac9717da..872a5d4895 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_backbone.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_backbone_test.py b/keras_hub/src/models/deberta_v3/deberta_v3_backbone_test.py index 9f3a4d4f7e..914055f0a3 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_backbone_test.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm.py b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm.py index e705f3a056..ee4fc34ea7 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor.py b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor.py index 7244c5ffcd..6e7465d443 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor_test.py b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor_test.py index 390a7ce606..61cdd75d9a 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_test.py b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_test.py index 1d68edfc6a..a5e3d738f8 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_test.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_presets.py b/keras_hub/src/models/deberta_v3/deberta_v3_presets.py index 8e074fb7b1..d2e6a3eacf 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_presets.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DeBERTa model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier.py b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier.py index aaad4122f7..b8d4c1fde9 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor.py b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor.py index e19c6bc346..284ec2accc 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor_test.py b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor_test.py index 58da798dc2..44b4875a59 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_test.py b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_test.py index caffb40711..246d03ba88 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_test.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer.py b/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer.py index e6b1936967..e9e392dc52 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.deberta_v3.deberta_v3_backbone import ( DebertaV3Backbone, diff --git a/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer_test.py b/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer_test.py index f507e55ade..088b7f8162 100644 --- a/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer_test.py +++ b/keras_hub/src/models/deberta_v3/deberta_v3_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/deberta_v3/disentangled_attention_encoder.py b/keras_hub/src/models/deberta_v3/disentangled_attention_encoder.py index 6855f8aa96..d4af3f6936 100644 --- a/keras_hub/src/models/deberta_v3/disentangled_attention_encoder.py +++ b/keras_hub/src/models/deberta_v3/disentangled_attention_encoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.models.deberta_v3.disentangled_self_attention import ( diff --git a/keras_hub/src/models/deberta_v3/disentangled_self_attention.py b/keras_hub/src/models/deberta_v3/disentangled_self_attention.py index f95d40b3fd..bc2d66f912 100644 --- a/keras_hub/src/models/deberta_v3/disentangled_self_attention.py +++ b/keras_hub/src/models/deberta_v3/disentangled_self_attention.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import math import keras diff --git a/keras_hub/src/models/deberta_v3/relative_embedding.py b/keras_hub/src/models/deberta_v3/relative_embedding.py index 7b19ba6b5a..efa2314558 100644 --- a/keras_hub/src/models/deberta_v3/relative_embedding.py +++ b/keras_hub/src/models/deberta_v3/relative_embedding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/densenet/__init__.py b/keras_hub/src/models/densenet/__init__.py index 4e0bff2a14..f5aec62a1a 100644 --- a/keras_hub/src/models/densenet/__init__.py +++ b/keras_hub/src/models/densenet/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.densenet.densenet_backbone import DenseNetBackbone from keras_hub.src.models.densenet.densenet_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/densenet/densenet_backbone.py b/keras_hub/src/models/densenet/densenet_backbone.py index fc67ba90e9..103463b699 100644 --- a/keras_hub/src/models/densenet/densenet_backbone.py +++ b/keras_hub/src/models/densenet/densenet_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/densenet/densenet_backbone_test.py b/keras_hub/src/models/densenet/densenet_backbone_test.py index f8120f4c55..e8288438ed 100644 --- a/keras_hub/src/models/densenet/densenet_backbone_test.py +++ b/keras_hub/src/models/densenet/densenet_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/densenet/densenet_image_classifier.py b/keras_hub/src/models/densenet/densenet_image_classifier.py index a8dc12e4ae..64f28521a3 100644 --- a/keras_hub/src/models/densenet/densenet_image_classifier.py +++ b/keras_hub/src/models/densenet/densenet_image_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/densenet/densenet_image_classifier_test.py b/keras_hub/src/models/densenet/densenet_image_classifier_test.py index 7d4bacf515..481005ba7e 100644 --- a/keras_hub/src/models/densenet/densenet_image_classifier_test.py +++ b/keras_hub/src/models/densenet/densenet_image_classifier_test.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest diff --git a/keras_hub/src/models/distil_bert/__init__.py b/keras_hub/src/models/distil_bert/__init__.py index da9a8ed9c3..dc02f35b36 100644 --- a/keras_hub/src/models/distil_bert/__init__.py +++ b/keras_hub/src/models/distil_bert/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.distil_bert.distil_bert_backbone import ( DistilBertBackbone, ) diff --git a/keras_hub/src/models/distil_bert/distil_bert_backbone.py b/keras_hub/src/models/distil_bert/distil_bert_backbone.py index 6e31d38cad..54309e9b37 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_backbone.py +++ b/keras_hub/src/models/distil_bert/distil_bert_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/distil_bert/distil_bert_backbone_test.py b/keras_hub/src/models/distil_bert/distil_bert_backbone_test.py index 240564c7bb..bceb1d1032 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_backbone_test.py +++ b/keras_hub/src/models/distil_bert/distil_bert_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/distil_bert/distil_bert_masked_lm.py b/keras_hub/src/models/distil_bert/distil_bert_masked_lm.py index 0a848ece06..feb94c62f2 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_masked_lm.py +++ b/keras_hub/src/models/distil_bert/distil_bert_masked_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor.py b/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor.py index 52be2615b8..6f0a70aaf9 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor.py +++ b/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor_test.py b/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor_test.py index d51900b534..7b2ab4e609 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/distil_bert/distil_bert_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.distil_bert.distil_bert_masked_lm_preprocessor import ( diff --git a/keras_hub/src/models/distil_bert/distil_bert_masked_lm_test.py b/keras_hub/src/models/distil_bert/distil_bert_masked_lm_test.py index be1dca5ffd..a6e3a730b3 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_masked_lm_test.py +++ b/keras_hub/src/models/distil_bert/distil_bert_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.distil_bert.distil_bert_backbone import ( diff --git a/keras_hub/src/models/distil_bert/distil_bert_presets.py b/keras_hub/src/models/distil_bert/distil_bert_presets.py index 97a94007d9..8117e6fab9 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_presets.py +++ b/keras_hub/src/models/distil_bert/distil_bert_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """DistilBERT model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/distil_bert/distil_bert_text_classifier.py b/keras_hub/src/models/distil_bert/distil_bert_text_classifier.py index 723de49945..a161f59d40 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_text_classifier.py +++ b/keras_hub/src/models/distil_bert/distil_bert_text_classifier.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor.py b/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor.py index 434da4624e..e014addef9 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor.py +++ b/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor_test.py b/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor_test.py index 57f37ff098..5a62a86248 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/distil_bert/distil_bert_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.distil_bert.distil_bert_text_classifier_preprocessor import ( diff --git a/keras_hub/src/models/distil_bert/distil_bert_text_classifier_test.py b/keras_hub/src/models/distil_bert/distil_bert_text_classifier_test.py index d0f6f75295..b84bb63a10 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_text_classifier_test.py +++ b/keras_hub/src/models/distil_bert/distil_bert_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.distil_bert.distil_bert_backbone import ( diff --git a/keras_hub/src/models/distil_bert/distil_bert_tokenizer.py b/keras_hub/src/models/distil_bert/distil_bert_tokenizer.py index 72f4ad50a5..b4e37d1d52 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_tokenizer.py +++ b/keras_hub/src/models/distil_bert/distil_bert_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.distil_bert.distil_bert_backbone import ( DistilBertBackbone, diff --git a/keras_hub/src/models/distil_bert/distil_bert_tokenizer_test.py b/keras_hub/src/models/distil_bert/distil_bert_tokenizer_test.py index 5b1ac95940..a8dd00ab27 100644 --- a/keras_hub/src/models/distil_bert/distil_bert_tokenizer_test.py +++ b/keras_hub/src/models/distil_bert/distil_bert_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.distil_bert.distil_bert_tokenizer import ( diff --git a/keras_hub/src/models/efficientnet/__init__.py b/keras_hub/src/models/efficientnet/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/efficientnet/__init__.py +++ b/keras_hub/src/models/efficientnet/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/efficientnet/efficientnet_backbone.py b/keras_hub/src/models/efficientnet/efficientnet_backbone.py index 405ea7bce0..059207ab5c 100644 --- a/keras_hub/src/models/efficientnet/efficientnet_backbone.py +++ b/keras_hub/src/models/efficientnet/efficientnet_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/models/efficientnet/efficientnet_backbone_test.py b/keras_hub/src/models/efficientnet/efficientnet_backbone_test.py index 918bc8087d..19e0898437 100644 --- a/keras_hub/src/models/efficientnet/efficientnet_backbone_test.py +++ b/keras_hub/src/models/efficientnet/efficientnet_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import pytest from absl.testing import parameterized diff --git a/keras_hub/src/models/efficientnet/fusedmbconv.py b/keras_hub/src/models/efficientnet/fusedmbconv.py index 53d4227f50..f340aba0b1 100644 --- a/keras_hub/src/models/efficientnet/fusedmbconv.py +++ b/keras_hub/src/models/efficientnet/fusedmbconv.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras BN_AXIS = 3 diff --git a/keras_hub/src/models/efficientnet/fusedmbconv_test.py b/keras_hub/src/models/efficientnet/fusedmbconv_test.py index 1d47082f98..b12f729ddc 100644 --- a/keras_hub/src/models/efficientnet/fusedmbconv_test.py +++ b/keras_hub/src/models/efficientnet/fusedmbconv_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.models.efficientnet.fusedmbconv import FusedMBConvBlock diff --git a/keras_hub/src/models/efficientnet/mbconv.py b/keras_hub/src/models/efficientnet/mbconv.py index ff38162fef..08c3d437a4 100644 --- a/keras_hub/src/models/efficientnet/mbconv.py +++ b/keras_hub/src/models/efficientnet/mbconv.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras BN_AXIS = 3 diff --git a/keras_hub/src/models/efficientnet/mbconv_test.py b/keras_hub/src/models/efficientnet/mbconv_test.py index 9e84defd70..ea92c7a9c6 100644 --- a/keras_hub/src/models/efficientnet/mbconv_test.py +++ b/keras_hub/src/models/efficientnet/mbconv_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.models.efficientnet.mbconv import MBConvBlock diff --git a/keras_hub/src/models/electra/__init__.py b/keras_hub/src/models/electra/__init__.py index 8b1baa41af..ad7bc966e4 100644 --- a/keras_hub/src/models/electra/__init__.py +++ b/keras_hub/src/models/electra/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.electra.electra_backbone import ElectraBackbone from keras_hub.src.models.electra.electra_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/electra/electra_backbone.py b/keras_hub/src/models/electra/electra_backbone.py index d4c7571661..1e25327fa4 100644 --- a/keras_hub/src/models/electra/electra_backbone.py +++ b/keras_hub/src/models/electra/electra_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/electra/electra_backbone_test.py b/keras_hub/src/models/electra/electra_backbone_test.py index 4d6e77c7f0..f5a5397dc5 100644 --- a/keras_hub/src/models/electra/electra_backbone_test.py +++ b/keras_hub/src/models/electra/electra_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/electra/electra_presets.py b/keras_hub/src/models/electra/electra_presets.py index 51e011e25b..d559980370 100644 --- a/keras_hub/src/models/electra/electra_presets.py +++ b/keras_hub/src/models/electra/electra_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """ELECTRA model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/electra/electra_tokenizer.py b/keras_hub/src/models/electra/electra_tokenizer.py index 1d64463a65..94d3208c3b 100644 --- a/keras_hub/src/models/electra/electra_tokenizer.py +++ b/keras_hub/src/models/electra/electra_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.electra.electra_backbone import ElectraBackbone from keras_hub.src.tokenizers.word_piece_tokenizer import WordPieceTokenizer diff --git a/keras_hub/src/models/electra/electra_tokenizer_test.py b/keras_hub/src/models/electra/electra_tokenizer_test.py index 1c2c2a4ea2..10fb1afc9d 100644 --- a/keras_hub/src/models/electra/electra_tokenizer_test.py +++ b/keras_hub/src/models/electra/electra_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.electra.electra_tokenizer import ElectraTokenizer diff --git a/keras_hub/src/models/f_net/__init__.py b/keras_hub/src/models/f_net/__init__.py index be13d2bbd2..c544edea93 100644 --- a/keras_hub/src/models/f_net/__init__.py +++ b/keras_hub/src/models/f_net/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.f_net.f_net_backbone import FNetBackbone from keras_hub.src.models.f_net.f_net_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/f_net/f_net_backbone.py b/keras_hub/src/models/f_net/f_net_backbone.py index 193d87fe1b..f4e7cc7e62 100644 --- a/keras_hub/src/models/f_net/f_net_backbone.py +++ b/keras_hub/src/models/f_net/f_net_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/f_net/f_net_backbone_test.py b/keras_hub/src/models/f_net/f_net_backbone_test.py index c86629cd06..12aa2facad 100644 --- a/keras_hub/src/models/f_net/f_net_backbone_test.py +++ b/keras_hub/src/models/f_net/f_net_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/f_net/f_net_masked_lm.py b/keras_hub/src/models/f_net/f_net_masked_lm.py index 799ef810aa..3caa8774c3 100644 --- a/keras_hub/src/models/f_net/f_net_masked_lm.py +++ b/keras_hub/src/models/f_net/f_net_masked_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor.py b/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor.py index 5af51e6135..8f3123b7c8 100644 --- a/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor.py +++ b/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor_test.py b/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor_test.py index 32af388bba..2457b5b861 100644 --- a/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/f_net/f_net_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/f_net/f_net_masked_lm_test.py b/keras_hub/src/models/f_net/f_net_masked_lm_test.py index 78da71c2f8..279fab9fc0 100644 --- a/keras_hub/src/models/f_net/f_net_masked_lm_test.py +++ b/keras_hub/src/models/f_net/f_net_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/f_net/f_net_presets.py b/keras_hub/src/models/f_net/f_net_presets.py index 18c2832927..ca71fc6375 100644 --- a/keras_hub/src/models/f_net/f_net_presets.py +++ b/keras_hub/src/models/f_net/f_net_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """FNet model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/f_net/f_net_text_classifier.py b/keras_hub/src/models/f_net/f_net_text_classifier.py index 40f30d9984..c3be3fd3f3 100644 --- a/keras_hub/src/models/f_net/f_net_text_classifier.py +++ b/keras_hub/src/models/f_net/f_net_text_classifier.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor.py b/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor.py index 3ea7e8f27f..e78b3ec971 100644 --- a/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor.py +++ b/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor_test.py b/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor_test.py index c6cec7afe4..de992a6cb7 100644 --- a/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/f_net/f_net_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/f_net/f_net_text_classifier_test.py b/keras_hub/src/models/f_net/f_net_text_classifier_test.py index 2e2911e9fe..4658e795f6 100644 --- a/keras_hub/src/models/f_net/f_net_text_classifier_test.py +++ b/keras_hub/src/models/f_net/f_net_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/f_net/f_net_tokenizer.py b/keras_hub/src/models/f_net/f_net_tokenizer.py index 9f49bc4a28..6ed7fd079b 100644 --- a/keras_hub/src/models/f_net/f_net_tokenizer.py +++ b/keras_hub/src/models/f_net/f_net_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.f_net.f_net_backbone import FNetBackbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/f_net/f_net_tokenizer_test.py b/keras_hub/src/models/f_net/f_net_tokenizer_test.py index f9e74c1231..b6fd5c6764 100644 --- a/keras_hub/src/models/f_net/f_net_tokenizer_test.py +++ b/keras_hub/src/models/f_net/f_net_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/falcon/__init__.py b/keras_hub/src/models/falcon/__init__.py index 07e9ae03c1..fdd0f6a161 100644 --- a/keras_hub/src/models/falcon/__init__.py +++ b/keras_hub/src/models/falcon/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.falcon.falcon_backbone import FalconBackbone from keras_hub.src.models.falcon.falcon_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/falcon/falcon_attention.py b/keras_hub/src/models/falcon/falcon_attention.py index 775bc3b928..b150a1ca89 100644 --- a/keras_hub/src/models/falcon/falcon_attention.py +++ b/keras_hub/src/models/falcon/falcon_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/models/falcon/falcon_backbone.py b/keras_hub/src/models/falcon/falcon_backbone.py index 0235371570..e87aa8b824 100644 --- a/keras_hub/src/models/falcon/falcon_backbone.py +++ b/keras_hub/src/models/falcon/falcon_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/falcon/falcon_backbone_test.py b/keras_hub/src/models/falcon/falcon_backbone_test.py index dc56268700..e46a3bd97b 100644 --- a/keras_hub/src/models/falcon/falcon_backbone_test.py +++ b/keras_hub/src/models/falcon/falcon_backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras import ops diff --git a/keras_hub/src/models/falcon/falcon_causal_lm.py b/keras_hub/src/models/falcon/falcon_causal_lm.py index 13374d6f90..acda9a3eaf 100644 --- a/keras_hub/src/models/falcon/falcon_causal_lm.py +++ b/keras_hub/src/models/falcon/falcon_causal_lm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor.py b/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor.py index 7567c92b5b..d0fec65053 100644 --- a/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor.py +++ b/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.falcon.falcon_backbone import FalconBackbone diff --git a/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor_test.py b/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor_test.py index aaf945e2f9..42fd3e1206 100644 --- a/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/falcon/falcon_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.falcon.falcon_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/falcon/falcon_causal_lm_test.py b/keras_hub/src/models/falcon/falcon_causal_lm_test.py index 5b434bae76..393f8a8e97 100644 --- a/keras_hub/src/models/falcon/falcon_causal_lm_test.py +++ b/keras_hub/src/models/falcon/falcon_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/falcon/falcon_presets.py b/keras_hub/src/models/falcon/falcon_presets.py index b562902c86..a19e73073f 100644 --- a/keras_hub/src/models/falcon/falcon_presets.py +++ b/keras_hub/src/models/falcon/falcon_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Falcon model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/falcon/falcon_tokenizer.py b/keras_hub/src/models/falcon/falcon_tokenizer.py index bd6730bc83..b1d8b9d033 100644 --- a/keras_hub/src/models/falcon/falcon_tokenizer.py +++ b/keras_hub/src/models/falcon/falcon_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.falcon.falcon_backbone import FalconBackbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/falcon/falcon_tokenizer_test.py b/keras_hub/src/models/falcon/falcon_tokenizer_test.py index 1a8f7d4dfb..baae3c06f5 100644 --- a/keras_hub/src/models/falcon/falcon_tokenizer_test.py +++ b/keras_hub/src/models/falcon/falcon_tokenizer_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.falcon.falcon_tokenizer import FalconTokenizer diff --git a/keras_hub/src/models/falcon/falcon_transformer_decoder.py b/keras_hub/src/models/falcon/falcon_transformer_decoder.py index b49011f9b7..7eaca5f22e 100644 --- a/keras_hub/src/models/falcon/falcon_transformer_decoder.py +++ b/keras_hub/src/models/falcon/falcon_transformer_decoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/models/feature_pyramid_backbone.py b/keras_hub/src/models/feature_pyramid_backbone.py index 1d0ad54cc2..c2569a6c01 100644 --- a/keras_hub/src/models/feature_pyramid_backbone.py +++ b/keras_hub/src/models/feature_pyramid_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/gemma/__init__.py b/keras_hub/src/models/gemma/__init__.py index 951bb6194e..286a20a9c1 100644 --- a/keras_hub/src/models/gemma/__init__.py +++ b/keras_hub/src/models/gemma/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.gemma.gemma_backbone import GemmaBackbone from keras_hub.src.models.gemma.gemma_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/gemma/gemma_attention.py b/keras_hub/src/models/gemma/gemma_attention.py index 5a54cebcd0..83b6f537a2 100644 --- a/keras_hub/src/models/gemma/gemma_attention.py +++ b/keras_hub/src/models/gemma/gemma_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras import numpy as np from keras import ops diff --git a/keras_hub/src/models/gemma/gemma_backbone.py b/keras_hub/src/models/gemma/gemma_backbone.py index b62263b911..c34547b83e 100644 --- a/keras_hub/src/models/gemma/gemma_backbone.py +++ b/keras_hub/src/models/gemma/gemma_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras import ops diff --git a/keras_hub/src/models/gemma/gemma_backbone_test.py b/keras_hub/src/models/gemma/gemma_backbone_test.py index d756565968..bbd383e687 100644 --- a/keras_hub/src/models/gemma/gemma_backbone_test.py +++ b/keras_hub/src/models/gemma/gemma_backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras import pytest from keras import ops diff --git a/keras_hub/src/models/gemma/gemma_causal_lm.py b/keras_hub/src/models/gemma/gemma_causal_lm.py index 4a4f9ebd12..7d68d23304 100644 --- a/keras_hub/src/models/gemma/gemma_causal_lm.py +++ b/keras_hub/src/models/gemma/gemma_causal_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras import ops diff --git a/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor.py b/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor.py index 1fe5d3f0d7..4af0cba8a3 100644 --- a/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor.py +++ b/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.gemma.gemma_backbone import GemmaBackbone diff --git a/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor_test.py b/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor_test.py index 15253cd7a5..48520af303 100644 --- a/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/gemma/gemma_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/gemma/gemma_causal_lm_test.py b/keras_hub/src/models/gemma/gemma_causal_lm_test.py index a517e333fb..2e68c4f9df 100644 --- a/keras_hub/src/models/gemma/gemma_causal_lm_test.py +++ b/keras_hub/src/models/gemma/gemma_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os from unittest.mock import patch diff --git a/keras_hub/src/models/gemma/gemma_decoder_block.py b/keras_hub/src/models/gemma/gemma_decoder_block.py index 134fdc29e5..7f970b0ebb 100644 --- a/keras_hub/src/models/gemma/gemma_decoder_block.py +++ b/keras_hub/src/models/gemma/gemma_decoder_block.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/gemma/gemma_lora_test.py b/keras_hub/src/models/gemma/gemma_lora_test.py index 823f0b0cc1..b6a38d37e1 100644 --- a/keras_hub/src/models/gemma/gemma_lora_test.py +++ b/keras_hub/src/models/gemma/gemma_lora_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os import numpy as np diff --git a/keras_hub/src/models/gemma/gemma_presets.py b/keras_hub/src/models/gemma/gemma_presets.py index 2ea4bca646..907dc4b13a 100644 --- a/keras_hub/src/models/gemma/gemma_presets.py +++ b/keras_hub/src/models/gemma/gemma_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Gemma model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/gemma/gemma_tokenizer.py b/keras_hub/src/models/gemma/gemma_tokenizer.py index 18e90423a3..5569191070 100644 --- a/keras_hub/src/models/gemma/gemma_tokenizer.py +++ b/keras_hub/src/models/gemma/gemma_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.gemma.gemma_backbone import GemmaBackbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/gemma/gemma_tokenizer_test.py b/keras_hub/src/models/gemma/gemma_tokenizer_test.py index 518ffdbb01..b67f8f551b 100644 --- a/keras_hub/src/models/gemma/gemma_tokenizer_test.py +++ b/keras_hub/src/models/gemma/gemma_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/gemma/rms_normalization.py b/keras_hub/src/models/gemma/rms_normalization.py index cdf09572ea..a7a84592d4 100644 --- a/keras_hub/src/models/gemma/rms_normalization.py +++ b/keras_hub/src/models/gemma/rms_normalization.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/gpt2/__init__.py b/keras_hub/src/models/gpt2/__init__.py index 2d6f2e8156..be58333aee 100644 --- a/keras_hub/src/models/gpt2/__init__.py +++ b/keras_hub/src/models/gpt2/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.gpt2.gpt2_backbone import GPT2Backbone from keras_hub.src.models.gpt2.gpt2_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/gpt2/gpt2_backbone.py b/keras_hub/src/models/gpt2/gpt2_backbone.py index feed682afc..456fa27c84 100644 --- a/keras_hub/src/models/gpt2/gpt2_backbone.py +++ b/keras_hub/src/models/gpt2/gpt2_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/gpt2/gpt2_backbone_test.py b/keras_hub/src/models/gpt2/gpt2_backbone_test.py index 504dcbfe36..2ae887fbbc 100644 --- a/keras_hub/src/models/gpt2/gpt2_backbone_test.py +++ b/keras_hub/src/models/gpt2/gpt2_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/gpt2/gpt2_causal_lm.py b/keras_hub/src/models/gpt2/gpt2_causal_lm.py index 43eaec8c2d..28c37aeaee 100644 --- a/keras_hub/src/models/gpt2/gpt2_causal_lm.py +++ b/keras_hub/src/models/gpt2/gpt2_causal_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras import ops diff --git a/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor.py b/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor.py index 3e51d7cf49..a6e1a5703f 100644 --- a/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor.py +++ b/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.gpt2.gpt2_backbone import GPT2Backbone diff --git a/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor_test.py b/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor_test.py index df6ef9b96e..9b0a159356 100644 --- a/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/gpt2/gpt2_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.gpt2.gpt2_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/gpt2/gpt2_causal_lm_test.py b/keras_hub/src/models/gpt2/gpt2_causal_lm_test.py index ba3d9b404b..0f6315bea6 100644 --- a/keras_hub/src/models/gpt2/gpt2_causal_lm_test.py +++ b/keras_hub/src/models/gpt2/gpt2_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/gpt2/gpt2_preprocessor.py b/keras_hub/src/models/gpt2/gpt2_preprocessor.py index 8ac34f2287..ec0c6ee479 100644 --- a/keras_hub/src/models/gpt2/gpt2_preprocessor.py +++ b/keras_hub/src/models/gpt2/gpt2_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/gpt2/gpt2_preprocessor_test.py b/keras_hub/src/models/gpt2/gpt2_preprocessor_test.py index f917ce4f99..a116e04374 100644 --- a/keras_hub/src/models/gpt2/gpt2_preprocessor_test.py +++ b/keras_hub/src/models/gpt2/gpt2_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.gpt2.gpt2_preprocessor import GPT2Preprocessor diff --git a/keras_hub/src/models/gpt2/gpt2_presets.py b/keras_hub/src/models/gpt2/gpt2_presets.py index 86331210f3..1ae13fc79f 100644 --- a/keras_hub/src/models/gpt2/gpt2_presets.py +++ b/keras_hub/src/models/gpt2/gpt2_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """GPT-2 model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/gpt2/gpt2_tokenizer.py b/keras_hub/src/models/gpt2/gpt2_tokenizer.py index 71ef409453..8bb431ee8b 100644 --- a/keras_hub/src/models/gpt2/gpt2_tokenizer.py +++ b/keras_hub/src/models/gpt2/gpt2_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.gpt2.gpt2_backbone import GPT2Backbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/gpt2/gpt2_tokenizer_test.py b/keras_hub/src/models/gpt2/gpt2_tokenizer_test.py index 3131e7a93e..e5ab7a5ecc 100644 --- a/keras_hub/src/models/gpt2/gpt2_tokenizer_test.py +++ b/keras_hub/src/models/gpt2/gpt2_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.gpt2.gpt2_tokenizer import GPT2Tokenizer diff --git a/keras_hub/src/models/gpt_neo_x/__init__.py b/keras_hub/src/models/gpt_neo_x/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/gpt_neo_x/__init__.py +++ b/keras_hub/src/models/gpt_neo_x/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_attention.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_attention.py index fbbe1362b0..165908ca4b 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_attention.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_attention.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone.py index d16efbb0e9..239dbfb749 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone_test.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone_test.py index c1105fc9c3..a3ff197eb6 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone_test.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm.py index d512624348..4685f5dd62 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor.py index 489223fc26..efd690d9cc 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.gpt_neo_x.gpt_neo_x_backbone import GPTNeoXBackbone diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor_test.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor_test.py index 635d74cd8f..769dc50260 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.models.gpt_neo_x.gpt_neo_x_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_test.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_test.py index f1456489ec..f66c748b9e 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_test.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_decoder.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_decoder.py index c8029ce4c2..9c3b1032cf 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_decoder.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_decoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer.py index 55d3a3668f..1c672c68a0 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.gpt_neo_x.gpt_neo_x_backbone import GPTNeoXBackbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer_test.py b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer_test.py index 0296d8f58a..18ae370cf4 100644 --- a/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer_test.py +++ b/keras_hub/src/models/gpt_neo_x/gpt_neo_x_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.gpt_neo_x.gpt_neo_x_tokenizer import GPTNeoXTokenizer from keras_hub.src.tests.test_case import TestCase diff --git a/keras_hub/src/models/image_classifier.py b/keras_hub/src/models/image_classifier.py index 189ecec270..7c266dfe83 100644 --- a/keras_hub/src/models/image_classifier.py +++ b/keras_hub/src/models/image_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/image_classifier_preprocessor.py b/keras_hub/src/models/image_classifier_preprocessor.py index bf171d16fa..cb62844a4e 100644 --- a/keras_hub/src/models/image_classifier_preprocessor.py +++ b/keras_hub/src/models/image_classifier_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/image_segmenter.py b/keras_hub/src/models/image_segmenter.py index ef24bd17cf..fcd45db07a 100644 --- a/keras_hub/src/models/image_segmenter.py +++ b/keras_hub/src/models/image_segmenter.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/llama/__init__.py b/keras_hub/src/models/llama/__init__.py index cd47190f14..022664a059 100644 --- a/keras_hub/src/models/llama/__init__.py +++ b/keras_hub/src/models/llama/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.llama.llama_backbone import LlamaBackbone from keras_hub.src.models.llama.llama_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/llama/llama_attention.py b/keras_hub/src/models/llama/llama_attention.py index 80e81f8687..a8bcef9fa3 100644 --- a/keras_hub/src/models/llama/llama_attention.py +++ b/keras_hub/src/models/llama/llama_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/llama/llama_backbone.py b/keras_hub/src/models/llama/llama_backbone.py index 616b377f23..f4d3dd8730 100644 --- a/keras_hub/src/models/llama/llama_backbone.py +++ b/keras_hub/src/models/llama/llama_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/llama/llama_backbone_test.py b/keras_hub/src/models/llama/llama_backbone_test.py index 2b11994141..3b8eca49fe 100644 --- a/keras_hub/src/models/llama/llama_backbone_test.py +++ b/keras_hub/src/models/llama/llama_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/llama/llama_causal_lm.py b/keras_hub/src/models/llama/llama_causal_lm.py index 150a6b0d12..7e1e319f1d 100644 --- a/keras_hub/src/models/llama/llama_causal_lm.py +++ b/keras_hub/src/models/llama/llama_causal_lm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/llama/llama_causal_lm_preprocessor.py b/keras_hub/src/models/llama/llama_causal_lm_preprocessor.py index efb664ed68..eef10b0573 100644 --- a/keras_hub/src/models/llama/llama_causal_lm_preprocessor.py +++ b/keras_hub/src/models/llama/llama_causal_lm_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.llama.llama_backbone import LlamaBackbone diff --git a/keras_hub/src/models/llama/llama_causal_lm_preprocessor_test.py b/keras_hub/src/models/llama/llama_causal_lm_preprocessor_test.py index f2ac0494b1..814cfaf9f3 100644 --- a/keras_hub/src/models/llama/llama_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/llama/llama_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/llama/llama_causal_lm_test.py b/keras_hub/src/models/llama/llama_causal_lm_test.py index c222942823..1ff5a3a987 100644 --- a/keras_hub/src/models/llama/llama_causal_lm_test.py +++ b/keras_hub/src/models/llama/llama_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os from unittest.mock import patch diff --git a/keras_hub/src/models/llama/llama_decoder.py b/keras_hub/src/models/llama/llama_decoder.py index b15b26bb09..295b535a78 100644 --- a/keras_hub/src/models/llama/llama_decoder.py +++ b/keras_hub/src/models/llama/llama_decoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/llama/llama_layernorm.py b/keras_hub/src/models/llama/llama_layernorm.py index fe7ea03712..869b657342 100644 --- a/keras_hub/src/models/llama/llama_layernorm.py +++ b/keras_hub/src/models/llama/llama_layernorm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/llama/llama_presets.py b/keras_hub/src/models/llama/llama_presets.py index 0403bb6dd7..6197cfe07f 100644 --- a/keras_hub/src/models/llama/llama_presets.py +++ b/keras_hub/src/models/llama/llama_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Llama model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/llama/llama_tokenizer.py b/keras_hub/src/models/llama/llama_tokenizer.py index 7b84fe7d40..b8d5e9f6ca 100644 --- a/keras_hub/src/models/llama/llama_tokenizer.py +++ b/keras_hub/src/models/llama/llama_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.llama.llama_backbone import LlamaBackbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/llama/llama_tokenizer_test.py b/keras_hub/src/models/llama/llama_tokenizer_test.py index caa2b958f7..e738e74d95 100644 --- a/keras_hub/src/models/llama/llama_tokenizer_test.py +++ b/keras_hub/src/models/llama/llama_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/llama3/__init__.py b/keras_hub/src/models/llama3/__init__.py index 8b9eb47375..c4c9c963e8 100644 --- a/keras_hub/src/models/llama3/__init__.py +++ b/keras_hub/src/models/llama3/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.llama3.llama3_backbone import Llama3Backbone from keras_hub.src.models.llama3.llama3_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/llama3/llama3_backbone.py b/keras_hub/src/models/llama3/llama3_backbone.py index 10d79612da..6ec15c4f8d 100644 --- a/keras_hub/src/models/llama3/llama3_backbone.py +++ b/keras_hub/src/models/llama3/llama3_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.llama.llama_backbone import LlamaBackbone diff --git a/keras_hub/src/models/llama3/llama3_causal_lm.py b/keras_hub/src/models/llama3/llama3_causal_lm.py index eb79716512..7e998d52c5 100644 --- a/keras_hub/src/models/llama3/llama3_causal_lm.py +++ b/keras_hub/src/models/llama3/llama3_causal_lm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.llama3.llama3_backbone import Llama3Backbone from keras_hub.src.models.llama3.llama3_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor.py b/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor.py index 4967fce67d..2f279098c2 100644 --- a/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor.py +++ b/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.llama3.llama3_backbone import Llama3Backbone diff --git a/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor_test.py b/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor_test.py index be3d5963f5..b8b45d8fd6 100644 --- a/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/llama3/llama3_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.llama3.llama3_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/llama3/llama3_causal_lm_test.py b/keras_hub/src/models/llama3/llama3_causal_lm_test.py index 123535413c..995c1a00e1 100644 --- a/keras_hub/src/models/llama3/llama3_causal_lm_test.py +++ b/keras_hub/src/models/llama3/llama3_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/llama3/llama3_presets.py b/keras_hub/src/models/llama3/llama3_presets.py index 628a61aa85..0ab9bdb22b 100644 --- a/keras_hub/src/models/llama3/llama3_presets.py +++ b/keras_hub/src/models/llama3/llama3_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Llama 3 model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/llama3/llama3_tokenizer.py b/keras_hub/src/models/llama3/llama3_tokenizer.py index 2dceeb8bbf..397b5e1923 100644 --- a/keras_hub/src/models/llama3/llama3_tokenizer.py +++ b/keras_hub/src/models/llama3/llama3_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.llama3.llama3_backbone import Llama3Backbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/llama3/llama3_tokenizer_test.py b/keras_hub/src/models/llama3/llama3_tokenizer_test.py index a54337e658..8440d8ebb2 100644 --- a/keras_hub/src/models/llama3/llama3_tokenizer_test.py +++ b/keras_hub/src/models/llama3/llama3_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.llama3.llama3_tokenizer import Llama3Tokenizer diff --git a/keras_hub/src/models/masked_lm.py b/keras_hub/src/models/masked_lm.py index b7225da71d..8071312956 100644 --- a/keras_hub/src/models/masked_lm.py +++ b/keras_hub/src/models/masked_lm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/masked_lm_preprocessor.py b/keras_hub/src/models/masked_lm_preprocessor.py index 618c55b7b1..d09b3a200e 100644 --- a/keras_hub/src/models/masked_lm_preprocessor.py +++ b/keras_hub/src/models/masked_lm_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/masked_lm_preprocessor_test.py b/keras_hub/src/models/masked_lm_preprocessor_test.py index 897b809b9a..0f7dafea1b 100644 --- a/keras_hub/src/models/masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/masked_lm_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.bert.bert_masked_lm_preprocessor import ( diff --git a/keras_hub/src/models/mistral/__init__.py b/keras_hub/src/models/mistral/__init__.py index d7a0fedfa4..99653faa16 100644 --- a/keras_hub/src/models/mistral/__init__.py +++ b/keras_hub/src/models/mistral/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.mistral.mistral_backbone import MistralBackbone from keras_hub.src.models.mistral.mistral_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/mistral/mistral_attention.py b/keras_hub/src/models/mistral/mistral_attention.py index 925a6d36c5..b0c0ecd3aa 100644 --- a/keras_hub/src/models/mistral/mistral_attention.py +++ b/keras_hub/src/models/mistral/mistral_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/mistral/mistral_backbone.py b/keras_hub/src/models/mistral/mistral_backbone.py index 952ff4f1a6..65f1475132 100644 --- a/keras_hub/src/models/mistral/mistral_backbone.py +++ b/keras_hub/src/models/mistral/mistral_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/mistral/mistral_backbone_test.py b/keras_hub/src/models/mistral/mistral_backbone_test.py index 3c70a217c3..ffb6e7ef20 100644 --- a/keras_hub/src/models/mistral/mistral_backbone_test.py +++ b/keras_hub/src/models/mistral/mistral_backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras import ops diff --git a/keras_hub/src/models/mistral/mistral_causal_lm.py b/keras_hub/src/models/mistral/mistral_causal_lm.py index d7c7fd753c..7f7ff03d14 100644 --- a/keras_hub/src/models/mistral/mistral_causal_lm.py +++ b/keras_hub/src/models/mistral/mistral_causal_lm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor.py b/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor.py index 45cf29be76..62be43fecc 100644 --- a/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor.py +++ b/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.mistral.mistral_backbone import MistralBackbone diff --git a/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor_test.py b/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor_test.py index cafda72ca1..8dfcb70e28 100644 --- a/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/mistral/mistral_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/mistral/mistral_causal_lm_test.py b/keras_hub/src/models/mistral/mistral_causal_lm_test.py index 104af37998..8a6bd42434 100644 --- a/keras_hub/src/models/mistral/mistral_causal_lm_test.py +++ b/keras_hub/src/models/mistral/mistral_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os from unittest.mock import patch diff --git a/keras_hub/src/models/mistral/mistral_layer_norm.py b/keras_hub/src/models/mistral/mistral_layer_norm.py index 3aadf78918..affca9c45f 100644 --- a/keras_hub/src/models/mistral/mistral_layer_norm.py +++ b/keras_hub/src/models/mistral/mistral_layer_norm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/mistral/mistral_presets.py b/keras_hub/src/models/mistral/mistral_presets.py index 0466380229..7dd8369af7 100644 --- a/keras_hub/src/models/mistral/mistral_presets.py +++ b/keras_hub/src/models/mistral/mistral_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Mistral model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/mistral/mistral_tokenizer.py b/keras_hub/src/models/mistral/mistral_tokenizer.py index a5a35b0709..85943fc01a 100644 --- a/keras_hub/src/models/mistral/mistral_tokenizer.py +++ b/keras_hub/src/models/mistral/mistral_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.mistral.mistral_backbone import MistralBackbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/mistral/mistral_tokenizer_test.py b/keras_hub/src/models/mistral/mistral_tokenizer_test.py index 39a8c1d970..e5f3dd179f 100644 --- a/keras_hub/src/models/mistral/mistral_tokenizer_test.py +++ b/keras_hub/src/models/mistral/mistral_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/mistral/mistral_transformer_decoder.py b/keras_hub/src/models/mistral/mistral_transformer_decoder.py index 215af4257c..5bace1cf52 100644 --- a/keras_hub/src/models/mistral/mistral_transformer_decoder.py +++ b/keras_hub/src/models/mistral/mistral_transformer_decoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/mix_transformer/__init__.py b/keras_hub/src/models/mix_transformer/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/mix_transformer/__init__.py +++ b/keras_hub/src/models/mix_transformer/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/mix_transformer/mix_transformer_backbone.py b/keras_hub/src/models/mix_transformer/mix_transformer_backbone.py index 6986be7c45..838d7b2692 100644 --- a/keras_hub/src/models/mix_transformer/mix_transformer_backbone.py +++ b/keras_hub/src/models/mix_transformer/mix_transformer_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras import numpy as np from keras import ops diff --git a/keras_hub/src/models/mix_transformer/mix_transformer_backbone_test.py b/keras_hub/src/models/mix_transformer/mix_transformer_backbone_test.py index bab58103b4..bca545e174 100644 --- a/keras_hub/src/models/mix_transformer/mix_transformer_backbone_test.py +++ b/keras_hub/src/models/mix_transformer/mix_transformer_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/mix_transformer/mix_transformer_classifier.py b/keras_hub/src/models/mix_transformer/mix_transformer_classifier.py index 7de8aea880..5fea71f417 100644 --- a/keras_hub/src/models/mix_transformer/mix_transformer_classifier.py +++ b/keras_hub/src/models/mix_transformer/mix_transformer_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/mix_transformer/mix_transformer_classifier_test.py b/keras_hub/src/models/mix_transformer/mix_transformer_classifier_test.py index 1d5d4ec444..c217fcc88b 100644 --- a/keras_hub/src/models/mix_transformer/mix_transformer_classifier_test.py +++ b/keras_hub/src/models/mix_transformer/mix_transformer_classifier_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest diff --git a/keras_hub/src/models/mix_transformer/mix_transformer_layers.py b/keras_hub/src/models/mix_transformer/mix_transformer_layers.py index 57ffde94e7..42402da7ea 100644 --- a/keras_hub/src/models/mix_transformer/mix_transformer_layers.py +++ b/keras_hub/src/models/mix_transformer/mix_transformer_layers.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/models/mobilenet/__init__.py b/keras_hub/src/models/mobilenet/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/mobilenet/__init__.py +++ b/keras_hub/src/models/mobilenet/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/mobilenet/mobilenet_backbone.py b/keras_hub/src/models/mobilenet/mobilenet_backbone.py index ff83364472..d3aff7e9b8 100644 --- a/keras_hub/src/models/mobilenet/mobilenet_backbone.py +++ b/keras_hub/src/models/mobilenet/mobilenet_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/mobilenet/mobilenet_backbone_test.py b/keras_hub/src/models/mobilenet/mobilenet_backbone_test.py index cf49194c5c..24fdd0db4c 100644 --- a/keras_hub/src/models/mobilenet/mobilenet_backbone_test.py +++ b/keras_hub/src/models/mobilenet/mobilenet_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/mobilenet/mobilenet_image_classifier.py b/keras_hub/src/models/mobilenet/mobilenet_image_classifier.py index 407feac11a..ff02ec0c6a 100644 --- a/keras_hub/src/models/mobilenet/mobilenet_image_classifier.py +++ b/keras_hub/src/models/mobilenet/mobilenet_image_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/mobilenet/mobilenet_image_classifier_test.py b/keras_hub/src/models/mobilenet/mobilenet_image_classifier_test.py index b16d1b92af..57ebd65039 100644 --- a/keras_hub/src/models/mobilenet/mobilenet_image_classifier_test.py +++ b/keras_hub/src/models/mobilenet/mobilenet_image_classifier_test.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest diff --git a/keras_hub/src/models/opt/__init__.py b/keras_hub/src/models/opt/__init__.py index 77c30aab28..76cf33bc51 100644 --- a/keras_hub/src/models/opt/__init__.py +++ b/keras_hub/src/models/opt/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.opt.opt_backbone import OPTBackbone from keras_hub.src.models.opt.opt_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/opt/opt_backbone.py b/keras_hub/src/models/opt/opt_backbone.py index 5dda2002ab..a7ee48b710 100644 --- a/keras_hub/src/models/opt/opt_backbone.py +++ b/keras_hub/src/models/opt/opt_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/opt/opt_backbone_test.py b/keras_hub/src/models/opt/opt_backbone_test.py index b73f74e887..b99f1c6b59 100644 --- a/keras_hub/src/models/opt/opt_backbone_test.py +++ b/keras_hub/src/models/opt/opt_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/opt/opt_causal_lm.py b/keras_hub/src/models/opt/opt_causal_lm.py index 8f51a7812f..637d009859 100644 --- a/keras_hub/src/models/opt/opt_causal_lm.py +++ b/keras_hub/src/models/opt/opt_causal_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/opt/opt_causal_lm_preprocessor.py b/keras_hub/src/models/opt/opt_causal_lm_preprocessor.py index b671f16004..071c597469 100644 --- a/keras_hub/src/models/opt/opt_causal_lm_preprocessor.py +++ b/keras_hub/src/models/opt/opt_causal_lm_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.opt.opt_backbone import OPTBackbone diff --git a/keras_hub/src/models/opt/opt_causal_lm_preprocessor_test.py b/keras_hub/src/models/opt/opt_causal_lm_preprocessor_test.py index 959804a40c..bfbf5b2640 100644 --- a/keras_hub/src/models/opt/opt_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/opt/opt_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.opt.opt_causal_lm_preprocessor import ( diff --git a/keras_hub/src/models/opt/opt_causal_lm_test.py b/keras_hub/src/models/opt/opt_causal_lm_test.py index e4b4dc67c9..138c5a5180 100644 --- a/keras_hub/src/models/opt/opt_causal_lm_test.py +++ b/keras_hub/src/models/opt/opt_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from unittest.mock import patch import pytest diff --git a/keras_hub/src/models/opt/opt_presets.py b/keras_hub/src/models/opt/opt_presets.py index d50c7b29a5..7ae00e4c2b 100644 --- a/keras_hub/src/models/opt/opt_presets.py +++ b/keras_hub/src/models/opt/opt_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """OPT model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/opt/opt_tokenizer.py b/keras_hub/src/models/opt/opt_tokenizer.py index 1840996f7f..e14d140179 100644 --- a/keras_hub/src/models/opt/opt_tokenizer.py +++ b/keras_hub/src/models/opt/opt_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.opt.opt_backbone import OPTBackbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/opt/opt_tokenizer_test.py b/keras_hub/src/models/opt/opt_tokenizer_test.py index 81853d74dd..03992ecbbd 100644 --- a/keras_hub/src/models/opt/opt_tokenizer_test.py +++ b/keras_hub/src/models/opt/opt_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.opt.opt_tokenizer import OPTTokenizer diff --git a/keras_hub/src/models/pali_gemma/__init__.py b/keras_hub/src/models/pali_gemma/__init__.py index 0e7f2548b4..b6cf670ae9 100644 --- a/keras_hub/src/models/pali_gemma/__init__.py +++ b/keras_hub/src/models/pali_gemma/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.models.pali_gemma.pali_gemma_backbone import ( PaliGemmaBackbone, ) diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_backbone.py b/keras_hub/src/models/pali_gemma/pali_gemma_backbone.py index a6440b962a..e8eb1dd232 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_backbone.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_backbone_test.py b/keras_hub/src/models/pali_gemma/pali_gemma_backbone_test.py index e0e4642a55..4d02e075cd 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_backbone_test.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest from keras import ops diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm.py b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm.py index 875c5d616c..5419daee5b 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writingf, 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. from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor.py b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor.py index 04d68769e6..e317bfc21e 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor_test.py b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor_test.py index 0e1363e33d..f0adc4b291 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import numpy as np diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_test.py b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_test.py index cc342f8665..dd24e86fce 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_test.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_causal_lm_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os.path import numpy as np diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block.py b/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block.py index 8778505c8f..dd445a13c0 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block_test.py b/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block_test.py index 51bcb5a419..5f90fc887d 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block_test.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_decoder_block_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras_hub.src.models.pali_gemma.pali_gemma_decoder_block import ( diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_image_converter.py b/keras_hub/src/models/pali_gemma/pali_gemma_image_converter.py index e75e446e14..b623619025 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_image_converter.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_image_converter.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.resizing_image_converter import ( ResizingImageConverter, diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_presets.py b/keras_hub/src/models/pali_gemma/pali_gemma_presets.py index 2a13c855e9..3f642833a4 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_presets.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """PaliGemma model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_tokenizer.py b/keras_hub/src/models/pali_gemma/pali_gemma_tokenizer.py index a01a162b7d..962aa5caaf 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_tokenizer.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_tokenizer.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.gemma.gemma_tokenizer import GemmaTokenizer from keras_hub.src.models.pali_gemma.pali_gemma_backbone import ( diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_vit.py b/keras_hub/src/models/pali_gemma/pali_gemma_vit.py index c47507703a..20194a6039 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_vit.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_vit.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writingf, 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. import keras from keras import ops diff --git a/keras_hub/src/models/pali_gemma/pali_gemma_vit_test.py b/keras_hub/src/models/pali_gemma/pali_gemma_vit_test.py index 2049f61c4a..9611590da0 100644 --- a/keras_hub/src/models/pali_gemma/pali_gemma_vit_test.py +++ b/keras_hub/src/models/pali_gemma/pali_gemma_vit_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.pali_gemma.pali_gemma_vit import PaliGemmaVit diff --git a/keras_hub/src/models/phi3/__init__.py b/keras_hub/src/models/phi3/__init__.py index ae23828539..e388c33696 100644 --- a/keras_hub/src/models/phi3/__init__.py +++ b/keras_hub/src/models/phi3/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.phi3.phi3_backbone import Phi3Backbone from keras_hub.src.models.phi3.phi3_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/phi3/phi3_attention.py b/keras_hub/src/models/phi3/phi3_attention.py index e3a43bb46f..1c4476240d 100644 --- a/keras_hub/src/models/phi3/phi3_attention.py +++ b/keras_hub/src/models/phi3/phi3_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/phi3/phi3_backbone.py b/keras_hub/src/models/phi3/phi3_backbone.py index 506ac56ec8..622a019f85 100644 --- a/keras_hub/src/models/phi3/phi3_backbone.py +++ b/keras_hub/src/models/phi3/phi3_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/phi3/phi3_backbone_test.py b/keras_hub/src/models/phi3/phi3_backbone_test.py index df4424e70f..f76d141453 100644 --- a/keras_hub/src/models/phi3/phi3_backbone_test.py +++ b/keras_hub/src/models/phi3/phi3_backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras import ops diff --git a/keras_hub/src/models/phi3/phi3_causal_lm.py b/keras_hub/src/models/phi3/phi3_causal_lm.py index 8684545c7f..fed4c2ea27 100644 --- a/keras_hub/src/models/phi3/phi3_causal_lm.py +++ b/keras_hub/src/models/phi3/phi3_causal_lm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor.py b/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor.py index 5207180778..783b5daca8 100644 --- a/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor.py +++ b/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm_preprocessor import CausalLMPreprocessor from keras_hub.src.models.phi3.phi3_backbone import Phi3Backbone diff --git a/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor_test.py b/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor_test.py index fdd4b95277..c35bf2ba2d 100644 --- a/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor_test.py +++ b/keras_hub/src/models/phi3/phi3_causal_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/phi3/phi3_causal_lm_test.py b/keras_hub/src/models/phi3/phi3_causal_lm_test.py index 741da19bdf..fc6f6aabe5 100644 --- a/keras_hub/src/models/phi3/phi3_causal_lm_test.py +++ b/keras_hub/src/models/phi3/phi3_causal_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os from unittest.mock import patch diff --git a/keras_hub/src/models/phi3/phi3_decoder.py b/keras_hub/src/models/phi3/phi3_decoder.py index 077adf615a..7caaf3a97b 100644 --- a/keras_hub/src/models/phi3/phi3_decoder.py +++ b/keras_hub/src/models/phi3/phi3_decoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/phi3/phi3_layernorm.py b/keras_hub/src/models/phi3/phi3_layernorm.py index bf0b97b826..fcd47d595e 100644 --- a/keras_hub/src/models/phi3/phi3_layernorm.py +++ b/keras_hub/src/models/phi3/phi3_layernorm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import ops diff --git a/keras_hub/src/models/phi3/phi3_presets.py b/keras_hub/src/models/phi3/phi3_presets.py index 76a3cee19f..3e30b05dee 100644 --- a/keras_hub/src/models/phi3/phi3_presets.py +++ b/keras_hub/src/models/phi3/phi3_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Phi-3 model preset configurations.""" # Metadata for loading pretrained model weights. diff --git a/keras_hub/src/models/phi3/phi3_rotary_embedding.py b/keras_hub/src/models/phi3/phi3_rotary_embedding.py index bd3242e901..73166d45c1 100644 --- a/keras_hub/src/models/phi3/phi3_rotary_embedding.py +++ b/keras_hub/src/models/phi3/phi3_rotary_embedding.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math from keras import ops diff --git a/keras_hub/src/models/phi3/phi3_tokenizer.py b/keras_hub/src/models/phi3/phi3_tokenizer.py index 4cfc21f3b7..0665991dd6 100644 --- a/keras_hub/src/models/phi3/phi3_tokenizer.py +++ b/keras_hub/src/models/phi3/phi3_tokenizer.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.phi3.phi3_backbone import Phi3Backbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/phi3/phi3_tokenizer_test.py b/keras_hub/src/models/phi3/phi3_tokenizer_test.py index 31c6abf574..5454546120 100644 --- a/keras_hub/src/models/phi3/phi3_tokenizer_test.py +++ b/keras_hub/src/models/phi3/phi3_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/preprocessor.py b/keras_hub/src/models/preprocessor.py index 07cbba4d16..5146b594bc 100644 --- a/keras_hub/src/models/preprocessor.py +++ b/keras_hub/src/models/preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/preprocessor_test.py b/keras_hub/src/models/preprocessor_test.py index 6c36f64eae..e87e5f40fa 100644 --- a/keras_hub/src/models/preprocessor_test.py +++ b/keras_hub/src/models/preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os import pathlib diff --git a/keras_hub/src/models/resnet/__init__.py b/keras_hub/src/models/resnet/__init__.py index 9d166a8c25..2246e45824 100644 --- a/keras_hub/src/models/resnet/__init__.py +++ b/keras_hub/src/models/resnet/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.resnet.resnet_backbone import ResNetBackbone from keras_hub.src.models.resnet.resnet_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/resnet/resnet_backbone.py b/keras_hub/src/models/resnet/resnet_backbone.py index 638ccb8079..088d0c7ddb 100644 --- a/keras_hub/src/models/resnet/resnet_backbone.py +++ b/keras_hub/src/models/resnet/resnet_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import layers from keras import ops diff --git a/keras_hub/src/models/resnet/resnet_backbone_test.py b/keras_hub/src/models/resnet/resnet_backbone_test.py index 306ec923c8..f0822d2896 100644 --- a/keras_hub/src/models/resnet/resnet_backbone_test.py +++ b/keras_hub/src/models/resnet/resnet_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from absl.testing import parameterized from keras import ops diff --git a/keras_hub/src/models/resnet/resnet_image_classifier.py b/keras_hub/src/models/resnet/resnet_image_classifier.py index 4440ef145c..50c34df37b 100644 --- a/keras_hub/src/models/resnet/resnet_image_classifier.py +++ b/keras_hub/src/models/resnet/resnet_image_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/resnet/resnet_image_classifier_preprocessor.py b/keras_hub/src/models/resnet/resnet_image_classifier_preprocessor.py index f7c24d4b33..86fb79bd81 100644 --- a/keras_hub/src/models/resnet/resnet_image_classifier_preprocessor.py +++ b/keras_hub/src/models/resnet/resnet_image_classifier_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.image_classifier_preprocessor import ( ImageClassifierPreprocessor, diff --git a/keras_hub/src/models/resnet/resnet_image_classifier_test.py b/keras_hub/src/models/resnet/resnet_image_classifier_test.py index 5706a7b5a6..483788729f 100644 --- a/keras_hub/src/models/resnet/resnet_image_classifier_test.py +++ b/keras_hub/src/models/resnet/resnet_image_classifier_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras import ops diff --git a/keras_hub/src/models/resnet/resnet_image_converter.py b/keras_hub/src/models/resnet/resnet_image_converter.py index 64dab4e302..34b3dd431c 100644 --- a/keras_hub/src/models/resnet/resnet_image_converter.py +++ b/keras_hub/src/models/resnet/resnet_image_converter.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.layers.preprocessing.resizing_image_converter import ( ResizingImageConverter, diff --git a/keras_hub/src/models/resnet/resnet_presets.py b/keras_hub/src/models/resnet/resnet_presets.py index 7264558a7a..58bed3d90a 100644 --- a/keras_hub/src/models/resnet/resnet_presets.py +++ b/keras_hub/src/models/resnet/resnet_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """ResNet preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/retinanet/__init__.py b/keras_hub/src/models/retinanet/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/retinanet/__init__.py +++ b/keras_hub/src/models/retinanet/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/retinanet/anchor_generator.py b/keras_hub/src/models/retinanet/anchor_generator.py index 10b5624372..04d5f7dc9e 100644 --- a/keras_hub/src/models/retinanet/anchor_generator.py +++ b/keras_hub/src/models/retinanet/anchor_generator.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import math import keras diff --git a/keras_hub/src/models/retinanet/anchor_generator_test.py b/keras_hub/src/models/retinanet/anchor_generator_test.py index 0c54d0526d..8b0669188a 100644 --- a/keras_hub/src/models/retinanet/anchor_generator_test.py +++ b/keras_hub/src/models/retinanet/anchor_generator_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from absl.testing import parameterized from keras import ops diff --git a/keras_hub/src/models/retinanet/box_matcher.py b/keras_hub/src/models/retinanet/box_matcher.py index 9dfdcff289..dd8a486814 100644 --- a/keras_hub/src/models/retinanet/box_matcher.py +++ b/keras_hub/src/models/retinanet/box_matcher.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/retinanet/box_matcher_test.py b/keras_hub/src/models/retinanet/box_matcher_test.py index 3eb18290d6..d991f90e5b 100644 --- a/keras_hub/src/models/retinanet/box_matcher_test.py +++ b/keras_hub/src/models/retinanet/box_matcher_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops diff --git a/keras_hub/src/models/retinanet/non_max_supression.py b/keras_hub/src/models/retinanet/non_max_supression.py index 1ba6a8f5a2..9e52479f1d 100644 --- a/keras_hub/src/models/retinanet/non_max_supression.py +++ b/keras_hub/src/models/retinanet/non_max_supression.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import math import keras diff --git a/keras_hub/src/models/retinanet/non_max_supression_test.py b/keras_hub/src/models/retinanet/non_max_supression_test.py index 0af0207ef8..94d3c3f124 100644 --- a/keras_hub/src/models/retinanet/non_max_supression_test.py +++ b/keras_hub/src/models/retinanet/non_max_supression_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras import ops diff --git a/keras_hub/src/models/roberta/__init__.py b/keras_hub/src/models/roberta/__init__.py index d54b418a67..0ce6ec6a89 100644 --- a/keras_hub/src/models/roberta/__init__.py +++ b/keras_hub/src/models/roberta/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.roberta.roberta_backbone import RobertaBackbone from keras_hub.src.models.roberta.roberta_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/roberta/roberta_backbone.py b/keras_hub/src/models/roberta/roberta_backbone.py index 00cb2e9af9..ad5bea8b49 100644 --- a/keras_hub/src/models/roberta/roberta_backbone.py +++ b/keras_hub/src/models/roberta/roberta_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/roberta/roberta_backbone_test.py b/keras_hub/src/models/roberta/roberta_backbone_test.py index 68ffe549eb..c3ec8ba9f6 100644 --- a/keras_hub/src/models/roberta/roberta_backbone_test.py +++ b/keras_hub/src/models/roberta/roberta_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/roberta/roberta_masked_lm.py b/keras_hub/src/models/roberta/roberta_masked_lm.py index 49553e90b8..bee7ba1065 100644 --- a/keras_hub/src/models/roberta/roberta_masked_lm.py +++ b/keras_hub/src/models/roberta/roberta_masked_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor.py b/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor.py index 17da64734d..649a96261d 100644 --- a/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor.py +++ b/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor_test.py b/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor_test.py index 7bd9c25fc9..378825c53f 100644 --- a/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/roberta/roberta_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.roberta.roberta_masked_lm_preprocessor import ( diff --git a/keras_hub/src/models/roberta/roberta_masked_lm_test.py b/keras_hub/src/models/roberta/roberta_masked_lm_test.py index 409f91daf4..4a287895fe 100644 --- a/keras_hub/src/models/roberta/roberta_masked_lm_test.py +++ b/keras_hub/src/models/roberta/roberta_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.roberta.roberta_backbone import RobertaBackbone diff --git a/keras_hub/src/models/roberta/roberta_presets.py b/keras_hub/src/models/roberta/roberta_presets.py index 45dabf83e6..f5f553bdf6 100644 --- a/keras_hub/src/models/roberta/roberta_presets.py +++ b/keras_hub/src/models/roberta/roberta_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """RoBERTa model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/roberta/roberta_text_classifier.py b/keras_hub/src/models/roberta/roberta_text_classifier.py index 7ab02460a3..23a482a2c3 100644 --- a/keras_hub/src/models/roberta/roberta_text_classifier.py +++ b/keras_hub/src/models/roberta/roberta_text_classifier.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor.py b/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor.py index 71355bc619..6b84a048d5 100644 --- a/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor.py +++ b/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor_test.py b/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor_test.py index adaf11f043..8cbb8c0a7e 100644 --- a/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/roberta/roberta_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.roberta.roberta_text_classifier_preprocessor import ( diff --git a/keras_hub/src/models/roberta/roberta_text_classifier_test.py b/keras_hub/src/models/roberta/roberta_text_classifier_test.py index f71994ff6d..c5534a0dc4 100644 --- a/keras_hub/src/models/roberta/roberta_text_classifier_test.py +++ b/keras_hub/src/models/roberta/roberta_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.roberta.roberta_backbone import RobertaBackbone diff --git a/keras_hub/src/models/roberta/roberta_tokenizer.py b/keras_hub/src/models/roberta/roberta_tokenizer.py index a03cee272f..7ba0b560e6 100644 --- a/keras_hub/src/models/roberta/roberta_tokenizer.py +++ b/keras_hub/src/models/roberta/roberta_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.roberta.roberta_backbone import RobertaBackbone from keras_hub.src.tokenizers.byte_pair_tokenizer import BytePairTokenizer diff --git a/keras_hub/src/models/roberta/roberta_tokenizer_test.py b/keras_hub/src/models/roberta/roberta_tokenizer_test.py index 6deb56be97..014bebed74 100644 --- a/keras_hub/src/models/roberta/roberta_tokenizer_test.py +++ b/keras_hub/src/models/roberta/roberta_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.roberta.roberta_tokenizer import RobertaTokenizer diff --git a/keras_hub/src/models/sam/__init__.py b/keras_hub/src/models/sam/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/sam/__init__.py +++ b/keras_hub/src/models/sam/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/sam/sam_backbone.py b/keras_hub/src/models/sam/sam_backbone.py index 4cc0277319..6255510105 100644 --- a/keras_hub/src/models/sam/sam_backbone.py +++ b/keras_hub/src/models/sam/sam_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/sam/sam_backbone_test.py b/keras_hub/src/models/sam/sam_backbone_test.py index a12b8e341a..b62dd91d61 100644 --- a/keras_hub/src/models/sam/sam_backbone_test.py +++ b/keras_hub/src/models/sam/sam_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras_hub.src.models.sam.sam_backbone import SAMBackbone diff --git a/keras_hub/src/models/sam/sam_image_segmenter.py b/keras_hub/src/models/sam/sam_image_segmenter.py index 7727cde06a..eefbec54f7 100644 --- a/keras_hub/src/models/sam/sam_image_segmenter.py +++ b/keras_hub/src/models/sam/sam_image_segmenter.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops diff --git a/keras_hub/src/models/sam/sam_image_segmenter_test.py b/keras_hub/src/models/sam/sam_image_segmenter_test.py index 0a46ea430f..510c290e2c 100644 --- a/keras_hub/src/models/sam/sam_image_segmenter_test.py +++ b/keras_hub/src/models/sam/sam_image_segmenter_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/sam/sam_layers.py b/keras_hub/src/models/sam/sam_layers.py index 87a659bb55..a54d12c89e 100644 --- a/keras_hub/src/models/sam/sam_layers.py +++ b/keras_hub/src/models/sam/sam_layers.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import math import keras diff --git a/keras_hub/src/models/sam/sam_mask_decoder.py b/keras_hub/src/models/sam/sam_mask_decoder.py index f7da137cf2..b7a173abfb 100644 --- a/keras_hub/src/models/sam/sam_mask_decoder.py +++ b/keras_hub/src/models/sam/sam_mask_decoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/sam/sam_mask_decoder_test.py b/keras_hub/src/models/sam/sam_mask_decoder_test.py index 35b2b53c28..2c4a64f38d 100644 --- a/keras_hub/src/models/sam/sam_mask_decoder_test.py +++ b/keras_hub/src/models/sam/sam_mask_decoder_test.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras import random from keras_hub.src.models.sam.sam_mask_decoder import SAMMaskDecoder diff --git a/keras_hub/src/models/sam/sam_prompt_encoder.py b/keras_hub/src/models/sam/sam_prompt_encoder.py index f35e0a9cb5..79ad7e01e2 100644 --- a/keras_hub/src/models/sam/sam_prompt_encoder.py +++ b/keras_hub/src/models/sam/sam_prompt_encoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/sam/sam_prompt_encoder_test.py b/keras_hub/src/models/sam/sam_prompt_encoder_test.py index acf7c7627e..5781fa885a 100644 --- a/keras_hub/src/models/sam/sam_prompt_encoder_test.py +++ b/keras_hub/src/models/sam/sam_prompt_encoder_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import itertools import numpy as np diff --git a/keras_hub/src/models/sam/sam_transformer.py b/keras_hub/src/models/sam/sam_transformer.py index eb5267718c..e9d1d9808c 100644 --- a/keras_hub/src/models/sam/sam_transformer.py +++ b/keras_hub/src/models/sam/sam_transformer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/seq_2_seq_lm.py b/keras_hub/src/models/seq_2_seq_lm.py index 998be8e906..28a36e4067 100644 --- a/keras_hub/src/models/seq_2_seq_lm.py +++ b/keras_hub/src/models/seq_2_seq_lm.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.causal_lm import CausalLM diff --git a/keras_hub/src/models/seq_2_seq_lm_preprocessor.py b/keras_hub/src/models/seq_2_seq_lm_preprocessor.py index d5ea9342fc..d38bb35b06 100644 --- a/keras_hub/src/models/seq_2_seq_lm_preprocessor.py +++ b/keras_hub/src/models/seq_2_seq_lm_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/seq_2_seq_lm_preprocessor_test.py b/keras_hub/src/models/seq_2_seq_lm_preprocessor_test.py index 3cd6977967..d151fe5381 100644 --- a/keras_hub/src/models/seq_2_seq_lm_preprocessor_test.py +++ b/keras_hub/src/models/seq_2_seq_lm_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.bart.bart_seq_2_seq_lm_preprocessor import ( diff --git a/keras_hub/src/models/stable_diffusion_3/__init__.py b/keras_hub/src/models/stable_diffusion_3/__init__.py index fa6f988357..051d112b8f 100644 --- a/keras_hub/src/models/stable_diffusion_3/__init__.py +++ b/keras_hub/src/models/stable_diffusion_3/__init__.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras_hub.src.models.stable_diffusion_3.stable_diffusion_3_backbone import ( StableDiffusion3Backbone, ) diff --git a/keras_hub/src/models/stable_diffusion_3/flow_match_euler_discrete_scheduler.py b/keras_hub/src/models/stable_diffusion_3/flow_match_euler_discrete_scheduler.py index a00988c4cd..c80cf7d465 100644 --- a/keras_hub/src/models/stable_diffusion_3/flow_match_euler_discrete_scheduler.py +++ b/keras_hub/src/models/stable_diffusion_3/flow_match_euler_discrete_scheduler.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras import layers from keras import ops diff --git a/keras_hub/src/models/stable_diffusion_3/mmdit.py b/keras_hub/src/models/stable_diffusion_3/mmdit.py index c3c879788f..0fe78e571b 100644 --- a/keras_hub/src/models/stable_diffusion_3/mmdit.py +++ b/keras_hub/src/models/stable_diffusion_3/mmdit.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math import keras diff --git a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone.py b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone.py index ef6a43c25d..62f5890e77 100644 --- a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone.py +++ b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import layers from keras import ops diff --git a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone_test.py b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone_test.py index 64172e3444..d0a5a82a97 100644 --- a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone_test.py +++ b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_backbone_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras import ops diff --git a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image.py b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image.py index 94a0de2214..514ee5d10e 100644 --- a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image.py +++ b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor.py b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor.py index daef6a7482..25b5345a85 100644 --- a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor.py +++ b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import layers diff --git a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor_test.py b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor_test.py index 7934f8262c..b88e2397a4 100644 --- a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor_test.py +++ b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.clip.clip_preprocessor import CLIPPreprocessor diff --git a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_test.py b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_test.py index 570f8c3e6b..b3cbf9ec0a 100644 --- a/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_test.py +++ b/keras_hub/src/models/stable_diffusion_3/stable_diffusion_3_text_to_image_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras import pytest from keras import ops diff --git a/keras_hub/src/models/stable_diffusion_3/t5_encoder.py b/keras_hub/src/models/stable_diffusion_3/t5_encoder.py index 9e9c261c90..322c5ac1ec 100644 --- a/keras_hub/src/models/stable_diffusion_3/t5_encoder.py +++ b/keras_hub/src/models/stable_diffusion_3/t5_encoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.layers.modeling.reversible_embedding import ( diff --git a/keras_hub/src/models/stable_diffusion_3/vae_image_decoder.py b/keras_hub/src/models/stable_diffusion_3/vae_image_decoder.py index 02b14e77e5..5df9790bbf 100644 --- a/keras_hub/src/models/stable_diffusion_3/vae_image_decoder.py +++ b/keras_hub/src/models/stable_diffusion_3/vae_image_decoder.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import math from keras import layers diff --git a/keras_hub/src/models/t5/__init__.py b/keras_hub/src/models/t5/__init__.py index 63c98610f9..ac59855d30 100644 --- a/keras_hub/src/models/t5/__init__.py +++ b/keras_hub/src/models/t5/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.t5.t5_backbone import T5Backbone from keras_hub.src.models.t5.t5_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/t5/t5_backbone.py b/keras_hub/src/models/t5/t5_backbone.py index 49a84cf92e..7e351cba62 100644 --- a/keras_hub/src/models/t5/t5_backbone.py +++ b/keras_hub/src/models/t5/t5_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/t5/t5_backbone_test.py b/keras_hub/src/models/t5/t5_backbone_test.py index ef15dc23e0..ccbe6e6fe3 100644 --- a/keras_hub/src/models/t5/t5_backbone_test.py +++ b/keras_hub/src/models/t5/t5_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/t5/t5_layer_norm.py b/keras_hub/src/models/t5/t5_layer_norm.py index 70a9d9f079..f9d06a94e6 100644 --- a/keras_hub/src/models/t5/t5_layer_norm.py +++ b/keras_hub/src/models/t5/t5_layer_norm.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/t5/t5_multi_head_attention.py b/keras_hub/src/models/t5/t5_multi_head_attention.py index 961be4709c..4815bff7be 100644 --- a/keras_hub/src/models/t5/t5_multi_head_attention.py +++ b/keras_hub/src/models/t5/t5_multi_head_attention.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import numpy as np from keras import ops diff --git a/keras_hub/src/models/t5/t5_preprocessor.py b/keras_hub/src/models/t5/t5_preprocessor.py index 4d7babe762..90fb52a7c8 100644 --- a/keras_hub/src/models/t5/t5_preprocessor.py +++ b/keras_hub/src/models/t5/t5_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/t5/t5_preprocessor_test.py b/keras_hub/src/models/t5/t5_preprocessor_test.py index b2b084675a..12477e2687 100644 --- a/keras_hub/src/models/t5/t5_preprocessor_test.py +++ b/keras_hub/src/models/t5/t5_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os import pytest diff --git a/keras_hub/src/models/t5/t5_presets.py b/keras_hub/src/models/t5/t5_presets.py index e256794477..72edf24b4c 100644 --- a/keras_hub/src/models/t5/t5_presets.py +++ b/keras_hub/src/models/t5/t5_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """XLM-RoBERTa model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/t5/t5_tokenizer.py b/keras_hub/src/models/t5/t5_tokenizer.py index 8e67c918e1..45c3e496cf 100644 --- a/keras_hub/src/models/t5/t5_tokenizer.py +++ b/keras_hub/src/models/t5/t5_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.t5.t5_backbone import T5Backbone from keras_hub.src.tokenizers.sentence_piece_tokenizer import ( diff --git a/keras_hub/src/models/t5/t5_tokenizer_test.py b/keras_hub/src/models/t5/t5_tokenizer_test.py index 95f40eb887..f0e4adde8b 100644 --- a/keras_hub/src/models/t5/t5_tokenizer_test.py +++ b/keras_hub/src/models/t5/t5_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/t5/t5_transformer_layer.py b/keras_hub/src/models/t5/t5_transformer_layer.py index cce369cda6..3ab354610f 100644 --- a/keras_hub/src/models/t5/t5_transformer_layer.py +++ b/keras_hub/src/models/t5/t5_transformer_layer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/task.py b/keras_hub/src/models/task.py index 0cf206f02c..080c67c221 100644 --- a/keras_hub/src/models/task.py +++ b/keras_hub/src/models/task.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import keras diff --git a/keras_hub/src/models/task_test.py b/keras_hub/src/models/task_test.py index 9fefcca050..bcc0b791f4 100644 --- a/keras_hub/src/models/task_test.py +++ b/keras_hub/src/models/task_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pathlib diff --git a/keras_hub/src/models/text_classifier.py b/keras_hub/src/models/text_classifier.py index 54e042c2bd..74875a06ff 100644 --- a/keras_hub/src/models/text_classifier.py +++ b/keras_hub/src/models/text_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/text_classifier_preprocessor.py b/keras_hub/src/models/text_classifier_preprocessor.py index a0c8996d71..4061d5e940 100644 --- a/keras_hub/src/models/text_classifier_preprocessor.py +++ b/keras_hub/src/models/text_classifier_preprocessor.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/text_classifier_preprocessor_test.py b/keras_hub/src/models/text_classifier_preprocessor_test.py index 036563097f..7659d88581 100644 --- a/keras_hub/src/models/text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/text_classifier_preprocessor_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.bert.bert_text_classifier_preprocessor import ( diff --git a/keras_hub/src/models/text_to_image.py b/keras_hub/src/models/text_to_image.py index 8defec0a2f..291a4b023e 100644 --- a/keras_hub/src/models/text_to_image.py +++ b/keras_hub/src/models/text_to_image.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import itertools from functools import partial diff --git a/keras_hub/src/models/vgg/__init__.py b/keras_hub/src/models/vgg/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/vgg/__init__.py +++ b/keras_hub/src/models/vgg/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/vgg/vgg_backbone.py b/keras_hub/src/models/vgg/vgg_backbone.py index 771c45ce5e..7855e8a735 100644 --- a/keras_hub/src/models/vgg/vgg_backbone.py +++ b/keras_hub/src/models/vgg/vgg_backbone.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras import layers diff --git a/keras_hub/src/models/vgg/vgg_backbone_test.py b/keras_hub/src/models/vgg/vgg_backbone_test.py index 76b279dc73..7226e7a8c5 100644 --- a/keras_hub/src/models/vgg/vgg_backbone_test.py +++ b/keras_hub/src/models/vgg/vgg_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/vgg/vgg_image_classifier.py b/keras_hub/src/models/vgg/vgg_image_classifier.py index 2e3c42285a..c535f4ac06 100644 --- a/keras_hub/src/models/vgg/vgg_image_classifier.py +++ b/keras_hub/src/models/vgg/vgg_image_classifier.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/vgg/vgg_image_classifier_test.py b/keras_hub/src/models/vgg/vgg_image_classifier_test.py index b62e56ae99..c2d18904c8 100644 --- a/keras_hub/src/models/vgg/vgg_image_classifier_test.py +++ b/keras_hub/src/models/vgg/vgg_image_classifier_test.py @@ -1,16 +1,3 @@ -# Copyright 2023 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest diff --git a/keras_hub/src/models/vit_det/__init__.py b/keras_hub/src/models/vit_det/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/vit_det/__init__.py +++ b/keras_hub/src/models/vit_det/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/vit_det/vit_det_backbone.py b/keras_hub/src/models/vit_det/vit_det_backbone.py index 82a70b3f5c..94f7887c44 100644 --- a/keras_hub/src/models/vit_det/vit_det_backbone.py +++ b/keras_hub/src/models/vit_det/vit_det_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasCV Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/vit_det/vit_det_backbone_test.py b/keras_hub/src/models/vit_det/vit_det_backbone_test.py index 5bd3e0622b..c8e80c0de0 100644 --- a/keras_hub/src/models/vit_det/vit_det_backbone_test.py +++ b/keras_hub/src/models/vit_det/vit_det_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import pytest diff --git a/keras_hub/src/models/vit_det/vit_layers.py b/keras_hub/src/models/vit_det/vit_layers.py index e784595371..c6dbf24528 100644 --- a/keras_hub/src/models/vit_det/vit_layers.py +++ b/keras_hub/src/models/vit_det/vit_layers.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasCV Authors -# -# 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 -# -# https://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. - - import keras from keras import ops diff --git a/keras_hub/src/models/whisper/__init__.py b/keras_hub/src/models/whisper/__init__.py index c0bb8d319e..cc1ee7afc1 100644 --- a/keras_hub/src/models/whisper/__init__.py +++ b/keras_hub/src/models/whisper/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.whisper.whisper_backbone import WhisperBackbone from keras_hub.src.models.whisper.whisper_presets import backbone_presets from keras_hub.src.utils.preset_utils import register_presets diff --git a/keras_hub/src/models/whisper/whisper_audio_converter.py b/keras_hub/src/models/whisper/whisper_audio_converter.py index 4647fe9f13..633042f547 100644 --- a/keras_hub/src/models/whisper/whisper_audio_converter.py +++ b/keras_hub/src/models/whisper/whisper_audio_converter.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import numpy as np from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/whisper/whisper_audio_converter_test.py b/keras_hub/src/models/whisper/whisper_audio_converter_test.py index bcadbd409c..6e6d451748 100644 --- a/keras_hub/src/models/whisper/whisper_audio_converter_test.py +++ b/keras_hub/src/models/whisper/whisper_audio_converter_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import tensorflow as tf from keras_hub.src.models.whisper.whisper_audio_converter import ( diff --git a/keras_hub/src/models/whisper/whisper_backbone.py b/keras_hub/src/models/whisper/whisper_backbone.py index ec0b9c17e0..c0906a8af9 100644 --- a/keras_hub/src/models/whisper/whisper_backbone.py +++ b/keras_hub/src/models/whisper/whisper_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras import ops diff --git a/keras_hub/src/models/whisper/whisper_backbone_test.py b/keras_hub/src/models/whisper/whisper_backbone_test.py index 9cce1cb1b4..c80e0e3c34 100644 --- a/keras_hub/src/models/whisper/whisper_backbone_test.py +++ b/keras_hub/src/models/whisper/whisper_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/whisper/whisper_cached_multi_head_attention.py b/keras_hub/src/models/whisper/whisper_cached_multi_head_attention.py index 6236df5798..4b53ae3be3 100644 --- a/keras_hub/src/models/whisper/whisper_cached_multi_head_attention.py +++ b/keras_hub/src/models/whisper/whisper_cached_multi_head_attention.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Whisper Cached Multi-Head Attention layer.""" import collections diff --git a/keras_hub/src/models/whisper/whisper_decoder.py b/keras_hub/src/models/whisper/whisper_decoder.py index bea5b46a0f..6926a203e5 100644 --- a/keras_hub/src/models/whisper/whisper_decoder.py +++ b/keras_hub/src/models/whisper/whisper_decoder.py @@ -1,19 +1,5 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Whisper decoder block.""" - import keras from keras_hub.src.layers.modeling.transformer_decoder import TransformerDecoder diff --git a/keras_hub/src/models/whisper/whisper_encoder.py b/keras_hub/src/models/whisper/whisper_encoder.py index 72e316ef39..52892ad13c 100644 --- a/keras_hub/src/models/whisper/whisper_encoder.py +++ b/keras_hub/src/models/whisper/whisper_encoder.py @@ -1,19 +1,5 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Whisper encoder block.""" - import keras from keras_hub.src.layers.modeling.transformer_encoder import TransformerEncoder diff --git a/keras_hub/src/models/whisper/whisper_presets.py b/keras_hub/src/models/whisper/whisper_presets.py index 3e306584df..c25a3ecbe0 100644 --- a/keras_hub/src/models/whisper/whisper_presets.py +++ b/keras_hub/src/models/whisper/whisper_presets.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - # Metadata for loading pretrained model weights. backbone_presets = { "whisper_tiny_en": { diff --git a/keras_hub/src/models/whisper/whisper_tokenizer.py b/keras_hub/src/models/whisper/whisper_tokenizer.py index 39d1e46cef..ee3dd10d81 100644 --- a/keras_hub/src/models/whisper/whisper_tokenizer.py +++ b/keras_hub/src/models/whisper/whisper_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import json from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/whisper/whisper_tokenizer_test.py b/keras_hub/src/models/whisper/whisper_tokenizer_test.py index df9f25f3e0..cd2f21a827 100644 --- a/keras_hub/src/models/whisper/whisper_tokenizer_test.py +++ b/keras_hub/src/models/whisper/whisper_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras_hub.src.models.whisper.whisper_tokenizer import WhisperTokenizer diff --git a/keras_hub/src/models/xlm_roberta/__init__.py b/keras_hub/src/models/xlm_roberta/__init__.py index 7832950edb..4fc59b48e9 100644 --- a/keras_hub/src/models/xlm_roberta/__init__.py +++ b/keras_hub/src/models/xlm_roberta/__init__.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.models.xlm_roberta.xlm_roberta_backbone import ( XLMRobertaBackbone, ) diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone.py index 1d532d22fa..383931e216 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.roberta import roberta_backbone diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone_test.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone_test.py index d79fe672c5..0cce00f77d 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone_test.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm.py index b51e23f9f6..f90f75e92d 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor.py index c7d0bf64de..2b3deaeb9e 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor_test.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor_test.py index b878207622..70bb46dadf 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor_test.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_test.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_test.py index a21f0fe408..c4a8e8d5ed 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_test.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_masked_lm_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_presets.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_presets.py index d34d90d860..d8e291c666 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_presets.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_presets.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """XLM-RoBERTa model preset configurations.""" backbone_presets = { diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier.py index 5a140b4c2a..c38017c209 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor.py index 921b06cbf9..6ba23e3263 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor_test.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor_test.py index 652e76fb9d..df054622b3 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor_test.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_preprocessor_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_test.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_test.py index 5ff67a1c5a..6f318a72af 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_test.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_text_classifier_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer.py index 4f60139bc6..30bb24eb93 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.models.xlm_roberta.xlm_roberta_backbone import ( XLMRobertaBackbone, diff --git a/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer_test.py b/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer_test.py index ea39cdbd08..5d8a64fc2a 100644 --- a/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer_test.py +++ b/keras_hub/src/models/xlm_roberta/xlm_roberta_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/models/xlnet/__init__.py b/keras_hub/src/models/xlnet/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/models/xlnet/__init__.py +++ b/keras_hub/src/models/xlnet/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/models/xlnet/relative_attention.py b/keras_hub/src/models/xlnet/relative_attention.py index 674247a5ed..e94268ed95 100644 --- a/keras_hub/src/models/xlnet/relative_attention.py +++ b/keras_hub/src/models/xlnet/relative_attention.py @@ -1,17 +1,3 @@ -# Copyright 2024 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. - import math import string diff --git a/keras_hub/src/models/xlnet/xlnet_backbone.py b/keras_hub/src/models/xlnet/xlnet_backbone.py index 0b78060928..16adce1d5d 100644 --- a/keras_hub/src/models/xlnet/xlnet_backbone.py +++ b/keras_hub/src/models/xlnet/xlnet_backbone.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/models/xlnet/xlnet_backbone_test.py b/keras_hub/src/models/xlnet/xlnet_backbone_test.py index 6e8000facf..a24ebc38b0 100644 --- a/keras_hub/src/models/xlnet/xlnet_backbone_test.py +++ b/keras_hub/src/models/xlnet/xlnet_backbone_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import pytest from keras import ops diff --git a/keras_hub/src/models/xlnet/xlnet_content_and_query_embedding.py b/keras_hub/src/models/xlnet/xlnet_content_and_query_embedding.py index 1bd7c0bcd2..5ff67decb2 100644 --- a/keras_hub/src/models/xlnet/xlnet_content_and_query_embedding.py +++ b/keras_hub/src/models/xlnet/xlnet_content_and_query_embedding.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/models/xlnet/xlnet_encoder.py b/keras_hub/src/models/xlnet/xlnet_encoder.py index 270fb6c510..6868397cf2 100644 --- a/keras_hub/src/models/xlnet/xlnet_encoder.py +++ b/keras_hub/src/models/xlnet/xlnet_encoder.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops diff --git a/keras_hub/src/samplers/__init__.py b/keras_hub/src/samplers/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/samplers/__init__.py +++ b/keras_hub/src/samplers/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/samplers/beam_sampler.py b/keras_hub/src/samplers/beam_sampler.py index 477125b0b7..26941e9f3a 100644 --- a/keras_hub/src/samplers/beam_sampler.py +++ b/keras_hub/src/samplers/beam_sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops from keras import tree diff --git a/keras_hub/src/samplers/beam_sampler_test.py b/keras_hub/src/samplers/beam_sampler_test.py index 71323d5e18..b565eae8b4 100644 --- a/keras_hub/src/samplers/beam_sampler_test.py +++ b/keras_hub/src/samplers/beam_sampler_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.samplers.beam_sampler import BeamSampler diff --git a/keras_hub/src/samplers/contrastive_sampler.py b/keras_hub/src/samplers/contrastive_sampler.py index 8efe8fa9ff..6cecc62272 100644 --- a/keras_hub/src/samplers/contrastive_sampler.py +++ b/keras_hub/src/samplers/contrastive_sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import tree diff --git a/keras_hub/src/samplers/contrastive_sampler_test.py b/keras_hub/src/samplers/contrastive_sampler_test.py index 7cdecc3dcf..a8284921b3 100644 --- a/keras_hub/src/samplers/contrastive_sampler_test.py +++ b/keras_hub/src/samplers/contrastive_sampler_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops diff --git a/keras_hub/src/samplers/greedy_sampler.py b/keras_hub/src/samplers/greedy_sampler.py index 1e6b422f18..aa8ad2a574 100644 --- a/keras_hub/src/samplers/greedy_sampler.py +++ b/keras_hub/src/samplers/greedy_sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/samplers/greedy_sampler_test.py b/keras_hub/src/samplers/greedy_sampler_test.py index 3450f7b594..0768aacb81 100644 --- a/keras_hub/src/samplers/greedy_sampler_test.py +++ b/keras_hub/src/samplers/greedy_sampler_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.samplers.greedy_sampler import GreedySampler diff --git a/keras_hub/src/samplers/random_sampler.py b/keras_hub/src/samplers/random_sampler.py index 2ceb9d363c..368f7ca71e 100644 --- a/keras_hub/src/samplers/random_sampler.py +++ b/keras_hub/src/samplers/random_sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import random diff --git a/keras_hub/src/samplers/random_sampler_test.py b/keras_hub/src/samplers/random_sampler_test.py index cd6c919681..1ac07722e1 100644 --- a/keras_hub/src/samplers/random_sampler_test.py +++ b/keras_hub/src/samplers/random_sampler_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops diff --git a/keras_hub/src/samplers/sampler.py b/keras_hub/src/samplers/sampler.py index 41514c4662..a4046b6d6a 100644 --- a/keras_hub/src/samplers/sampler.py +++ b/keras_hub/src/samplers/sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras import ops from keras import random diff --git a/keras_hub/src/samplers/serialization.py b/keras_hub/src/samplers/serialization.py index 10639f14ab..d8a4d591b1 100644 --- a/keras_hub/src/samplers/serialization.py +++ b/keras_hub/src/samplers/serialization.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/samplers/serialization_test.py b/keras_hub/src/samplers/serialization_test.py index e12e501904..7c89fab47b 100644 --- a/keras_hub/src/samplers/serialization_test.py +++ b/keras_hub/src/samplers/serialization_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.samplers.serialization import deserialize from keras_hub.src.samplers.serialization import get from keras_hub.src.samplers.serialization import serialize diff --git a/keras_hub/src/samplers/top_k_sampler.py b/keras_hub/src/samplers/top_k_sampler.py index 6ac742cafe..e0e4a339c5 100644 --- a/keras_hub/src/samplers/top_k_sampler.py +++ b/keras_hub/src/samplers/top_k_sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import random diff --git a/keras_hub/src/samplers/top_k_sampler_test.py b/keras_hub/src/samplers/top_k_sampler_test.py index f28cef0987..f1a2369891 100644 --- a/keras_hub/src/samplers/top_k_sampler_test.py +++ b/keras_hub/src/samplers/top_k_sampler_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras_hub.src.samplers.top_k_sampler import TopKSampler diff --git a/keras_hub/src/samplers/top_p_sampler.py b/keras_hub/src/samplers/top_p_sampler.py index f71c49ef71..4477acaf77 100644 --- a/keras_hub/src/samplers/top_p_sampler.py +++ b/keras_hub/src/samplers/top_p_sampler.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras import ops from keras import random diff --git a/keras_hub/src/samplers/top_p_sampler_test.py b/keras_hub/src/samplers/top_p_sampler_test.py index 41141b0486..5cd30ada2a 100644 --- a/keras_hub/src/samplers/top_p_sampler_test.py +++ b/keras_hub/src/samplers/top_p_sampler_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np from keras import ops diff --git a/keras_hub/src/tests/__init__.py b/keras_hub/src/tests/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/tests/__init__.py +++ b/keras_hub/src/tests/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/tests/doc_tests/__init__.py b/keras_hub/src/tests/doc_tests/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/tests/doc_tests/__init__.py +++ b/keras_hub/src/tests/doc_tests/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/tests/doc_tests/docstring_lib.py b/keras_hub/src/tests/doc_tests/docstring_lib.py index 7b4611b917..b343079063 100644 --- a/keras_hub/src/tests/doc_tests/docstring_lib.py +++ b/keras_hub/src/tests/doc_tests/docstring_lib.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import doctest import re import textwrap diff --git a/keras_hub/src/tests/doc_tests/docstring_test.py b/keras_hub/src/tests/doc_tests/docstring_test.py index 03c3f72c3d..5df08c99e9 100644 --- a/keras_hub/src/tests/doc_tests/docstring_test.py +++ b/keras_hub/src/tests/doc_tests/docstring_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import doctest import io import os diff --git a/keras_hub/src/tests/doc_tests/fenced_docstring_lib.py b/keras_hub/src/tests/doc_tests/fenced_docstring_lib.py index a6e73eb1b6..a1c0a804be 100644 --- a/keras_hub/src/tests/doc_tests/fenced_docstring_lib.py +++ b/keras_hub/src/tests/doc_tests/fenced_docstring_lib.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import ast import doctest import re diff --git a/keras_hub/src/tests/test_case.py b/keras_hub/src/tests/test_case.py index e88ed79709..310d8e8b44 100644 --- a/keras_hub/src/tests/test_case.py +++ b/keras_hub/src/tests/test_case.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import json import os import pathlib diff --git a/keras_hub/src/tokenizers/__init__.py b/keras_hub/src/tokenizers/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/tokenizers/__init__.py +++ b/keras_hub/src/tokenizers/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/tokenizers/byte_pair_tokenizer.py b/keras_hub/src/tokenizers/byte_pair_tokenizer.py index 5e4d778374..41cef2b652 100644 --- a/keras_hub/src/tokenizers/byte_pair_tokenizer.py +++ b/keras_hub/src/tokenizers/byte_pair_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - """Byte-pair encoder implementation. This file implements the same logic as openai BPE: diff --git a/keras_hub/src/tokenizers/byte_pair_tokenizer_test.py b/keras_hub/src/tokenizers/byte_pair_tokenizer_test.py index 167827b032..5995df2fed 100644 --- a/keras_hub/src/tokenizers/byte_pair_tokenizer_test.py +++ b/keras_hub/src/tokenizers/byte_pair_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras import pytest import tensorflow as tf diff --git a/keras_hub/src/tokenizers/byte_tokenizer.py b/keras_hub/src/tokenizers/byte_tokenizer.py index 5c9bb2d793..1a757054d1 100644 --- a/keras_hub/src/tokenizers/byte_tokenizer.py +++ b/keras_hub/src/tokenizers/byte_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np try: diff --git a/keras_hub/src/tokenizers/byte_tokenizer_test.py b/keras_hub/src/tokenizers/byte_tokenizer_test.py index c3d130fb2d..234cbfa1ac 100644 --- a/keras_hub/src/tokenizers/byte_tokenizer_test.py +++ b/keras_hub/src/tokenizers/byte_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import tensorflow as tf from keras_hub.src.tests.test_case import TestCase diff --git a/keras_hub/src/tokenizers/sentence_piece_tokenizer.py b/keras_hub/src/tokenizers/sentence_piece_tokenizer.py index 00e173728c..d2e8fadcb7 100644 --- a/keras_hub/src/tokenizers/sentence_piece_tokenizer.py +++ b/keras_hub/src/tokenizers/sentence_piece_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import base64 import binascii import os diff --git a/keras_hub/src/tokenizers/sentence_piece_tokenizer_test.py b/keras_hub/src/tokenizers/sentence_piece_tokenizer_test.py index 9e35e3b399..1ada7e2314 100644 --- a/keras_hub/src/tokenizers/sentence_piece_tokenizer_test.py +++ b/keras_hub/src/tokenizers/sentence_piece_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import tensorflow as tf diff --git a/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer.py b/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer.py index fe8dea99b8..8702db69f3 100644 --- a/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer.py +++ b/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import io try: diff --git a/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer_test.py b/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer_test.py index 363fbc7d52..544764f074 100644 --- a/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer_test.py +++ b/keras_hub/src/tokenizers/sentence_piece_tokenizer_trainer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import re diff --git a/keras_hub/src/tokenizers/tokenizer.py b/keras_hub/src/tokenizers/tokenizer.py index 534e8ef90e..914e41a21e 100644 --- a/keras_hub/src/tokenizers/tokenizer.py +++ b/keras_hub/src/tokenizers/tokenizer.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import os from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/tokenizers/tokenizer_test.py b/keras_hub/src/tokenizers/tokenizer_test.py index 093ae5fc7e..5c7d840805 100644 --- a/keras_hub/src/tokenizers/tokenizer_test.py +++ b/keras_hub/src/tokenizers/tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import pytest diff --git a/keras_hub/src/tokenizers/unicode_codepoint_tokenizer.py b/keras_hub/src/tokenizers/unicode_codepoint_tokenizer.py index 727b015b55..2e71ebd4c3 100644 --- a/keras_hub/src/tokenizers/unicode_codepoint_tokenizer.py +++ b/keras_hub/src/tokenizers/unicode_codepoint_tokenizer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.tokenizers import tokenizer from keras_hub.src.utils.tensor_utils import convert_to_ragged_batch diff --git a/keras_hub/src/tokenizers/unicode_codepoint_tokenizer_test.py b/keras_hub/src/tokenizers/unicode_codepoint_tokenizer_test.py index 8112d2d633..495e9e56ff 100644 --- a/keras_hub/src/tokenizers/unicode_codepoint_tokenizer_test.py +++ b/keras_hub/src/tokenizers/unicode_codepoint_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import tensorflow as tf from keras_hub.src.tests.test_case import TestCase diff --git a/keras_hub/src/tokenizers/word_piece_tokenizer.py b/keras_hub/src/tokenizers/word_piece_tokenizer.py index 9a9ea0f444..2cbe2a27ae 100644 --- a/keras_hub/src/tokenizers/word_piece_tokenizer.py +++ b/keras_hub/src/tokenizers/word_piece_tokenizer.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import re from typing import Iterable diff --git a/keras_hub/src/tokenizers/word_piece_tokenizer_test.py b/keras_hub/src/tokenizers/word_piece_tokenizer_test.py index e0234d26f8..fb281698e3 100644 --- a/keras_hub/src/tokenizers/word_piece_tokenizer_test.py +++ b/keras_hub/src/tokenizers/word_piece_tokenizer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import tensorflow as tf diff --git a/keras_hub/src/tokenizers/word_piece_tokenizer_trainer.py b/keras_hub/src/tokenizers/word_piece_tokenizer_trainer.py index 4ecbe5aca4..8d9d459459 100644 --- a/keras_hub/src/tokenizers/word_piece_tokenizer_trainer.py +++ b/keras_hub/src/tokenizers/word_piece_tokenizer_trainer.py @@ -1,18 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - - from keras_hub.src.api_export import keras_hub_export from keras_hub.src.tokenizers.word_piece_tokenizer import pretokenize diff --git a/keras_hub/src/tokenizers/word_piece_tokenizer_trainer_test.py b/keras_hub/src/tokenizers/word_piece_tokenizer_trainer_test.py index 9601e1376f..da46b0d906 100644 --- a/keras_hub/src/tokenizers/word_piece_tokenizer_trainer_test.py +++ b/keras_hub/src/tokenizers/word_piece_tokenizer_trainer_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import tensorflow as tf diff --git a/keras_hub/src/utils/__init__.py b/keras_hub/src/utils/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/utils/__init__.py +++ b/keras_hub/src/utils/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/utils/imagenet/__init__.py b/keras_hub/src/utils/imagenet/__init__.py index 3364a6bd16..e69de29bb2 100644 --- a/keras_hub/src/utils/imagenet/__init__.py +++ b/keras_hub/src/utils/imagenet/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasNLP Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/utils/imagenet/imagenet_utils.py b/keras_hub/src/utils/imagenet/imagenet_utils.py index bb6e7c6068..fd963d6717 100644 --- a/keras_hub/src/utils/imagenet/imagenet_utils.py +++ b/keras_hub/src/utils/imagenet/imagenet_utils.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasNLP Authors -# -# 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 -# -# https://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. from keras import ops from keras_hub.src.api_export import keras_hub_export diff --git a/keras_hub/src/utils/imagenet/imagenet_utils_test.py b/keras_hub/src/utils/imagenet/imagenet_utils_test.py index 702cf8b270..0e1dfc29a6 100644 --- a/keras_hub/src/utils/imagenet/imagenet_utils_test.py +++ b/keras_hub/src/utils/imagenet/imagenet_utils_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasNLP Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.tests.test_case import TestCase diff --git a/keras_hub/src/utils/keras_utils.py b/keras_hub/src/utils/keras_utils.py index dd2bd5ef9e..6cc4dddc4b 100644 --- a/keras_hub/src/utils/keras_utils.py +++ b/keras_hub/src/utils/keras_utils.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import sys import keras diff --git a/keras_hub/src/utils/keras_utils_test.py b/keras_hub/src/utils/keras_utils_test.py index 1c2fa94215..a3b3805c3c 100644 --- a/keras_hub/src/utils/keras_utils_test.py +++ b/keras_hub/src/utils/keras_utils_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import keras from keras_hub.src.tests.test_case import TestCase diff --git a/keras_hub/src/utils/pipeline_model.py b/keras_hub/src/utils/pipeline_model.py index 4c215f717b..68bc4d8877 100644 --- a/keras_hub/src/utils/pipeline_model.py +++ b/keras_hub/src/utils/pipeline_model.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import functools import math diff --git a/keras_hub/src/utils/pipeline_model_test.py b/keras_hub/src/utils/pipeline_model_test.py index 8e20a1b7ad..101171597c 100644 --- a/keras_hub/src/utils/pipeline_model_test.py +++ b/keras_hub/src/utils/pipeline_model_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import os import keras diff --git a/keras_hub/src/utils/preset_utils.py b/keras_hub/src/utils/preset_utils.py index 646c7ccb5f..c628c2d012 100644 --- a/keras_hub/src/utils/preset_utils.py +++ b/keras_hub/src/utils/preset_utils.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import collections import datetime import inspect diff --git a/keras_hub/src/utils/preset_utils_test.py b/keras_hub/src/utils/preset_utils_test.py index e82fd5de5c..e71e44f87b 100644 --- a/keras_hub/src/utils/preset_utils_test.py +++ b/keras_hub/src/utils/preset_utils_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import json import os diff --git a/keras_hub/src/utils/python_utils.py b/keras_hub/src/utils/python_utils.py index 61de0bf6b5..4eea83dd25 100644 --- a/keras_hub/src/utils/python_utils.py +++ b/keras_hub/src/utils/python_utils.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Utilities with miscellaneous python extensions.""" diff --git a/keras_hub/src/utils/python_utils_test.py b/keras_hub/src/utils/python_utils_test.py index 75dd808c69..a7e978fcce 100644 --- a/keras_hub/src/utils/python_utils_test.py +++ b/keras_hub/src/utils/python_utils_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.tests.test_case import TestCase from keras_hub.src.utils.python_utils import classproperty diff --git a/keras_hub/src/utils/tensor_utils.py b/keras_hub/src/utils/tensor_utils.py index 78f88a20d4..3d18aae99d 100644 --- a/keras_hub/src/utils/tensor_utils.py +++ b/keras_hub/src/utils/tensor_utils.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import contextlib import functools import inspect diff --git a/keras_hub/src/utils/tensor_utils_test.py b/keras_hub/src/utils/tensor_utils_test.py index 82aa6ac387..42d04a029b 100644 --- a/keras_hub/src/utils/tensor_utils_test.py +++ b/keras_hub/src/utils/tensor_utils_test.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - import numpy as np import tensorflow as tf from keras import ops diff --git a/keras_hub/src/utils/timm/__init__.py b/keras_hub/src/utils/timm/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/utils/timm/__init__.py +++ b/keras_hub/src/utils/timm/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/utils/timm/convert_resnet.py b/keras_hub/src/utils/timm/convert_resnet.py index f5dc10e822..0d2a8cbfd3 100644 --- a/keras_hub/src/utils/timm/convert_resnet.py +++ b/keras_hub/src/utils/timm/convert_resnet.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.resnet.resnet_backbone import ResNetBackbone diff --git a/keras_hub/src/utils/timm/convert_resnet_test.py b/keras_hub/src/utils/timm/convert_resnet_test.py index 70cb69b9d5..7e18320b72 100644 --- a/keras_hub/src/utils/timm/convert_resnet_test.py +++ b/keras_hub/src/utils/timm/convert_resnet_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras import ops diff --git a/keras_hub/src/utils/timm/preset_loader.py b/keras_hub/src/utils/timm/preset_loader.py index ea67c81e97..3fed71e67c 100644 --- a/keras_hub/src/utils/timm/preset_loader.py +++ b/keras_hub/src/utils/timm/preset_loader.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Convert timm models to KerasHub.""" from keras_hub.src.models.image_classifier import ImageClassifier diff --git a/keras_hub/src/utils/transformers/__init__.py b/keras_hub/src/utils/transformers/__init__.py index fd48fde00f..e69de29bb2 100644 --- a/keras_hub/src/utils/transformers/__init__.py +++ b/keras_hub/src/utils/transformers/__init__.py @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/keras_hub/src/utils/transformers/convert_albert.py b/keras_hub/src/utils/transformers/convert_albert.py index 78c25f4503..3c702cf0dc 100644 --- a/keras_hub/src/utils/transformers/convert_albert.py +++ b/keras_hub/src/utils/transformers/convert_albert.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.albert.albert_backbone import AlbertBackbone diff --git a/keras_hub/src/utils/transformers/convert_albert_test.py b/keras_hub/src/utils/transformers/convert_albert_test.py index 2a4253a44d..8107ef5f81 100644 --- a/keras_hub/src/utils/transformers/convert_albert_test.py +++ b/keras_hub/src/utils/transformers/convert_albert_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.albert.albert_backbone import AlbertBackbone diff --git a/keras_hub/src/utils/transformers/convert_bart.py b/keras_hub/src/utils/transformers/convert_bart.py index 9c0a2f048e..f831cccbb5 100644 --- a/keras_hub/src/utils/transformers/convert_bart.py +++ b/keras_hub/src/utils/transformers/convert_bart.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.bart.bart_backbone import BartBackbone diff --git a/keras_hub/src/utils/transformers/convert_bart_test.py b/keras_hub/src/utils/transformers/convert_bart_test.py index bc174f4105..e7d165cc74 100644 --- a/keras_hub/src/utils/transformers/convert_bart_test.py +++ b/keras_hub/src/utils/transformers/convert_bart_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_bert.py b/keras_hub/src/utils/transformers/convert_bert.py index e57fa051aa..f4ed8b5608 100644 --- a/keras_hub/src/utils/transformers/convert_bert.py +++ b/keras_hub/src/utils/transformers/convert_bert.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.bert.bert_backbone import BertBackbone diff --git a/keras_hub/src/utils/transformers/convert_bert_test.py b/keras_hub/src/utils/transformers/convert_bert_test.py index cbd8803a9b..b6a7e1e68d 100644 --- a/keras_hub/src/utils/transformers/convert_bert_test.py +++ b/keras_hub/src/utils/transformers/convert_bert_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_distilbert.py b/keras_hub/src/utils/transformers/convert_distilbert.py index c4a31ce2eb..526ed1dd99 100644 --- a/keras_hub/src/utils/transformers/convert_distilbert.py +++ b/keras_hub/src/utils/transformers/convert_distilbert.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.distil_bert.distil_bert_backbone import ( diff --git a/keras_hub/src/utils/transformers/convert_distilbert_test.py b/keras_hub/src/utils/transformers/convert_distilbert_test.py index 0463c9eaf7..c390e89e80 100644 --- a/keras_hub/src/utils/transformers/convert_distilbert_test.py +++ b/keras_hub/src/utils/transformers/convert_distilbert_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_gemma.py b/keras_hub/src/utils/transformers/convert_gemma.py index e26151d5a9..d6ef141128 100644 --- a/keras_hub/src/utils/transformers/convert_gemma.py +++ b/keras_hub/src/utils/transformers/convert_gemma.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.gemma.gemma_backbone import GemmaBackbone diff --git a/keras_hub/src/utils/transformers/convert_gemma_test.py b/keras_hub/src/utils/transformers/convert_gemma_test.py index bfa9b6d7df..0881f61138 100644 --- a/keras_hub/src/utils/transformers/convert_gemma_test.py +++ b/keras_hub/src/utils/transformers/convert_gemma_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_gpt2.py b/keras_hub/src/utils/transformers/convert_gpt2.py index d4a6de9898..9f45a7aaa8 100644 --- a/keras_hub/src/utils/transformers/convert_gpt2.py +++ b/keras_hub/src/utils/transformers/convert_gpt2.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.gpt2.gpt2_backbone import GPT2Backbone diff --git a/keras_hub/src/utils/transformers/convert_gpt2_test.py b/keras_hub/src/utils/transformers/convert_gpt2_test.py index 9ea2df33b2..39391e7ffe 100644 --- a/keras_hub/src/utils/transformers/convert_gpt2_test.py +++ b/keras_hub/src/utils/transformers/convert_gpt2_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_llama3.py b/keras_hub/src/utils/transformers/convert_llama3.py index 9675ab42a0..1207e5bc78 100644 --- a/keras_hub/src/utils/transformers/convert_llama3.py +++ b/keras_hub/src/utils/transformers/convert_llama3.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.llama3.llama3_backbone import Llama3Backbone diff --git a/keras_hub/src/utils/transformers/convert_llama3_test.py b/keras_hub/src/utils/transformers/convert_llama3_test.py index e24e100f0f..28cd3b125d 100644 --- a/keras_hub/src/utils/transformers/convert_llama3_test.py +++ b/keras_hub/src/utils/transformers/convert_llama3_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_mistral.py b/keras_hub/src/utils/transformers/convert_mistral.py index 5630c0bbdb..9c52a708ef 100644 --- a/keras_hub/src/utils/transformers/convert_mistral.py +++ b/keras_hub/src/utils/transformers/convert_mistral.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.mistral.mistral_backbone import MistralBackbone diff --git a/keras_hub/src/utils/transformers/convert_mistral_test.py b/keras_hub/src/utils/transformers/convert_mistral_test.py index 76601c5db9..f8e73ad5ea 100644 --- a/keras_hub/src/utils/transformers/convert_mistral_test.py +++ b/keras_hub/src/utils/transformers/convert_mistral_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import pytest from keras_hub.src.models.backbone import Backbone diff --git a/keras_hub/src/utils/transformers/convert_pali_gemma.py b/keras_hub/src/utils/transformers/convert_pali_gemma.py index dc5eb5a068..80cdeafd9d 100644 --- a/keras_hub/src/utils/transformers/convert_pali_gemma.py +++ b/keras_hub/src/utils/transformers/convert_pali_gemma.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np from keras_hub.src.models.pali_gemma.pali_gemma_backbone import ( diff --git a/keras_hub/src/utils/transformers/convert_pali_gemma_test.py b/keras_hub/src/utils/transformers/convert_pali_gemma_test.py index f225caf11e..fba5620826 100644 --- a/keras_hub/src/utils/transformers/convert_pali_gemma_test.py +++ b/keras_hub/src/utils/transformers/convert_pali_gemma_test.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import numpy as np import pytest diff --git a/keras_hub/src/utils/transformers/preset_loader.py b/keras_hub/src/utils/transformers/preset_loader.py index a88cec246b..b285a3c090 100644 --- a/keras_hub/src/utils/transformers/preset_loader.py +++ b/keras_hub/src/utils/transformers/preset_loader.py @@ -1,19 +1,5 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. """Convert huggingface models to KerasHub.""" - from keras_hub.src.utils.preset_utils import PresetLoader from keras_hub.src.utils.preset_utils import jax_memory_cleanup from keras_hub.src.utils.transformers import convert_albert diff --git a/keras_hub/src/utils/transformers/safetensor_utils.py b/keras_hub/src/utils/transformers/safetensor_utils.py index ee4d21a873..e7d6a2b234 100644 --- a/keras_hub/src/utils/transformers/safetensor_utils.py +++ b/keras_hub/src/utils/transformers/safetensor_utils.py @@ -1,16 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. import contextlib from keras_hub.src.utils.preset_utils import SAFETENSOR_CONFIG_FILE diff --git a/keras_hub/src/version_utils.py b/keras_hub/src/version_utils.py index 3cd530a729..1b36b8e41f 100644 --- a/keras_hub/src/version_utils.py +++ b/keras_hub/src/version_utils.py @@ -1,17 +1,3 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. - from keras_hub.src.api_export import keras_hub_export # Unique source of truth for the version number. diff --git a/shell/copyright.txt b/shell/copyright.txt deleted file mode 100644 index fd48fde00f..0000000000 --- a/shell/copyright.txt +++ /dev/null @@ -1,13 +0,0 @@ -# Copyright 2024 The KerasHub Authors -# -# 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 -# -# https://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. diff --git a/shell/format.sh b/shell/format.sh index 8ad80fa058..5d63f8cefc 100755 --- a/shell/format.sh +++ b/shell/format.sh @@ -5,12 +5,4 @@ targets="${base_dir}" isort --sp "${base_dir}/pyproject.toml" ${targets} black --config "${base_dir}/pyproject.toml" ${targets} - -for i in $(find ${targets} -name '*.py'); do - if ! grep -q Copyright $i; then - echo $i - cat shell/copyright.txt $i >$i.new && mv $i.new $i - fi -done - flake8 --config "${base_dir}/setup.cfg" ${targets} diff --git a/shell/lint.sh b/shell/lint.sh index c59ff4579e..edc36ad954 100755 --- a/shell/lint.sh +++ b/shell/lint.sh @@ -20,9 +20,3 @@ if ! [ $? -eq 0 ]; then echo "Please run \"./shell/format.sh\" to format the code." exit 1 fi -for i in $(find ${targets} -name '*.py'); do - if ! grep -q Copyright $i; then - echo "Please run \"./shell/format.sh\" to format the code." - exit 1 - fi -done