How to Solve NameError: name 'linear_operator' is not defined -- tensorflow

Solution: Import the 'linear_operator' module

# Add the following line to the top of your code
from tensorflow.python.ops.linalg import linear_operator

 

For more information:
tensorflow linear_operator