



# 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,
)






import os
from pathlib import Path

def    lowercase_	(	):

      """simple docstring"""




      from torch.utils.cpp_extension import load

      lowerCamelCase__	:       Any					=						Path(_A		).resolve().parent.parent.parent / "kernels" / "deformable_detr"
      lowerCamelCase__	:       Optional[int]					=						[
          root / filename
          for filename in [
              "vision.cpp",
              os.path.join("cpu"					,      "ms_deform_attn_cpu.cpp"		),
              os.path.join("cuda"					,      "ms_deform_attn_cuda.cu"		),
          ]
      ]

      load(
          "MultiScaleDeformableAttention"					,      _A					,      with_cuda=_A					,      extra_include_paths=[str(_A		)]					,      extra_cflags=["-DWITH_CUDA=1"]					,      extra_cuda_cflags=[
              "-DCUDA_HAS_FP16=1",
              "-D__CUDA_NO_HALF_OPERATORS__",
              "-D__CUDA_NO_HALF_CONVERSIONS__",
              "-D__CUDA_NO_HALF2_OPERATORS__",
          ]					,      )

      import MultiScaleDeformableAttention as MSDA

      return MSDA


