Skip to content

Commit f1b9ee7

Browse files
authored
[Docs] fix docstring for issue #709 (#710)
fix docstring fixes #709
1 parent 4ff4d4d commit f1b9ee7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diffusers/models/unet_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def forward(
170170
timestep: Union[torch.Tensor, float, int],
171171
return_dict: bool = True,
172172
) -> Union[UNet2DOutput, Tuple]:
173-
"""r
173+
r"""
174174
Args:
175175
sample (`torch.FloatTensor`): (batch, channel, height, width) noisy inputs tensor
176176
timestep (`torch.FloatTensor` or `float` or `int): (batch) timesteps

src/diffusers/models/unet_2d_condition_flax.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def __call__(
215215
return_dict: bool = True,
216216
train: bool = False,
217217
) -> Union[FlaxUNet2DConditionOutput, Tuple]:
218-
"""r
218+
r"""
219219
Args:
220220
sample (`jnp.ndarray`): (channel, height, width) noisy inputs tensor
221221
timestep (`jnp.ndarray` or `float` or `int`): timesteps

0 commit comments

Comments
 (0)