Skip to content

Commit

Permalink
docs: remove named annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
zanussbaum committed Oct 30, 2024
1 parent 48edb81 commit 6cb8a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ To use `surfgrad`,
```typescript
import { Tensor } from "surfgrad";

const tensorA = new Tensor(new Float32Array([1, 2, 3, 4]), shape: [2, 2], requires_grad: true);
const tensorB = new Tensor(new Float32Array([5, 6, 7, 8]), shape: [2, 2], requires_grad: true);
const tensorA = new Tensor(new Float32Array([1, 2, 3, 4]), [2, 2], true);
const tensorB = new Tensor(new Float32Array([5, 6, 7, 8]), [2, 2], true);

const [result, executionTime] = await tensorA.matmul(tensorB);

Expand Down

0 comments on commit 6cb8a2f

Please sign in to comment.