最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - ValueError: Unknown layer: 'TensorFlowOpLayer'. Please ensure you are using a keras.utils.custom_object

programmeradmin2浏览0评论
import numpy as np
import tensorflow as tf
from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense, Concatenate, add, multiply
from tensorflow.keras import Input
from tensorflow.keras import optimizers
from keras import backend as K
import os_dir = "/content/drive/MyDrive/Neural-Optimization-Machine-NOM-main/problem1/"       
save_model_name = os.path.join(_dir,'problem1_NN objective function.h5')
model = tf.keras.models.load_model(save_model_name, compile=False)

ValueError: Unknown layer: 'TensorFlowOpLayer'. Please ensure you are using a keras.utils.custom_object_scope and that this object is included in the scope. See for details.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论