Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jun 29, 2023
1 parent 4d45cd7 commit 30ab1e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions examples/demo_custom_layer_backend_agnostic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
from keras_core import optimizers


keras_core.config.disable_traceback_filtering()


class MyDense(layers.Layer):
def __init__(self, units, name=None):
super().__init__(name=name)
Expand Down
2 changes: 1 addition & 1 deletion keras_core/backend/torch/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def torch_seed_generator(seed):
seed_val, _ = draw_seed(seed)
device = get_device()
if device == "meta":
# Generator is not support by the meta device.
# Generator is not supported by the meta device.
return None
generator = torch.Generator(device=get_device())
generator.manual_seed(int(seed_val))
Expand Down

0 comments on commit 30ab1e9

Please sign in to comment.