From bad3dbe3657e5a6d9b11684e1411f109159fad29 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:20:41 +0000 Subject: [PATCH 1/8] chore(pre-commit): [pre-commit.ci] autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.9 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.9...v0.2.0) - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/pycqa/flake8: 6.1.0 → 7.0.0](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99e5782d..971fb6cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,7 +30,7 @@ repos: hooks: - id: clang-format - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.9 + rev: v0.2.0 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -39,7 +39,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black-jupyter - repo: https://github.com/asottile/pyupgrade @@ -52,7 +52,7 @@ repos: ^examples/ ) - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: From 5512d08a404a19eaafa0efec525ad436c428857a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:20:58 +0000 Subject: [PATCH 2/8] fix: [pre-commit.ci] auto fixes [...] --- torchopt/base.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/torchopt/base.py b/torchopt/base.py index cab2b49f..d55aa0dc 100644 --- a/torchopt/base.py +++ b/torchopt/base.py @@ -164,9 +164,11 @@ def __new__(cls, *transformations: GradientTransformation) -> Self: """Create a new chained gradient transformation.""" transformations = tuple( itertools.chain.from_iterable( - t.transformations - if isinstance(t, ChainedGradientTransformation) - else ((t,) if not isinstance(t, IdentityGradientTransformation) else ()) + ( + t.transformations + if isinstance(t, ChainedGradientTransformation) + else ((t,) if not isinstance(t, IdentityGradientTransformation) else ()) + ) for t in transformations ), ) From 422dcfcbfc18f1f097dd20b82b555b500bc9094f Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 18 Mar 2024 09:30:55 +0000 Subject: [PATCH 3/8] chore(pre-commit): update pre-commit hooks --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 971fb6cb..d36f0472 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,11 +26,11 @@ repos: - id: debug-statements - id: double-quote-string-fixer - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.6 + rev: v18.1.1 hooks: - id: clang-format - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.2.0 + rev: v0.3.3 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] @@ -39,11 +39,11 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 24.1.1 + rev: 24.3.0 hooks: - id: black-jupyter - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.1 hooks: - id: pyupgrade args: [--py38-plus] # sync with requires-python From 3602f8bb46e4cb9421cb059cc4f27dab402a550d Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 18 Mar 2024 09:40:31 +0000 Subject: [PATCH 4/8] chore(pre-commit): update pre-commit hooks --- pyproject.toml | 17 +++++++++-------- torchopt/transform/scale_by_rms.py | 4 ++-- torchopt/visual.py | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 31d20f88..7b5767b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -176,7 +176,6 @@ test-command = """ # Linter tools ################################################################# [tool.black] -safe = true line-length = 100 skip-string-normalization = true # Sync with requires-python @@ -194,7 +193,7 @@ multi_line_output = 3 [tool.mypy] # Sync with requires-python -python_version = 3.8 +python_version = "3.8" pretty = true show_error_codes = true show_error_context = true @@ -226,9 +225,11 @@ ignore-words = "docs/source/spelling_wordlist.txt" # Sync with requires-python target-version = "py38" line-length = 100 -show-source = true +output-format = "full" src = ["torchopt", "tests"] extend-exclude = ["examples"] + +[tool.ruff.lint] select = [ "E", "W", # pycodestyle "F", # pyflakes @@ -271,7 +272,7 @@ ignore = [ ] typing-modules = ["torchopt.typing"] -[tool.ruff.per-file-ignores] +[tool.ruff.lint.per-file-ignores] "__init__.py" = [ "F401", # unused-import ] @@ -294,18 +295,18 @@ typing-modules = ["torchopt.typing"] "F811", # redefined-while-unused ] -[tool.ruff.flake8-annotations] +[tool.ruff.lint.flake8-annotations] allow-star-arg-any = true -[tool.ruff.flake8-quotes] +[tool.ruff.lint.flake8-quotes] docstring-quotes = "double" multiline-quotes = "double" inline-quotes = "single" -[tool.ruff.flake8-tidy-imports] +[tool.ruff.lint.flake8-tidy-imports] ban-relative-imports = "all" -[tool.ruff.pylint] +[tool.ruff.lint.pylint] allow-magic-value-types = ["int", "str", "float"] [tool.pytest.ini_options] diff --git a/torchopt/transform/scale_by_rms.py b/torchopt/transform/scale_by_rms.py index 084be839..483fd259 100644 --- a/torchopt/transform/scale_by_rms.py +++ b/torchopt/transform/scale_by_rms.py @@ -135,14 +135,14 @@ def update_fn( ) if inplace: - + # pylint: disable-next=invalid-name def f(n: torch.Tensor, g: torch.Tensor | None) -> torch.Tensor | None: return g.div_(n.sqrt().add_(eps)) if g is not None else g tree_map_(f, nu, updates) else: - + # pylint: disable-next=invalid-name def f(n: torch.Tensor, g: torch.Tensor | None) -> torch.Tensor | None: return g.div(n.sqrt().add(eps)) if g is not None else g diff --git a/torchopt/visual.py b/torchopt/visual.py index 47a7f5d5..aaabd5a3 100644 --- a/torchopt/visual.py +++ b/torchopt/visual.py @@ -145,7 +145,7 @@ def size_to_str(size: tuple[int, ...]) -> str: def get_var_name(var: torch.Tensor, name: str | None = None) -> str: if not name: - name = param_map[var] if var in param_map else '' + name = param_map.get(var, '') return f'{name}\n{size_to_str(var.size())}' def get_var_name_with_flag(var: torch.Tensor) -> str | None: From 2c76f35730e4461c3c0ae6e482c50d2a58bf16df Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Mon, 18 Mar 2024 12:29:17 +0000 Subject: [PATCH 5/8] lint: update mypy config --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7b5767b7..f3a5645b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -200,8 +200,8 @@ show_error_context = true show_traceback = true allow_redefinition = true check_untyped_defs = true -disallow_incomplete_defs = false -disallow_untyped_defs = false +disallow_incomplete_defs = true +disallow_untyped_defs = true ignore_missing_imports = true no_implicit_optional = true strict_equality = true From 11201ff2b9dfbdde374821783f0488adefd946db Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 19 Mar 2024 00:31:20 +0800 Subject: [PATCH 6/8] deps: pin optax version in tests --- tests/requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/requirements.txt b/tests/requirements.txt index 87c994e1..397ac350 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -5,7 +5,8 @@ torch >= 1.13 jax[cpu] >= 0.3; platform_system != 'Windows' jaxopt; platform_system != 'Windows' -optax; platform_system != 'Windows' +optax < 0.1.8a0; platform_system != 'Windows' and python_version < '3.9' +optax >= 0.1.8; platform_system != 'Windows' and python_version >= '3.9' pytest pytest-cov From 79b29bfcbf350c29375f1712751357ef258932a9 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 19 Mar 2024 00:45:24 +0800 Subject: [PATCH 7/8] chore: misc --- .readthedocs.yaml | 4 ++-- Makefile | 19 ++++++++++++++++--- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 6a9c387e..c014fa97 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,9 +7,9 @@ version: 2 # Set the version of Python and other tools you might need build: - os: ubuntu-20.04 + os: ubuntu-lts-latest tools: - python: mambaforge-4.10 + python: mambaforge-latest jobs: post_install: - python -m pip install --upgrade pip setuptools diff --git a/Makefile b/Makefile index 0f7dd74e..1c42fcd7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -print-% : ; @echo $* = $($*) +print-%: ; @echo $* = $($*) PROJECT_NAME = torchopt COPYRIGHT = "MetaOPT Team. All Rights Reserved." PROJECT_PATH = $(PROJECT_NAME) @@ -22,7 +22,7 @@ install: install-editable: $(PYTHON) -m pip install --upgrade pip $(PYTHON) -m pip install --upgrade setuptools wheel - $(PYTHON) -m pip install torch numpy pybind11 + $(PYTHON) -m pip install torch numpy pybind11 cmake USE_FP16=ON TORCH_CUDA_ARCH_LIST=Auto $(PYTHON) -m pip install -vvv --no-build-isolation --editable . install-e: install-editable # alias @@ -112,6 +112,7 @@ addlicense-install: go-install # Tests pytest: test-install + $(PYTHON) -m pytest --version cd tests && $(PYTHON) -c 'import $(PROJECT_PATH)' && \ $(PYTHON) -m pytest --verbose --color=yes --durations=0 \ --cov="$(PROJECT_PATH)" --cov-config=.coveragerc --cov-report=xml --cov-report=term-missing \ @@ -122,30 +123,39 @@ test: pytest # Python linters pylint: pylint-install + $(PYTHON) -m pylint --version $(PYTHON) -m pylint $(PROJECT_PATH) flake8: flake8-install + $(PYTHON) -m flake8 --version $(PYTHON) -m flake8 --count --show-source --statistics py-format: py-format-install + $(PYTHON) -m isort --version + $(PYTHON) -m black --version $(PYTHON) -m isort --project $(PROJECT_PATH) --check $(PYTHON_FILES) && \ $(PYTHON) -m black --check $(PYTHON_FILES) tutorials ruff: ruff-install + $(PYTHON) -m ruff --version $(PYTHON) -m ruff check . ruff-fix: ruff-install + $(PYTHON) -m ruff --version $(PYTHON) -m ruff check . --fix --exit-non-zero-on-fix mypy: mypy-install + $(PYTHON) -m mypy --version $(PYTHON) -m mypy $(PROJECT_PATH) --install-types --non-interactive pre-commit: pre-commit-install + $(PYTHON) -m pre_commit --version $(PYTHON) -m pre_commit run --all-files # C++ linters cmake-configure: cmake-install + cmake --version cmake -S . -B cmake-build-debug \ -DCMAKE_BUILD_TYPE=Debug \ -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ @@ -157,13 +167,16 @@ cmake-build: cmake-configure cmake: cmake-build cpplint: cpplint-install + $(PYTHON) -m cpplint --version $(PYTHON) -m cpplint $(CXX_FILES) $(CUDA_FILES) clang-format: clang-format-install + $(CLANG_FORMAT) --version $(CLANG_FORMAT) --style=file -i $(CXX_FILES) $(CUDA_FILES) -n --Werror clang-tidy: clang-tidy-install cmake-configure - clang-tidy -p=cmake-build-debug $(CXX_FILES) + clang-tidy --version + clang-tidy --extra-arg="-v" -p=cmake-build-debug $(CXX_FILES) # Documentation From 21f2952c6fdbd051d892ceefc13d196303911a44 Mon Sep 17 00:00:00 2001 From: Xuehai Pan Date: Tue, 19 Mar 2024 00:48:46 +0800 Subject: [PATCH 8/8] chore: update license header --- CMakeLists.txt | 2 +- LICENSE | 2 +- conda-recipe-minimal-cpu.yaml | 2 +- conda-recipe-minimal.yaml | 2 +- conda-recipe.yaml | 2 +- docs/conda-recipe.yaml | 2 +- docs/source/conf.py | 4 ++-- examples/FuncTorch/maml_omniglot_vmap.py | 2 +- examples/L2R/helpers/utils.py | 2 +- examples/LOLA/helpers/agent.py | 2 +- examples/MAML-RL/func_maml.py | 2 +- examples/distributed/few-shot/maml_omniglot.py | 2 +- examples/distributed/few-shot/maml_omniglot_local_loader.py | 2 +- examples/few-shot/maml_omniglot.py | 2 +- examples/iMAML/imaml_omniglot.py | 2 +- examples/iMAML/imaml_omniglot_functional.py | 2 +- include/adam_op/adam_op.h | 2 +- include/adam_op/adam_op_impl_cpu.h | 2 +- include/adam_op/adam_op_impl_cuda.cuh | 2 +- include/common.h | 2 +- include/utils.h | 2 +- src/adam_op/adam_op.cpp | 2 +- src/adam_op/adam_op_impl_cpu.cpp | 2 +- src/adam_op/adam_op_impl_cuda.cu | 2 +- tests/conftest.py | 2 +- tests/helpers.py | 2 +- tests/test_accelerated_op.py | 2 +- tests/test_alias.py | 2 +- tests/test_clip.py | 2 +- tests/test_combine.py | 2 +- tests/test_hook.py | 2 +- tests/test_implicit.py | 2 +- tests/test_import.py | 2 +- tests/test_linalg.py | 2 +- tests/test_meta_optim.py | 2 +- tests/test_nn.py | 2 +- tests/test_optim.py | 2 +- tests/test_pytree.py | 2 +- tests/test_schedule.py | 2 +- tests/test_transform.py | 2 +- tests/test_utils.py | 2 +- tests/test_zero_order.py | 2 +- torchopt/_C/adam_op.pyi | 2 +- torchopt/__init__.py | 2 +- torchopt/accelerated_op/__init__.py | 2 +- torchopt/accelerated_op/_src/adam_op.py | 2 +- torchopt/accelerated_op/adam_op.py | 2 +- torchopt/alias/__init__.py | 2 +- torchopt/alias/adadelta.py | 2 +- torchopt/alias/adagrad.py | 2 +- torchopt/alias/adam.py | 2 +- torchopt/alias/adamax.py | 2 +- torchopt/alias/adamw.py | 2 +- torchopt/alias/radam.py | 2 +- torchopt/alias/rmsprop.py | 2 +- torchopt/alias/sgd.py | 2 +- torchopt/alias/utils.py | 2 +- torchopt/base.py | 2 +- torchopt/clip.py | 2 +- torchopt/combine.py | 2 +- torchopt/diff/__init__.py | 2 +- torchopt/diff/implicit/decorator.py | 2 +- torchopt/diff/implicit/nn/__init__.py | 2 +- torchopt/diff/implicit/nn/module.py | 2 +- torchopt/diff/zero_order/__init__.py | 2 +- torchopt/diff/zero_order/decorator.py | 2 +- torchopt/diff/zero_order/nn/__init__.py | 2 +- torchopt/diff/zero_order/nn/module.py | 2 +- torchopt/distributed/__init__.py | 2 +- torchopt/distributed/api.py | 2 +- torchopt/hook.py | 2 +- torchopt/nn/__init__.py | 2 +- torchopt/nn/module.py | 2 +- torchopt/nn/stateless.py | 2 +- torchopt/optim/__init__.py | 2 +- torchopt/optim/adadelta.py | 2 +- torchopt/optim/adagrad.py | 2 +- torchopt/optim/adam.py | 2 +- torchopt/optim/adamax.py | 2 +- torchopt/optim/adamw.py | 2 +- torchopt/optim/func/base.py | 2 +- torchopt/optim/meta/__init__.py | 2 +- torchopt/optim/meta/adagrad.py | 2 +- torchopt/optim/meta/adamw.py | 2 +- torchopt/optim/meta/base.py | 2 +- torchopt/optim/radam.py | 2 +- torchopt/pytree.py | 2 +- torchopt/schedule/__init__.py | 2 +- torchopt/schedule/exponential_decay.py | 2 +- torchopt/schedule/polynomial.py | 2 +- torchopt/transform/__init__.py | 2 +- torchopt/transform/add_decayed_weights.py | 2 +- torchopt/transform/nan_to_num.py | 2 +- torchopt/transform/scale.py | 2 +- torchopt/transform/scale_by_adadelta.py | 2 +- torchopt/transform/scale_by_adam.py | 2 +- torchopt/transform/scale_by_adamax.py | 2 +- torchopt/transform/scale_by_radam.py | 2 +- torchopt/transform/scale_by_rms.py | 2 +- torchopt/transform/scale_by_rss.py | 2 +- torchopt/transform/scale_by_schedule.py | 2 +- torchopt/transform/scale_by_stddev.py | 2 +- torchopt/transform/trace.py | 2 +- torchopt/transform/utils.py | 2 +- torchopt/typing.py | 2 +- torchopt/utils.py | 2 +- torchopt/visual.py | 2 +- 107 files changed, 108 insertions(+), 108 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eca14815..bf17f38c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/LICENSE b/LICENSE index 8d26c203..185e0144 100644 --- a/LICENSE +++ b/LICENSE @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [2022-2023] [MetaOPT Team. All Rights Reserved.] + Copyright [2022-2024] [MetaOPT Team. 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. diff --git a/conda-recipe-minimal-cpu.yaml b/conda-recipe-minimal-cpu.yaml index 0404f10c..c872924d 100644 --- a/conda-recipe-minimal-cpu.yaml +++ b/conda-recipe-minimal-cpu.yaml @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/conda-recipe-minimal.yaml b/conda-recipe-minimal.yaml index c3d155b8..39ff72cc 100644 --- a/conda-recipe-minimal.yaml +++ b/conda-recipe-minimal.yaml @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/conda-recipe.yaml b/conda-recipe.yaml index 12b3a6d0..c82eb3c6 100644 --- a/conda-recipe.yaml +++ b/conda-recipe.yaml @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/docs/conda-recipe.yaml b/docs/conda-recipe.yaml index 30ec372e..b6f1b580 100644 --- a/docs/conda-recipe.yaml +++ b/docs/conda-recipe.yaml @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/docs/source/conf.py b/docs/source/conf.py index f5d206c7..a4f23533 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. @@ -66,7 +66,7 @@ def filter(self, record: logging.LogRecord) -> bool: # -- Project information ------------------------------------------------------- project = 'TorchOpt' -copyright = '2022-2023 MetaOPT Team' +copyright = '2022-2024 MetaOPT Team' author = 'TorchOpt Contributors' # The full version, including alpha/beta/rc tags diff --git a/examples/FuncTorch/maml_omniglot_vmap.py b/examples/FuncTorch/maml_omniglot_vmap.py index e1cfe95e..2f42e050 100644 --- a/examples/FuncTorch/maml_omniglot_vmap.py +++ b/examples/FuncTorch/maml_omniglot_vmap.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/L2R/helpers/utils.py b/examples/L2R/helpers/utils.py index 7e95ca6f..ade64236 100644 --- a/examples/L2R/helpers/utils.py +++ b/examples/L2R/helpers/utils.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/LOLA/helpers/agent.py b/examples/LOLA/helpers/agent.py index a8f8ee31..78946ee7 100644 --- a/examples/LOLA/helpers/agent.py +++ b/examples/LOLA/helpers/agent.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/MAML-RL/func_maml.py b/examples/MAML-RL/func_maml.py index f3a00642..475c1b12 100644 --- a/examples/MAML-RL/func_maml.py +++ b/examples/MAML-RL/func_maml.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/distributed/few-shot/maml_omniglot.py b/examples/distributed/few-shot/maml_omniglot.py index 24601dfa..f840e65e 100644 --- a/examples/distributed/few-shot/maml_omniglot.py +++ b/examples/distributed/few-shot/maml_omniglot.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/distributed/few-shot/maml_omniglot_local_loader.py b/examples/distributed/few-shot/maml_omniglot_local_loader.py index d7413770..fb737d4f 100644 --- a/examples/distributed/few-shot/maml_omniglot_local_loader.py +++ b/examples/distributed/few-shot/maml_omniglot_local_loader.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/few-shot/maml_omniglot.py b/examples/few-shot/maml_omniglot.py index d798aa1d..7f7f67fe 100644 --- a/examples/few-shot/maml_omniglot.py +++ b/examples/few-shot/maml_omniglot.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/iMAML/imaml_omniglot.py b/examples/iMAML/imaml_omniglot.py index 8a6960ba..1db08427 100644 --- a/examples/iMAML/imaml_omniglot.py +++ b/examples/iMAML/imaml_omniglot.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/examples/iMAML/imaml_omniglot_functional.py b/examples/iMAML/imaml_omniglot_functional.py index 60fd4108..7bc1e9da 100644 --- a/examples/iMAML/imaml_omniglot_functional.py +++ b/examples/iMAML/imaml_omniglot_functional.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/include/adam_op/adam_op.h b/include/adam_op/adam_op.h index a49b0a06..2d0abcd3 100644 --- a/include/adam_op/adam_op.h +++ b/include/adam_op/adam_op.h @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/include/adam_op/adam_op_impl_cpu.h b/include/adam_op/adam_op_impl_cpu.h index 37aba528..4d54377e 100644 --- a/include/adam_op/adam_op_impl_cpu.h +++ b/include/adam_op/adam_op_impl_cpu.h @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/include/adam_op/adam_op_impl_cuda.cuh b/include/adam_op/adam_op_impl_cuda.cuh index 6e661564..17002b36 100644 --- a/include/adam_op/adam_op_impl_cuda.cuh +++ b/include/adam_op/adam_op_impl_cuda.cuh @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/include/common.h b/include/common.h index 65f9ef33..256b0ca1 100644 --- a/include/common.h +++ b/include/common.h @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/include/utils.h b/include/utils.h index 0ef98539..cefabfac 100644 --- a/include/utils.h +++ b/include/utils.h @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/src/adam_op/adam_op.cpp b/src/adam_op/adam_op.cpp index 08c9fb74..47f5d7f1 100644 --- a/src/adam_op/adam_op.cpp +++ b/src/adam_op/adam_op.cpp @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/src/adam_op/adam_op_impl_cpu.cpp b/src/adam_op/adam_op_impl_cpu.cpp index 1135206d..9c460685 100644 --- a/src/adam_op/adam_op_impl_cpu.cpp +++ b/src/adam_op/adam_op_impl_cpu.cpp @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/src/adam_op/adam_op_impl_cuda.cu b/src/adam_op/adam_op_impl_cuda.cu index ea1526a6..a12eca4f 100644 --- a/src/adam_op/adam_op_impl_cuda.cu +++ b/src/adam_op/adam_op_impl_cuda.cu @@ -1,4 +1,4 @@ -// Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +// Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/conftest.py b/tests/conftest.py index eaa734b2..bb2b1cf2 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/helpers.py b/tests/helpers.py index 50451496..1b624ce9 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_accelerated_op.py b/tests/test_accelerated_op.py index 6cb45ca0..668c9b9a 100644 --- a/tests/test_accelerated_op.py +++ b/tests/test_accelerated_op.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_alias.py b/tests/test_alias.py index aef35b96..58b5a328 100644 --- a/tests/test_alias.py +++ b/tests/test_alias.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_clip.py b/tests/test_clip.py index 0b191cfe..2614781e 100644 --- a/tests/test_clip.py +++ b/tests/test_clip.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_combine.py b/tests/test_combine.py index 39b3e37f..1a026b9e 100644 --- a/tests/test_combine.py +++ b/tests/test_combine.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_hook.py b/tests/test_hook.py index 1f3024c7..e89bb178 100644 --- a/tests/test_hook.py +++ b/tests/test_hook.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_implicit.py b/tests/test_implicit.py index 61623a17..ff0ba15c 100644 --- a/tests/test_implicit.py +++ b/tests/test_implicit.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_import.py b/tests/test_import.py index f7523756..04d0ebbb 100644 --- a/tests/test_import.py +++ b/tests/test_import.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_linalg.py b/tests/test_linalg.py index 7758b7db..c5b07618 100644 --- a/tests/test_linalg.py +++ b/tests/test_linalg.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_meta_optim.py b/tests/test_meta_optim.py index 61f8a7ad..55712bdf 100644 --- a/tests/test_meta_optim.py +++ b/tests/test_meta_optim.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_nn.py b/tests/test_nn.py index 8e89bdb5..f77c20ec 100644 --- a/tests/test_nn.py +++ b/tests/test_nn.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_optim.py b/tests/test_optim.py index dc3941d9..1257054f 100644 --- a/tests/test_optim.py +++ b/tests/test_optim.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_pytree.py b/tests/test_pytree.py index d82d81f2..6ee2939b 100644 --- a/tests/test_pytree.py +++ b/tests/test_pytree.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_schedule.py b/tests/test_schedule.py index 1fdc4669..e4c0ac0a 100644 --- a/tests/test_schedule.py +++ b/tests/test_schedule.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_transform.py b/tests/test_transform.py index 9598386d..0a7bd498 100644 --- a/tests/test_transform.py +++ b/tests/test_transform.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_utils.py b/tests/test_utils.py index d1be7c6f..5215e7b3 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/tests/test_zero_order.py b/tests/test_zero_order.py index 61f75f9a..65642559 100644 --- a/tests/test_zero_order.py +++ b/tests/test_zero_order.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/_C/adam_op.pyi b/torchopt/_C/adam_op.pyi index 04f141fd..5ef572aa 100644 --- a/torchopt/_C/adam_op.pyi +++ b/torchopt/_C/adam_op.pyi @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/__init__.py b/torchopt/__init__.py index a089f3dc..5e568526 100644 --- a/torchopt/__init__.py +++ b/torchopt/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/accelerated_op/__init__.py b/torchopt/accelerated_op/__init__.py index 3ac943e3..103b6fc0 100644 --- a/torchopt/accelerated_op/__init__.py +++ b/torchopt/accelerated_op/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/accelerated_op/_src/adam_op.py b/torchopt/accelerated_op/_src/adam_op.py index c8fc8898..bc999766 100644 --- a/torchopt/accelerated_op/_src/adam_op.py +++ b/torchopt/accelerated_op/_src/adam_op.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/accelerated_op/adam_op.py b/torchopt/accelerated_op/adam_op.py index d6f9e9f9..43ac26cd 100644 --- a/torchopt/accelerated_op/adam_op.py +++ b/torchopt/accelerated_op/adam_op.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/__init__.py b/torchopt/alias/__init__.py index 3ea721c4..3cfb5b8b 100644 --- a/torchopt/alias/__init__.py +++ b/torchopt/alias/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/adadelta.py b/torchopt/alias/adadelta.py index 2e3640f2..fb0b551a 100644 --- a/torchopt/alias/adadelta.py +++ b/torchopt/alias/adadelta.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/adagrad.py b/torchopt/alias/adagrad.py index 3f983c38..6fdb4aa3 100644 --- a/torchopt/alias/adagrad.py +++ b/torchopt/alias/adagrad.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/adam.py b/torchopt/alias/adam.py index dc889285..9419e908 100644 --- a/torchopt/alias/adam.py +++ b/torchopt/alias/adam.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/adamax.py b/torchopt/alias/adamax.py index ffa19e37..f80c0c2f 100644 --- a/torchopt/alias/adamax.py +++ b/torchopt/alias/adamax.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/adamw.py b/torchopt/alias/adamw.py index e8bed2ab..38d4d5ac 100644 --- a/torchopt/alias/adamw.py +++ b/torchopt/alias/adamw.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/radam.py b/torchopt/alias/radam.py index 230c1151..56d3d3d5 100644 --- a/torchopt/alias/radam.py +++ b/torchopt/alias/radam.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/rmsprop.py b/torchopt/alias/rmsprop.py index 96092548..612e4f45 100644 --- a/torchopt/alias/rmsprop.py +++ b/torchopt/alias/rmsprop.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/sgd.py b/torchopt/alias/sgd.py index 4c5b8317..6d5935bc 100644 --- a/torchopt/alias/sgd.py +++ b/torchopt/alias/sgd.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/alias/utils.py b/torchopt/alias/utils.py index 2c2ec0e4..49f8784d 100644 --- a/torchopt/alias/utils.py +++ b/torchopt/alias/utils.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/base.py b/torchopt/base.py index d55aa0dc..572708e2 100644 --- a/torchopt/base.py +++ b/torchopt/base.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/clip.py b/torchopt/clip.py index eda4bef3..55ae83fc 100644 --- a/torchopt/clip.py +++ b/torchopt/clip.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/combine.py b/torchopt/combine.py index fc1a7152..158ec982 100644 --- a/torchopt/combine.py +++ b/torchopt/combine.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/__init__.py b/torchopt/diff/__init__.py index 984841ed..194512f5 100644 --- a/torchopt/diff/__init__.py +++ b/torchopt/diff/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/implicit/decorator.py b/torchopt/diff/implicit/decorator.py index 1fc9bb4a..d3efda2c 100644 --- a/torchopt/diff/implicit/decorator.py +++ b/torchopt/diff/implicit/decorator.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/implicit/nn/__init__.py b/torchopt/diff/implicit/nn/__init__.py index 5bc7aa8d..e91ef8ed 100644 --- a/torchopt/diff/implicit/nn/__init__.py +++ b/torchopt/diff/implicit/nn/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/implicit/nn/module.py b/torchopt/diff/implicit/nn/module.py index a72e5304..8719f675 100644 --- a/torchopt/diff/implicit/nn/module.py +++ b/torchopt/diff/implicit/nn/module.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/zero_order/__init__.py b/torchopt/diff/zero_order/__init__.py index b621ffdc..f00e097a 100644 --- a/torchopt/diff/zero_order/__init__.py +++ b/torchopt/diff/zero_order/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/zero_order/decorator.py b/torchopt/diff/zero_order/decorator.py index f63f0574..b1126636 100644 --- a/torchopt/diff/zero_order/decorator.py +++ b/torchopt/diff/zero_order/decorator.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/zero_order/nn/__init__.py b/torchopt/diff/zero_order/nn/__init__.py index 1bf64efe..f2753b27 100644 --- a/torchopt/diff/zero_order/nn/__init__.py +++ b/torchopt/diff/zero_order/nn/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/diff/zero_order/nn/module.py b/torchopt/diff/zero_order/nn/module.py index 75da28f9..7ac12bb4 100644 --- a/torchopt/diff/zero_order/nn/module.py +++ b/torchopt/diff/zero_order/nn/module.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/distributed/__init__.py b/torchopt/distributed/__init__.py index 534b2dea..31f1283b 100644 --- a/torchopt/distributed/__init__.py +++ b/torchopt/distributed/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/distributed/api.py b/torchopt/distributed/api.py index 86c2cfe8..117af9ab 100644 --- a/torchopt/distributed/api.py +++ b/torchopt/distributed/api.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/hook.py b/torchopt/hook.py index 13ed6abf..b51e29eb 100644 --- a/torchopt/hook.py +++ b/torchopt/hook.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/nn/__init__.py b/torchopt/nn/__init__.py index 8271ad7d..7665f201 100644 --- a/torchopt/nn/__init__.py +++ b/torchopt/nn/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/nn/module.py b/torchopt/nn/module.py index 64623146..419afb6a 100644 --- a/torchopt/nn/module.py +++ b/torchopt/nn/module.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/nn/stateless.py b/torchopt/nn/stateless.py index 8268ca3f..d3437d0d 100644 --- a/torchopt/nn/stateless.py +++ b/torchopt/nn/stateless.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/__init__.py b/torchopt/optim/__init__.py index 20da5fca..f620608c 100644 --- a/torchopt/optim/__init__.py +++ b/torchopt/optim/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/adadelta.py b/torchopt/optim/adadelta.py index 7c73cb58..a64e00e4 100644 --- a/torchopt/optim/adadelta.py +++ b/torchopt/optim/adadelta.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/adagrad.py b/torchopt/optim/adagrad.py index a7e8c72b..277b7105 100644 --- a/torchopt/optim/adagrad.py +++ b/torchopt/optim/adagrad.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/adam.py b/torchopt/optim/adam.py index 5d85cbdc..6ff68a69 100644 --- a/torchopt/optim/adam.py +++ b/torchopt/optim/adam.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/adamax.py b/torchopt/optim/adamax.py index 904c05a0..f693723c 100644 --- a/torchopt/optim/adamax.py +++ b/torchopt/optim/adamax.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/adamw.py b/torchopt/optim/adamw.py index be8c6727..463f245f 100644 --- a/torchopt/optim/adamw.py +++ b/torchopt/optim/adamw.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/func/base.py b/torchopt/optim/func/base.py index 7a7839a3..7bb27877 100644 --- a/torchopt/optim/func/base.py +++ b/torchopt/optim/func/base.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/meta/__init__.py b/torchopt/optim/meta/__init__.py index 516f2b5f..9e30dfef 100644 --- a/torchopt/optim/meta/__init__.py +++ b/torchopt/optim/meta/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/meta/adagrad.py b/torchopt/optim/meta/adagrad.py index 4e8ef0eb..58d913aa 100644 --- a/torchopt/optim/meta/adagrad.py +++ b/torchopt/optim/meta/adagrad.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/meta/adamw.py b/torchopt/optim/meta/adamw.py index 204a5428..05387b77 100644 --- a/torchopt/optim/meta/adamw.py +++ b/torchopt/optim/meta/adamw.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/meta/base.py b/torchopt/optim/meta/base.py index 54327f3b..73ecdde7 100644 --- a/torchopt/optim/meta/base.py +++ b/torchopt/optim/meta/base.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/optim/radam.py b/torchopt/optim/radam.py index c2f6a211..bba8c0d4 100644 --- a/torchopt/optim/radam.py +++ b/torchopt/optim/radam.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/pytree.py b/torchopt/pytree.py index 6d41d0fa..6adea0e8 100644 --- a/torchopt/pytree.py +++ b/torchopt/pytree.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/schedule/__init__.py b/torchopt/schedule/__init__.py index b9916783..8e5545a4 100644 --- a/torchopt/schedule/__init__.py +++ b/torchopt/schedule/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/schedule/exponential_decay.py b/torchopt/schedule/exponential_decay.py index 8811b353..0925e164 100644 --- a/torchopt/schedule/exponential_decay.py +++ b/torchopt/schedule/exponential_decay.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/schedule/polynomial.py b/torchopt/schedule/polynomial.py index 39629c38..2482f769 100644 --- a/torchopt/schedule/polynomial.py +++ b/torchopt/schedule/polynomial.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/__init__.py b/torchopt/transform/__init__.py index c75fcb5d..adef5596 100644 --- a/torchopt/transform/__init__.py +++ b/torchopt/transform/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/add_decayed_weights.py b/torchopt/transform/add_decayed_weights.py index 39948694..950682cf 100644 --- a/torchopt/transform/add_decayed_weights.py +++ b/torchopt/transform/add_decayed_weights.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/nan_to_num.py b/torchopt/transform/nan_to_num.py index 27d87499..d3530853 100644 --- a/torchopt/transform/nan_to_num.py +++ b/torchopt/transform/nan_to_num.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale.py b/torchopt/transform/scale.py index c731003c..493b7196 100644 --- a/torchopt/transform/scale.py +++ b/torchopt/transform/scale.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_adadelta.py b/torchopt/transform/scale_by_adadelta.py index bbe40080..f389d293 100644 --- a/torchopt/transform/scale_by_adadelta.py +++ b/torchopt/transform/scale_by_adadelta.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_adam.py b/torchopt/transform/scale_by_adam.py index cc0ea3b6..b08c6a14 100644 --- a/torchopt/transform/scale_by_adam.py +++ b/torchopt/transform/scale_by_adam.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_adamax.py b/torchopt/transform/scale_by_adamax.py index 0a1c3ec9..f11ed311 100644 --- a/torchopt/transform/scale_by_adamax.py +++ b/torchopt/transform/scale_by_adamax.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_radam.py b/torchopt/transform/scale_by_radam.py index acb85a82..fad32b13 100644 --- a/torchopt/transform/scale_by_radam.py +++ b/torchopt/transform/scale_by_radam.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_rms.py b/torchopt/transform/scale_by_rms.py index 483fd259..4ee67ed0 100644 --- a/torchopt/transform/scale_by_rms.py +++ b/torchopt/transform/scale_by_rms.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_rss.py b/torchopt/transform/scale_by_rss.py index b1f3d2a8..9bc97206 100644 --- a/torchopt/transform/scale_by_rss.py +++ b/torchopt/transform/scale_by_rss.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_schedule.py b/torchopt/transform/scale_by_schedule.py index 749b1853..48f3f271 100644 --- a/torchopt/transform/scale_by_schedule.py +++ b/torchopt/transform/scale_by_schedule.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/scale_by_stddev.py b/torchopt/transform/scale_by_stddev.py index d9589c45..6b99f31a 100644 --- a/torchopt/transform/scale_by_stddev.py +++ b/torchopt/transform/scale_by_stddev.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/trace.py b/torchopt/transform/trace.py index d530a676..9bf37e2f 100644 --- a/torchopt/transform/trace.py +++ b/torchopt/transform/trace.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/transform/utils.py b/torchopt/transform/utils.py index f1ed39da..ec4e51c1 100644 --- a/torchopt/transform/utils.py +++ b/torchopt/transform/utils.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/typing.py b/torchopt/typing.py index c5c76984..60d11e0e 100644 --- a/torchopt/typing.py +++ b/torchopt/typing.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/utils.py b/torchopt/utils.py index ef771966..c067d570 100644 --- a/torchopt/utils.py +++ b/torchopt/utils.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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. diff --git a/torchopt/visual.py b/torchopt/visual.py index aaabd5a3..d7885889 100644 --- a/torchopt/visual.py +++ b/torchopt/visual.py @@ -1,4 +1,4 @@ -# Copyright 2022-2023 MetaOPT Team. All Rights Reserved. +# Copyright 2022-2024 MetaOPT Team. 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.