Skip to content
Merged
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
2 changes: 1 addition & 1 deletion js/web/lib/wasm/jsep/webnn/tensor-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class TensorIdTracker {
// Check if the context supports the data type. If not, try to use the fallback data type.
if (!opLimits?.input.dataTypes.includes(dataType)) {
fallbackDataType = webnnDataTypeToFallback.get(dataType);
if (!fallbackDataType || opLimits?.input.dataTypes.includes(fallbackDataType)) {
if (!fallbackDataType || !opLimits?.input.dataTypes.includes(fallbackDataType)) {
throw new Error(`WebNN backend does not support data type: ${dataType}`);
}
LOG_DEBUG(
Expand Down
Loading