Keras TPU. Compilation failure: Detected unsupported operations
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to run my keras UNet model using Google Colab TPU and I faced this problem with UpSampling2D . Any solutions or workaround? Code to run: import os import numpy as np import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import UpSampling2D model = Sequential() model.add(UpSampling2D((2, 2), input_shape=(16, 16, 1))) model.compile(optimizer=tf.train.RMSPropOptimizer(learning_rate=0.01), loss='binary_crossentropy', metrics=['acc']) TPU_WORKER = 'grpc://' + os.environ['COLAB_TPU_ADDR'] tf