ValueError: Weights for model sequential_1 have not yet been created. Weights are created when the Model is first called on inputs or `build()` is called with an `input_shape`.
ValueError: Weights for model sequential_1 have not yet been created. Weights are created when the Model is first called on inputs or build()
is called with an input_shape
.
它说模型没创建权重,权重是模型首次调用的时候创建的。
报错的是这句:
self.target_model.