



"""simple docstring"""






import numpy as np





def 							UpperCAmelCase		(		snake_case			:					np.ndarray      ,       snake_case			:					float    ):
					return np.where(vector > 0      ,       snake_case      ,       (alpha * (np.exp(snake_case    ) - 1))    )


if __name__ == "__main__":
				import doctest

				doctest.testmod()












"""simple docstring"""






# NOTE: This file is deprecated and will be removed in a future version.
# It only exists so that temporarely `from diffusers.pipelines import DiffusionPipeline` works

from ...utils import deprecate
from ..controlnet.pipeline_flax_controlnet import FlaxStableDiffusionControlNetPipeline  # noqa: F401


deprecate(
    '''stable diffusion controlnet''',
    '''0.22.0''',
    '''Importing `FlaxStableDiffusionControlNetPipeline` from diffusers.pipelines.stable_diffusion.flax_pipeline_stable_diffusion_controlnet is deprecated. Please import `from diffusers import FlaxStableDiffusionControlNetPipeline` instead.''',
    standard_warn=False,
    stacklevel=3,
)






