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
OpenDAS
diffusers
Commits
71ca10c6
Unverified
Commit
71ca10c6
authored
Oct 10, 2022
by
Nathan Lambert
Committed by
GitHub
Oct 10, 2022
Browse files
fix typo docstring in unet2d (#798)
fix typo docstring
parent
22963ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/unet_2d_condition.py
src/diffusers/models/unet_2d_condition.py
+1
-1
No files found.
src/diffusers/models/unet_2d_condition.py
View file @
71ca10c6
...
@@ -223,7 +223,7 @@ class UNet2DConditionModel(ModelMixin, ConfigMixin):
...
@@ -223,7 +223,7 @@ class UNet2DConditionModel(ModelMixin, ConfigMixin):
encoder_hidden_states
:
torch
.
Tensor
,
encoder_hidden_states
:
torch
.
Tensor
,
return_dict
:
bool
=
True
,
return_dict
:
bool
=
True
,
)
->
Union
[
UNet2DConditionOutput
,
Tuple
]:
)
->
Union
[
UNet2DConditionOutput
,
Tuple
]:
"""
r
r
"""
Args:
Args:
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
timestep (`torch.FloatTensor` or `float` or `int`): (batch) timesteps
...
...
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