From e9af360d97b9ffbbe1d754daa037a7a359bea023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=94=90=E4=BA=BA=E8=A1=97=E8=BF=90=E8=90=A5=E5=95=86?= <63317211+horno1337@users.noreply.github.com> Date: Tue, 28 Apr 2026 21:21:28 +0200 Subject: [PATCH] Fix shape tuple syntax in tensorqs_tutorial.py removed unnecessary coma from the 'shape' tuple ;) --- beginner_source/basics/tensorqs_tutorial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beginner_source/basics/tensorqs_tutorial.py b/beginner_source/basics/tensorqs_tutorial.py index 30e05cb10d0..7e5cf6e9a6e 100644 --- a/beginner_source/basics/tensorqs_tutorial.py +++ b/beginner_source/basics/tensorqs_tutorial.py @@ -63,7 +63,7 @@ # # ``shape`` is a tuple of tensor dimensions. In the functions below, it determines the dimensionality of the output tensor. -shape = (2,3,) +shape = (2,3) rand_tensor = torch.rand(shape) ones_tensor = torch.ones(shape) zeros_tensor = torch.zeros(shape)