


"""simple docstring"""
import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


UpperCAmelCase				=						HUGGINGFACE_HUB_CACHE


UpperCAmelCase				=						"""config.json"""
UpperCAmelCase				=						"""diffusion_pytorch_model.bin"""
UpperCAmelCase				=						"""diffusion_flax_model.msgpack"""
UpperCAmelCase				=						"""model.onnx"""
UpperCAmelCase				=						"""diffusion_pytorch_model.safetensors"""
UpperCAmelCase				=						"""weights.pb"""
UpperCAmelCase				=						"""https://huggingface.co"""
UpperCAmelCase				=						default_cache_path
UpperCAmelCase				=						"""diffusers_modules"""
UpperCAmelCase				=						os.getenv("""HF_MODULES_CACHE""", os.path.join(hf_cache_home, """modules"""))
UpperCAmelCase				=						["""fp16""", """non-ema"""]
UpperCAmelCase				=						""".self_attn"""



'''simple docstring'''
import numpy as np




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__			)  ->							np.ndarray:


		'''simple docstring'''


		return 1 / (1 + np.exp(-vector			))




def    _UpperCamelCase						(       SCREAMING_SNAKE_CASE__			)  ->							np.ndarray:


		'''simple docstring'''


		return vector * sigmoid(SCREAMING_SNAKE_CASE__			)


if __name__ == "__main__":
						import doctest

						doctest.testmod()


