Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
f1b9ee7e
Unverified
Commit
f1b9ee7e
authored
Oct 04, 2022
by
Kashif Rasul
Committed by
GitHub
Oct 04, 2022
Browse files
[Docs] fix docstring for issue #709 (#710)
fix docstring fixes #709
parent
4ff4d4db
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/diffusers/models/unet_2d.py
src/diffusers/models/unet_2d.py
+1
-1
src/diffusers/models/unet_2d_condition_flax.py
src/diffusers/models/unet_2d_condition_flax.py
+1
-1
No files found.
src/diffusers/models/unet_2d.py
View file @
f1b9ee7e
...
...
@@ -170,7 +170,7 @@ class UNet2DModel(ModelMixin, ConfigMixin):
timestep
:
Union
[
torch
.
Tensor
,
float
,
int
],
return_dict
:
bool
=
True
,
)
->
Union
[
UNet2DOutput
,
Tuple
]:
"""
r
r
"""
Args:
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
timestep (`torch.FloatTensor` or `float` or `int): (batch) timesteps
...
...
src/diffusers/models/unet_2d_condition_flax.py
View file @
f1b9ee7e
...
...
@@ -215,7 +215,7 @@ class FlaxUNet2DConditionModel(nn.Module, FlaxModelMixin, ConfigMixin):
return_dict
:
bool
=
True
,
train
:
bool
=
False
,
)
->
Union
[
FlaxUNet2DConditionOutput
,
Tuple
]:
"""
r
r
"""
Args:
sample (`jnp.ndarray`): (channel, height, width) noisy inputs tensor
timestep (`jnp.ndarray` or `float` or `int`): 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