Skip to content

Device definitions available as patch releases (#19) #20

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/pci-update-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
# Get current version and increment minor version
current_version = config['project']['version']
major, minor, patch = current_version.split('.')
new_version = f"{major}.{int(minor) + 1}.0"
new_version = f"{major}.{minor}.{int(patch) + 1}"

# Update version in config
config['project']['version'] = new_version
Expand Down
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ It deals with the complexity of the variety of torch builds and configurations r
# Installation
Supports Windows, Linux, and Mac.

### As a dependency

Add the following definition to your `requirements.txt` or `pyproject.toml` file:

`torchruntime~=[major-ver].[minor-ver]`

Replace `[major-ver]` and `[minor-ver]` with the desired Torchruntime release series, for example:

`torchruntime~=1.20`

Using the [compatible release operator](https://packaging.python.org/en/latest/specifications/version-specifiers/#compatible-release) allows updated device definitions and non-breaking changes to be made available to users without manual intervention. You will still need to update the definition when breaking changes are introduced in new major versions.

### Manually

`pip install torchruntime`

## Usage
Expand Down