Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow: None of the MLIR optimization passes are enabled (registered 1)

I am using a very small model for testing purposes using tensorflow 2.3 and keras. Looking at my terminal, I get the following warning:

I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:118] None of the MLIR optimization passes are enabled (registered 1)

However, the code works as expected. But what does this message mean?

Thanks.

like image 318
MichaelJanz Avatar asked Sep 14 '20 14:09

MichaelJanz


People also ask

What does it mean when mlir optimization passes are not enabled?

Hope it help! None of the MLIR Optimization Passes are enabled is a bit misleading as it refers to very particular workflow. But it is benign and has no effect - it just means a user didn’t opt in to a specific pass (which is not enabled by default), so it doesn’t indicate any error and was rather used as signal for developers.

What does the I at the beginning of a TensorFlow message mean?

The I at the beginning of the message means this is an informational log message. MLIR is being used as another solution to implementing and optimizing Tensorflow logic. This informative message is benign and is saying MLIR was not being used.

Is TF using mlir or non-mlir?

This is expected as in TF 2.3, the MLIR based implementation is still being developed and proven, so end users are generally not expected to use the MLIR implementation and are instead expected to use the non-MLIR feature complete implementation.

What is mlir being used for?

MLIR is being used as another solution to implementing and optimizing Tensorflow logic. This informative message is benign and is saying MLIR was not being used.


2 Answers

MLIR is being used as another solution to implementing and optimizing Tensorflow logic. This informative message is benign and is saying MLIR was not being used. This is expected as in TF 2.3, the MLIR based implementation is still being developed and proven, so end users are generally not expected to use the MLIR implementation and are instead expected to use the non-MLIR feature complete implementation.

Update: still experimental on version 2.9.1. On the docs it is written:

DO NOT USE, DEV AND TESTING ONLY AT THE MOMENT.

like image 194
Theodore Popp Avatar answered Oct 20 '22 06:10

Theodore Popp


You need to assign verbose=1 in your code

like image 41
AissamR38 Avatar answered Sep 17 '22 22:09

AissamR38