mirror of
https://github.com/ml-explore/mlx.git
synced 2025-09-18 10:26:56 +08:00
Corrected the example of value_and_grad (#274)
* Corrected the example for mx.value_and_grad * Reformat through pre-commit/black
This commit is contained in:
@@ -88,5 +88,3 @@ class Dropout2d(Module):
|
||||
|
||||
mask = mx.random.bernoulli(p=self._p_1, shape=mask_shape)
|
||||
return (1 / self._p_1) * mask * x
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user