Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
forward_all with error objective as output #5769
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kevin-w-li commentedJul 12, 2017
This might be a misuse, but at least there should be some warning.
The PyCaffe function forward_all assumes that, in each batch, the
blobshave the same outermost dimension as the input. But if the network has the error objective as the output, which will be singleton returned byforwardnot matter how many input there is, then the line at line 204all_outs[out].extend(out_blob.copy())will complain
out_blobis not an array. Also, when checking for padding before this function returns,six.nextdoes not look for the correct output (error output or blob value).I guess this
padvalue should be calculated using the batch size of the network, and deal with the error value differently...The same problem is also in other 'all' functions