Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
4b17fa2a
Unverified
Commit
4b17fa2a
authored
Aug 07, 2025
by
DefTruth
Committed by
GitHub
Aug 07, 2025
Browse files
fix flux type hint (#12089)
fix-flux-type-hint
parent
d45199a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/transformers/transformer_flux.py
src/diffusers/models/transformers/transformer_flux.py
+1
-1
No files found.
src/diffusers/models/transformers/transformer_flux.py
View file @
4b17fa2a
...
@@ -384,7 +384,7 @@ class FluxSingleTransformerBlock(nn.Module):
...
@@ -384,7 +384,7 @@ class FluxSingleTransformerBlock(nn.Module):
temb
:
torch
.
Tensor
,
temb
:
torch
.
Tensor
,
image_rotary_emb
:
Optional
[
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]]
=
None
,
image_rotary_emb
:
Optional
[
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]]
=
None
,
joint_attention_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
None
,
joint_attention_kwargs
:
Optional
[
Dict
[
str
,
Any
]]
=
None
,
)
->
torch
.
Tensor
:
)
->
Tuple
[
torch
.
Tensor
,
torch
.
Tensor
]
:
text_seq_len
=
encoder_hidden_states
.
shape
[
1
]
text_seq_len
=
encoder_hidden_states
.
shape
[
1
]
hidden_states
=
torch
.
cat
([
encoder_hidden_states
,
hidden_states
],
dim
=
1
)
hidden_states
=
torch
.
cat
([
encoder_hidden_states
,
hidden_states
],
dim
=
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment