optree
OpTree: Optimized PyTree Utilities
파일 탐색기
최종 버전 다운로드 (.zip)- bug-report.yml
- config.yml
- feature-request.yml
- questions.yml
- build.yml
- lint.yml
- set_release.py
- set_setup_requires.py
- tests-with-pydebug.yml
- tests.yml
- CODEOWNERS
- dependabot.yml
- FUNDING.yml
- PULL_REQUEST_TEMPLATE.md
- style.css
- api.rst
- conf.py
- dataclasses.rst
- functools.rst
- index.rst
- integrations.rst
- ops.rst
- pytree.rst
- registry.rst
- spelling_wordlist.txt
- treespec.rst
- typing.rst
- Makefile
- requirements.txt
- exceptions.h
- hashing.h
- optree.h
- pymacros.h
- pytypes.h
- registry.h
- stdutils.h
- synchronization.h
- treespec.h
- __init__.py
- attrs.py
- jax.py
- numpy.py
- torch.py
- __init__.py
- _C.pyi
- accessors.py
- dataclasses.py
- functools.py
- ops.py
- py.typed
- pytree.py
- registry.py
- treespec.py
- typing.py
- utils.py
- version.py
- constructors.cpp
- flatten.cpp
- gc.cpp
- hashing.cpp
- richcomparison.cpp
- serialization.cpp
- traversal.cpp
- treespec.cpp
- unflatten.cpp
- CMakeLists.txt
- optree.cpp
- registry.cpp
- test_subinterpreters.py
- test_threading.py
- test_attrs.py
- test_imports.py
- test_jax.py
- test_numpy.py
- test_torch.py
- .coveragerc
- confcoverage.py
- conftest.py
- helpers.py
- requirements.txt
- test_accessors.py
- test_dataclasses.py
- test_functools.py
- test_ops.py
- test_prefix_errors.py
- test_registry.py
- test_shortcut.py
- test_treespec.py
- test_typing.py
- test_utils.py
- .clang-format
- .clang-tidy
- .dockerignore
- .editorconfig
- .gitattributes
- .gitignore
- .pre-commit-config.yaml
- .readthedocs.yaml
- CHANGELOG.md
- CMakeLists.txt
- CODE_OF_CONDUCT.md
- codecov.yml
- conda-recipe.yaml
- CONTRIBUTING.md
- CPPLINT.cfg
- LICENSE
- Makefile
- MANIFEST.in
- pyproject.toml
- README.md
- requirements.txt
- setup.py
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/metaopt/optree
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd optree
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. 공식 설치 스크립트
쉬움 추천사전 준비물
- Python 3 pip 명령어를 쓰려면 Python이 필요합니다.
pip3 install --upgrade optree
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip3 install git+https://github.com/metaopt/optree.git
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip3 install .
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
설치 후 새 터미널을 열고, 프로그램의 버전 확인 명령(예: --version)으로 정상 설치됐는지 확인하세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. CMake
보통사전 준비물
export CMAKE_COMMAND="/path/to/custom/cmake"
이 명령어를 터미널에 그대로 입력해 실행하세요.
build 폴더 안에 실행 파일이 생성됐는지 확인하고, 직접 실행해보세요 (예: ./build/앱이름).
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
4. Python
쉬움사전 준비물
pip3 install --upgrade optree
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip3 install git+https://github.com/metaopt/optree.git
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip3 install .
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
5. Make
보통사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Make Linux/macOS는 보통 기본 설치되어 있습니다. Windows는 별도 설치(예: MSYS2, WSL)가 필요합니다.
make
생성된 빌드 설정을 바탕으로 실제 컴파일을 진행해 실행 파일을 만듭니다.
에러 없이 끝나면 성공입니다. 생성된 실행 파일을 직접 실행해보세요.
// repository documentation
Was this content helpful?
(0 ratings)
