Optimize _length_per_key_from_stride_per_key
with segment sum csr w…
#5991
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: pre-commit | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
architecture: x64 | |
packages: | | |
ufmt==1.3.2 | |
black==22.3.0 | |
usort==1.0.2 | |
- name: Checkout Torchrec | |
uses: actions/checkout@v2 | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] |