Check if WebNN API is available in the current browser
true if WebNN is supported, false otherwise
if (isWebNNAvailable()) { console.log('WebNN is supported!');} else { console.log('WebNN not available, using fallback');} Copy
if (isWebNNAvailable()) { console.log('WebNN is supported!');} else { console.log('WebNN not available, using fallback');}
Check if WebNN API is available in the current browser