Skip to content

Commit

Permalink
Fix typo in burn-book
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Jan 30, 2024
1 parent ad2362e commit a44513c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion burn-book/src/building-blocks/tensor.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 44,7 @@ let tensor_2 = Tensor::<Backend, 1>::from_data(Data::from([1.0, 2.0, 3.0]).conve
// Will be converted to Data internally. `.convert()` not needed as from_floats() defined for fixed ElementType
let tensor_3 = Tensor::<Backend, 1>::from_floats([1.0, 2.0, 3.0]);
// Initalization of Int Tensor from array slices
// Initialization of Int Tensor from array slices
let arr: [i32; 6] = [1, 2, 3, 4, 5, 6];
let tensor_4 = Tensor::<Backend, 1, Int>::from_data(Data::from(&arr[0..3]).convert());
Expand Down

0 comments on commit a44513c

Please sign in to comment.