Skip to content

Commit 0d9e1b3

Browse files
author
J石页
committed
NPU Adaption for Sanna
1 parent 4cea819 commit 0d9e1b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/diffusers/models/transformers/sana_transformer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@
1919

2020
from ...configuration_utils import ConfigMixin, register_to_config
2121
from ...loaders import PeftAdapterMixin
22-
from ...utils import USE_PEFT_BACKEND, is_torch_version, logging, scale_lora_layers, unscale_lora_layers, is_torch_npu_available
22+
from ...utils import USE_PEFT_BACKEND, is_torch_version, logging, scale_lora_layers, unscale_lora_layers
2323
from ..attention_processor import (
2424
Attention,
2525
AttentionProcessor,
2626
AttnProcessor2_0,
27-
AttnProcessorNPU,
2827
SanaLinearAttnProcessor2_0,
2928
)
3029
from ..embeddings import PatchEmbed, PixArtAlphaTextProjection

0 commit comments

Comments
 (0)