Skip to content

Commit

Permalink
Fixed default arguments for conv1d
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Dec 27, 2023
1 parent a18f3f5 commit 33ef89a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.14.1 (unreleased)

- Fixed default arguments for `conv1d`

## 0.14.0 (2023-11-09)

- Updated LibTorch to 2.1.0
Expand Down
2 changes: 1 addition & 1 deletion ext/torch/ruby_arg_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void FunctionParameter::set_default_str(const std::string& str) {
default_scalar = as_integer.has_value() ? at::Scalar(as_integer.value()) :
at::Scalar(atof(str.c_str()));
}
} else if (type_ == ParameterType::INT_LIST) {
} else if (type_ == ParameterType::INT_LIST || type_ == ParameterType::SYM_INT_LIST) {
if (str != "None") {
default_intlist = parse_intlist_args(str, size);
}
Expand Down

0 comments on commit 33ef89a

Please sign in to comment.