the code to obtain the learning rate in resnet50_train.py is as follows:
learning_rate = workspace.FetchBlob(prefix + '/conv1_w_lr')
and when I run the code, errors occured:
Traceback (most recent call last): File "/home/caffe2/caffe2/caffe2/python/examples/resnet50_trainer.py", line 475, in main() File "/home/caffe2/caffe2/caffe2/python/examples/resnet50_trainer.py", line 471, in main Train(args) File "/home/caffe2/caffe2/caffe2/python/examples/resnet50_trainer.py", line 400, in Train explog File "/home/caffe2/caffe2/caffe2/python/examples/resnet50_trainer.py", line 163, in RunEpoch learning_rate = workspace.FetchBlob(prefix + '/conv1_w_lr') File "/home/caffe2-master/caffe2/build/caffe2/python/workspace.py", line 323, in FetchBlob return C.fetch_blob(StringifyBlobName(name)) RuntimeError: [enforce fail at pybind_state.cc:152] ws->HasBlob(name). Can't find blob: gpu_0/conv1_w_lr
what caused the problem? Should I re-compile any dependencies or if there is any other function can be employed to obtain learning rate?