Skip to content

Commit

Permalink
grammar nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Marton Havasi committed Dec 10, 2024
1 parent 56fc655 commit 9afa176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow_matching/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def expand_tensor_like(input_tensor: Tensor, expand_to: Tensor) -> Tensor:
Tensor: (B, ...).
"""
assert input_tensor.ndim == 1, "Input tensor must be a 1d vector."
assert input_tensor.shape[0] == expand_to.shape[0], f"The first (batch) dimensions must match. Got shape {input_tensor.shape} and {expand_to.shape}."
assert input_tensor.shape[0] == expand_to.shape[0], f"The first (batch) dimension must match. Got shape {input_tensor.shape} and {expand_to.shape}."

dim_diff = expand_to.ndim - input_tensor.ndim

Expand Down

0 comments on commit 9afa176

Please sign in to comment.