From bec619f476b72de77b86a719af376f4c6e6a3fd5 Mon Sep 17 00:00:00 2001 From: Arsam Aryandoust <33273275+ArsamAryandoust@users.noreply.github.com> Date: Thu, 11 Jan 2024 07:08:25 -0500 Subject: [PATCH] Update Part1_TensorFlow.ipynb Uses "images" instead of "matrix". A matrix is a two rank tensor.. so a 4 rank tensor is a tensor, not a matrix. --- lab1/Part1_TensorFlow.ipynb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lab1/Part1_TensorFlow.ipynb b/lab1/Part1_TensorFlow.ipynb index 25e4894e..78318e0e 100644 --- a/lab1/Part1_TensorFlow.ipynb +++ b/lab1/Part1_TensorFlow.ipynb @@ -168,8 +168,8 @@ "# You can think of this as 10 images where each image is RGB 256 x 256.\n", "images = # TODO\n", "\n", - "assert isinstance(images, tf.Tensor), \"matrix must be a tf Tensor object\"\n", - "assert tf.rank(images).numpy() == 4, \"matrix must be of rank 4\"\n", + "assert isinstance(images, tf.Tensor), \"images must be a tf Tensor object\"\n", + "assert tf.rank(images).numpy() == 4, \"images must be of rank 4\"\n", "assert tf.shape(images).numpy().tolist() == [10, 256, 256, 3], \"matrix is incorrect shape\"" ] }, @@ -695,4 +695,4 @@ }, "nbformat": 4, "nbformat_minor": 0 -} \ No newline at end of file +}