Closed LCG22 closed 4 years ago
使用的是 tf2.1 的 keras 创建的模型,是在使用 Streamer 对模型进行封装后,使用 predict 方法时报的错。如果不使用 Stream而 进行封装,同样使用 predict 方法时却不会报错。请问代码需要怎么改,才能解决这个问题呢?
原来是输入格式要是 list 类型的
使用的是 tf2.1 的 keras 创建的模型,是在使用 Streamer 对模型进行封装后,使用 predict 方法时报的错。如果不使用 Stream而 进行封装,同样使用 predict 方法时却不会报错。请问代码需要怎么改,才能解决这个问题呢?