admin管理员组文章数量:1346064
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.
本文标签:
版权声明:本文标题:python - ValueError: Unknown layer: 'TensorFlowOpLayer'. Please ensure you are using a keras.utils.custom_object 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743821853a2544928.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论