From 6cb8a2ff063719ad6a184a6702c6121f8ab10a0f Mon Sep 17 00:00:00 2001 From: Zach Nussbaum Date: Wed, 30 Oct 2024 16:17:35 -0400 Subject: [PATCH] docs: remove named annotations --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c6696d..957f1a4 100644 --- a/README.md +++ b/README.md @@ -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);