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 7280f40 commit 060fd10
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from bayesflow.experimental.types import Tensor
from bayesflow.experimental.utils import find_permutation, keras_kwargs

from .actnorm import ActNorm
from .couplings import DualCoupling
from ..inference_network import InferenceNetwork
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

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

from bayesflow.experimental.types import Tensor
from .transform import Transform
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
import math

from keras import ops
from keras.saving import register_keras_serializable

from bayesflow.experimental.types import Tensor
from .transform import Transform


@register_keras_serializable(package="bayesflow.networks.coupling_flow")
class SplineTransform(Transform):
def __init__(self, bins=16, default_domain=(-5., 5., -5., 5.), **kwargs):
super().__init__(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

from bayesflow.experimental.types import Tensor
from ..invertible_layer import InvertibleLayer

Expand Down

0 comments on commit 060fd10

Please sign in to comment.