错误:Can not convert a ndarray into a Tensor or Operation.
原因:接收的参数名和run()里面的参数名一样了,这样的话,第一次不会报错,下一次运行中,test_fc1,test_fc2变量名已有了,直接跑会和你前面定义的test_fc1,test_fc2相关运算冲突。 所以将接收的变量名改了就可以了。
参考链接:
https://blog.youkuaiyun.com/michael__corleone/article/details/79007425