ConvertDType#
- class bayesflow.adapters.transforms.ConvertDType(from_dtype: str, to_dtype: str)[source]#
Bases:
ElementwiseTransform
Default transform used to convert all floats from float64 to float32 to be in line with keras framework.
- Parameters:
- from_dtypestr
Original dtype
- to_dtypestr
Target dtype
- classmethod from_config(config: dict, custom_objects=None) ConvertDType [source]#