Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Match any exception type for Tensor indexing API #118

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ jsi::Value TensorHostObject::get(
int idx = -1;
try {
idx = std::stoi(name.c_str());
} catch (const std::exception& e) {
} catch (...) {
// Cannot parse name value to int. This can happen when the name in bracket
// or dot notion is not an int (e.g., tensor['foo']).
// Let's ignore this exception here since this function will return
Expand Down