From 7af1b38cc992c630a48eee6004a0d17e923548de Mon Sep 17 00:00:00 2001 From: Arif Hussain Date: Thu, 22 May 2025 16:54:15 +0530 Subject: [PATCH] Update TF_Part1_Intro.ipynb added the name parameter...cause it creating the issue in running --- lab1/TF_Part1_Intro.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lab1/TF_Part1_Intro.ipynb b/lab1/TF_Part1_Intro.ipynb index b79e04df..9d683bab 100644 --- a/lab1/TF_Part1_Intro.ipynb +++ b/lab1/TF_Part1_Intro.ipynb @@ -339,8 +339,8 @@ " d = int(input_shape[-1])\n", " # Define and initialize parameters: a weight matrix W and bias b\n", " # Note that parameter initialization is random!\n", - " self.W = self.add_weight(\"weight\", shape=[d, self.n_output_nodes]) # note the dimensionality\n", - " self.b = self.add_weight(\"bias\", shape=[1, self.n_output_nodes]) # note the dimensionality\n", + " self.W = self.add_weight(name=\"weight\", shape=[d, self.n_output_nodes]) # note the dimensionality\n", + " self.b = self.add_weight(name=\"bias\", shape=[1, self.n_output_nodes]) # note the dimensionality\n", "\n", " def call(self, x):\n", " '''TODO: define the operation for z (hint: use tf.matmul)'''\n",