Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Yarub Hani Al Nuaimi <ahmedyarubhani@gmail.com>
  • Loading branch information
ahmedyarub committed May 10, 2024
1 parent 083ba48 commit 7775103
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,25 +252,3 @@ jobs:
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}

check-typos:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4.1.5

- name: caching
uses: Swatinem/rust-cache@v2.7.3
with:
key: ${{ runner.os }}-typos-${{ hashFiles('**/Cargo.toml') }}
prefix-key: "v5-rust"

- name: Install typos
env:
TYPOS_LINK: https://github.com/crate-ci/typos/releases/download
run: |
curl -L "$TYPOS_LINK/v$TYPOS_VERSION/typos-v$TYPOS_VERSION-x86_64-unknown-linux-musl.tar.gz" |
tar xz -C $HOME/.cargo/bin
- name: run spelling checks using typos
run: cargo xtask run-checks typos
23 changes: 0 additions & 23 deletions crates/burn-core/src/nn/attention/mask.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,27 +115,4 @@ mod tests {
])
);
}

// #[test]
// fn test_generate_padding_mask() {
// let device = <TestBackend as Backend>::Device::default();
// let tokens = vec![
// vec![3, 3, 3],
// vec![3, 3, 3],
// vec![3, 3, 3, 4],
// vec![3, 3, 3, 4, 10, 15],
// ];
//
// let mask = generate_padding_mask::<TestBackend>(0, tokens, None, &device);
//
// assert_eq!(
// mask.mask.into_data(),
// Data::from([
// [false, false, false, true, true, true],
// [false, false, false, true, true, true],
// [false, false, false, false, true, true],
// [false, false, false, false, false, false],
// ])
// );
// }
}

0 comments on commit 7775103

Please sign in to comment.