Using Azure ML notebook can't get tensorflow to work

ns 0 Reputation points
2023-05-18T03:54:50.5866667+00:00
2023-05-18 03:46:51.028547: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.2023-05-18 03:46:51.905585: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorR

I run into this error every time I try to import TensorFlow and when I run the model I get errors like this.

2023-05-18 03:47:15.694174: W tensorflow/core/framework/op_kernel.cc:1830] OP_REQUIRES failed at xla_ops.cc:362 : INTERNAL: RET_CHECK failure (tensorflow/compiler/xla/service/gpu/gpu_compiler.cc:618) dnn != nullptr 

Screen Shot 2023-05-17 at 11.50.22 PM.png

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
3,332 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Vahid Ghafarpour 23,385 Reputation points Volunteer Moderator
    2023-05-18T04:17:35.5333333+00:00

    It is a compiler issue, and it can be the result of an incompatible GPU or a problem in driver installation.

    Ensure that you have the correct versions of CUDA and cuDNN installed and that they are compatible with your TensorFlow version.

    1 person found this answer helpful.

  2. romungi-MSFT 48,906 Reputation points Microsoft Employee Moderator
    2023-05-18T11:40:33.6133333+00:00

    @ns To add to the below answer, I think you are using a compute instance that is only CPU enabled. Try using a GPU enabled compute instance and try the same scenario to install and import tensorflow. Thanks!!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.