Scale#

class bayesflow.adapters.transforms.Scale(scale: float | Tensor)[source]#

Bases: ElementwiseTransform

get_config() → dict[source]#
forward(data: Tensor, **kwargs) → Tensor[source]#
inverse(data: Tensor, **kwargs) → Tensor[source]#
log_det_jac(data: Tensor, inverse: bool = False, **kwargs) → Tensor[source]#
__call__(data: Tensor, inverse: bool = False, **kwargs) → Tensor#

Call self as a function.

classmethod from_config(config: dict, custom_objects=None)#