Skip to content

Commit

Permalink
Simplify import structure
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanradev93 committed Jun 12, 2024
1 parent 84ed906 commit 7280f40
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import keras
from keras.saving import (
register_keras_serializable,
)
from keras.saving import register_keras_serializable

from bayesflow.experimental.types import Shape, Tensor
from ..invertible_layer import InvertibleLayer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

from keras import ops
from keras.saving import (
register_keras_serializable,
)
from keras.saving import register_keras_serializable

from bayesflow.experimental.types import Shape, Tensor
from ..invertible_layer import InvertibleLayer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import keras
from keras.saving import (
register_keras_serializable,
)
from keras.saving import register_keras_serializable

from bayesflow.experimental.types import Shape
from .fixed_permutation import FixedPermutation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@

import keras
from keras.saving import (
register_keras_serializable,
)
from keras.saving import register_keras_serializable

from bayesflow.experimental.types import Shape
from .fixed_permutation import FixedPermutation
Expand All @@ -26,5 +24,5 @@ def build(self, input_shape: Shape) -> None:
shape=(input_shape[-1],),
initializer=keras.initializers.Constant(inverse_indices),
trainable=False,
dtype = "int32"
dtype="int32"
)

0 comments on commit 7280f40

Please sign in to comment.