我将 golang 与 tensorflow 模型结合使用。使用此代码:```
output, err := sessionModel.Run( map[tf.Output]*tf.Tensor{
graphModel.Operation("input").Output(0): tensor,
},
[]tf.Output{
graphModel.Operation("output").Output(0),
}, nil)```
但显示错误: 2019/01/07 18:07:48 http: panic serving [::1]:55262: nil-Operation. If the Output was created with a Scope object, see Scope.Err() for details.
我已经检查tensor过图像文件中是否包含张量。有什么推荐吗?不管怎么说,还是要谢谢你
斯蒂芬大帝
九州编程
相关分类