Skip to content

chore(setup): rewrite packaging #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 23 commits into from
Jul 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a70220e
chore(setup): rewrite packaging
XuehaiPan Jul 7, 2022
0a1ccb8
chore: fix file modes
XuehaiPan Jul 7, 2022
01df51e
docs(README): update README
XuehaiPan Jul 7, 2022
c5d6b80
style: format code with yapf
XuehaiPan Jul 7, 2022
fbe3b12
style: reindent license
XuehaiPan Jul 7, 2022
fdf5077
chore(workflow): install CUDA Toolkit in GitHub Action
XuehaiPan Jul 7, 2022
857338a
feat(workflow): build PyPI wheels for Python 3.7 / 3.8 / 3.9 / 3.10
XuehaiPan Jul 7, 2022
b9f9ebe
refactor(setup): use pybind11 PyPI package rather than git submodule
XuehaiPan Jul 7, 2022
ca92f9f
chore(setup): add dependency `typing-extensions`
XuehaiPan Jul 7, 2022
294f7ed
chore(workflow): update workflow trigger
XuehaiPan Jul 7, 2022
bf14292
docs: use HTTPS URL for git clone
XuehaiPan Jul 7, 2022
2e80b67
fix(tests): update requirements.txt
XuehaiPan Jul 7, 2022
4ab4efa
chore(setup): remove deprecated dependency `distutils`
XuehaiPan Jul 7, 2022
9580a96
test: disable CUDA tests if no GPU available
XuehaiPan Jul 8, 2022
8640b81
chore(workflow): use Python 3.7 in tests
XuehaiPan Jul 8, 2022
9730748
refactor(Makefile): update Makefile
XuehaiPan Jul 8, 2022
3dcd29c
style: format CXX code
XuehaiPan Jul 8, 2022
2f4e44f
chore(tests): test with CUDA Toolkit 11.3
XuehaiPan Jul 8, 2022
ad069a4
feat(CMakeLists.txt): auto detect nvcc arch flags
XuehaiPan Jul 8, 2022
bce754b
chore(workflow): set timeout
XuehaiPan Jul 8, 2022
2dba710
docs: update sphinx docs
XuehaiPan Jul 8, 2022
de1bb87
chore: use CamelCased URL paths
XuehaiPan Jul 9, 2022
5597da7
chore: add conda recipe
XuehaiPan Jul 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: format code with yapf
  • Loading branch information
XuehaiPan committed Jul 7, 2022
commit c5d6b802ce16425436741ba5c2d1a44c5e651826
1 change: 1 addition & 0 deletions examples/MAML-RL/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

from gym.envs.registration import register


register(
'TabularMDP-v0',
entry_point='helpers.Tabular_mdp:TabularMDPEnv',
Expand Down
1 change: 1 addition & 0 deletions examples/MAML-RL/run_MAML.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

from .helpers.policy import CategoricalMLPPolicy


TASK_NUM = 40
TRAJ_NUM = 20
TRAJ_LEN = 10
Expand Down
1 change: 1 addition & 0 deletions examples/few-shot/maml-omniglot.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

from .support.omniglot_loaders import OmniglotNShot


mpl.use('Agg')
plt.style.use('bmh')

Expand Down
6 changes: 4 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
based_on_style = yapf
indent_width = 4
continuation_indent_width = 4
column_limit = 100
spaces_before_comment = 2
dedent_closing_brackets = true
column_limit = 100
blank_lines_between_top_level_imports_and_variables = 2

[flake8]
exclude =
Expand All @@ -16,9 +17,10 @@ convention = google

[isort]
profile = black
multi_line_output = 3
indent = 4
line_length = 100
lines_after_imports = 2
multi_line_output = 3

[mypy]
allow_redefinition = True
Expand Down
1 change: 1 addition & 0 deletions torchopt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from torchopt._src.utils import extract_state_dict, recover_state_dict, stop_gradient
from torchopt.version import __version__


__all__ = [
"accelerated_op_available",
"clip",
Expand Down
1 change: 1 addition & 0 deletions torchopt/_src/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

from torchopt._src import typing


OptState = typing.TensorTree # States are arbitrary nests of `torch.Tensor`.
# Parameters are arbitrary nests of `torch.Tensor`.
Params = typing.TensorTree
Expand Down
1 change: 1 addition & 0 deletions torchopt/_src/clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

from torchopt._src import base


ClipState = base.EmptyState


Expand Down
1 change: 1 addition & 0 deletions torchopt/_src/transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
from torchopt._src import base
from torchopt._src.typing import ScalarOrSchedule, Schedule


ScaleState = base.EmptyState


Expand Down
1 change: 1 addition & 0 deletions torchopt/_src/typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

from torch import Tensor


Scalar = Union[float, int]
Numeric = Union[Tensor, Scalar]

Expand Down
1 change: 1 addition & 0 deletions torchopt/_src/visual.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from graphviz import Digraph
from pkg_resources import parse_version


Node = namedtuple('Node', ('name', 'inputs', 'attr', 'op'))

# Saved attrs for grad_fn (incl. saved variables) begin with `._saved_*`
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy