Skip to content

Commit

Permalink
remove warning notice due to 1d structure
Browse files Browse the repository at this point in the history
Summary: remove warning due to 1d structure of reward module.

Reviewed By: danielrjiang, alexnikulkov

Differential Revision: D53273291

fbshipit-source-id: 0d7e4ccafbbcde8c98a9804c5e4c6eb722a1c7fd
  • Loading branch information
Yonathan Efroni authored and facebook-github-bot committed Jan 31, 2024
1 parent d86e29c commit 322992e
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def _validate_train_inputs(
if weight is None:
weight = torch.ones_like(y)
if weight.ndim == 1:
logger.warning("2D shape expected for weight, got 1D shape {weight.shape}")
weight = weight.unsqueeze(-1)
assert x.shape == (
batch_size,
Expand Down

0 comments on commit 322992e

Please sign in to comment.