






import os

from huggingface_hub.constants import HUGGINGFACE_HUB_CACHE, hf_cache_home


lowerCamelCase__       		=  HUGGINGFACE_HUB_CACHE


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






"""simple docstring"""
import numpy as np

def 				_snake_case      (   __snake_case							:      np.ndarray   ):




   """simple docstring"""







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

def 				_snake_case      (   __snake_case							:      np.ndarray   ):




   """simple docstring"""







   return vector * sigmoid(__snake_case   )


if __name__ == "__main__":
 import doctest

 doctest.testmod()

