import os
import time
import cv2
import tensorflow as tf
gpus = tf.config.list_physical_devices("GPU")
if gpus:
for gpu in gpus:
tf.config.experimental.set_memory_growth(gpu, True)
from tensorflow.python.keras import layers
import matplotlib.pyplot as plt
import numpy as np
from tensorflow.python.keras import backend as K
from sklearn.manifold import TSNE
import matplotlib.pyplot as plt
from tensorflow.python import keras
代码如上,每次跑的时候都报下面的错误,求解决方法
报错求解决:AttributeError: module 'tensorflow.python.layers' has no attribute 'experimental'