Skip to content

Commit

Permalink
reduce to a simple test (failing)
Browse files Browse the repository at this point in the history
  • Loading branch information
swfsql committed Jun 20, 2024
1 parent adfc4ac commit dddd366
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 72 deletions.
18 changes: 0 additions & 18 deletions examples/bias_test/Cargo.toml

This file was deleted.

54 changes: 0 additions & 54 deletions examples/bias_test/src/main.rs

This file was deleted.

10 changes: 10 additions & 0 deletions src/hl_ops/movement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -514,4 +514,14 @@ mod tests {

assert_close(&c.data(), &d_c.as_vec());
}

#[test]
fn test_noop_expand() {
type S = R1<1>;
type Tensor = GraphTensor<S>;
let mut cx = Graph::new();
let a: Tensor = cx.tensor();
let noop_expanded: Tensor = a.expand::<S, LAxis<0>>();
assert_eq!(a.shape, noop_expanded.shape);
}
}

0 comments on commit dddd366

Please sign in to comment.