Skip to content

Commit

Permalink
using ValueType instead of RuntimeType
Browse files Browse the repository at this point in the history
  • Loading branch information
FFFrog committed Sep 9, 2023
1 parent e781c33 commit f08afa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torch/testing/_internal/common_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -2530,13 +2530,13 @@ def module_error_inputs_torch_nn_RNN_GRU(module_info, device, dtype, requires_gr
ErrorModuleInput(
ModuleInput(constructor_input=FunctionInput(10, 0, 1)),
error_on=ModuleErrorEnum.FORWARD_ERROR,
error_type=RuntimeError,
error_type=ValueError,
error_regex="hidden_size must be greater than zero"
),
ErrorModuleInput(
ModuleInput(constructor_input=FunctionInput(10, 10, 0)),
error_on=ModuleErrorEnum.FORWARD_ERROR,
error_type=RuntimeError,
error_type=ValueError,
error_regex="num_layers must be greater than zero"
),
]
Expand Down

0 comments on commit f08afa1

Please sign in to comment.