9797 " self.b = self.add_weight(shape=(units,), initializer=\" zeros\" , trainable=True)\n " ,
9898 " \n " ,
9999 " def call(self, inputs):\n " ,
100- " return ops.matmul(inputs, self.w) + self.b\n " ,
101- " "
100+ " return ops.matmul(inputs, self.w) + self.b\n "
102101 ]
103102 },
104103 {
246245 " self.b = self.add_weight(shape=(units,), initializer=\" zeros\" , trainable=True)\n " ,
247246 " \n " ,
248247 " def call(self, inputs):\n " ,
249- " return ops.matmul(inputs, self.w) + self.b\n " ,
250- " "
248+ " return ops.matmul(inputs, self.w) + self.b\n "
251249 ]
252250 },
253251 {
289287 " )\n " ,
290288 " \n " ,
291289 " def call(self, inputs):\n " ,
292- " return ops.matmul(inputs, self.w) + self.b\n " ,
293- " "
290+ " return ops.matmul(inputs, self.w) + self.b\n "
294291 ]
295292 },
296293 {
390387 " The `keras.ops` namespace gives you access to:\n " ,
391388 " \n " ,
392389 " - The NumPy API, e.g. `ops.matmul`, `ops.sum`, `ops.reshape`, `ops.stack`, etc.\n " ,
393- " - Neural networks-specific APIs such as `ops.softmax`, `ops` .conv`, `ops.binary_crossentropy`, `ops.relu`, etc.\n " ,
390+ " - Neural networks-specific APIs such as `ops.softmax`, `ops.conv`, `ops.binary_crossentropy`, `ops.relu`, etc.\n " ,
394391 " \n " ,
395392 " You can also use backend-native APIs in your layers (such as `tf.nn` functions),\n " ,
396393 " but if you do this, then your layer will only be usable with the backend in question.\n " ,
465462 " \n " ,
466463 " def call(self, inputs):\n " ,
467464 " self.add_loss(self.rate * ops.mean(inputs))\n " ,
468- " return inputs\n " ,
469- " "
465+ " return inputs\n "
470466 ]
471467 },
472468 {
742738 " return keras.random.dropout(\n " ,
743739 " inputs, rate=self.rate, seed=self.seed_generator\n " ,
744740 " )\n " ,
745- " return inputs\n " ,
746- " "
741+ " return inputs\n "
747742 ]
748743 },
749744 {
947942 " z_log_var - ops.square(z_mean) - ops.exp(z_log_var) + 1\n " ,
948943 " )\n " ,
949944 " self.add_loss(kl_loss)\n " ,
950- " return reconstructed\n " ,
951- " "
945+ " return reconstructed\n "
952946 ]
953947 },
954948 {
10101004 },
10111005 "nbformat" : 4 ,
10121006 "nbformat_minor" : 0
1013- }
1007+ }
0 commit comments