Skip to content

Commit

Permalink
add module_test to test_padded_targets
Browse files Browse the repository at this point in the history
  • Loading branch information
sararb committed Jul 4, 2023
1 parent bb6add9 commit 6295d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/torch/transforms/test_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_padded_targets(self, sequence_batch, sequence_schema):
padding_op = TabularPadding(
schema=sequence_schema, max_sequence_length=_max_sequence_length
)
padded_batch = padding_op(inputs=None, batch=sequence_batch)
padded_batch = module_utils.module_test(padding_op, sequence_batch)

assert padded_batch.targets["target_2"].shape[1] == _max_sequence_length
assert torch.equal(padded_batch.targets["target_1"], sequence_batch.targets["target_1"])

0 comments on commit 6295d63

Please sign in to comment.