系统是 ubuntu 16.04,tensorflow版本是1.6, cuDNN版本是7.0。git clone tensorflow后试着跑了一下image_retrain.py(以下简称retrain)和label_image.py(以下简称label)。retain训练新的mobilenet分类器成功,用label测试新分类器也成功。但是用label在tensorflow 1.4以下的环境中测试新分类器中出错。错误提示如下:
> InvalidArgumentError (see above for traceback): NodeDef mentions attr
> 'dilations' not in Op<name=Conv2D; signature=input:T, filter:T ->
> output:T; attr=T:type,allowed=[DT_HALF, DT_FLOAT];
> attr=strides:list(int); attr=use_cudnn_on_gpu:bool,default=true;
> attr=padding:string,allowed=["SAME", "