Skip to content

Commit 9ad2e9e

Browse files
committed
Fixed unused weight_init attribute.
1 parent e6405b9 commit 9ad2e9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/en/guide/core/mlp_core.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@
400400
" if not self.built:\n",
401401
" # Infer the input dimension based on first call\n",
402402
" self.in_dim = x.shape[1]\n",
403-
" # Initialize the weights and biases using Xavier scheme\n",
404-
" self.w = tf.Variable(xavier_init(shape=(self.in_dim, self.out_dim)))\n",
403+
" # Initialize the weights and biases\n",
404+
" self.w = tf.Variable(self.weight_init(shape=(self.in_dim, self.out_dim)))\n",
405405
" self.b = tf.Variable(tf.zeros(shape=(self.out_dim,)))\n",
406406
" self.built = True\n",
407407
" # Compute the forward pass\n",

0 commit comments

Comments
 (0)