Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

This browser does not support WebGL. at createWebGLRenderingContextFromCanvas?

I am learning Tensorflow using the Tensorflow.js library for machine learning when I run my simple program getting the following warning

<html>
  <head>
    <!-- Load TensorFlow.js -->
    <script src="https://cdn.jsdelivr.net/npm/@tensorflow/[email protected]"> </script>

    <!-- Place your code in the script tag below. You can also use an external .js file -->
    <script>
     tf.tensor([1,2,3,4,5]).print();
     tf.tensor([[1,2,3],[4,5,6]]).print();
     
    
    </script>
  </head>

  <body>
  </body>
</html>

This browser does not support WebGL. at createWebGLRenderingContextFromCanvas

what's the exact root cause for this?

like image 531
Mr. Roshan Avatar asked May 07 '26 23:05

Mr. Roshan


1 Answers

I solve this problem in Chrome by enabling "Use hardware acceleration when available" in Chrome. So I go to "Setting", click on "Advanced", and then enable "Use hardware acceleration when available".

like image 114
MBehtemam Avatar answered May 10 '26 23:05

MBehtemam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!