[Dclib-devel] [dclib-devel] loss_mean_squared_per_pixel_ and gradient
Brought to you by:
davisking
From: Eloi Du B. <elo...@gm...> - 2017-12-15 00:09:20
|
I'm trying to make an 2d auto-encoder using loss_mean_squared_per_pixel. It is really strange, I am getting a loss of 10e-5 on a training set, but then, when I apply a forward pass on my validation set, which contains something very very similar to the training set, I get an error of 0.1. I think the problem is on my side, but I see something that I would like to understand in this loss function: In file loss.h +2421 It is written: float* const g = grad.host(); On other functions I see: float* const g = grad.host_write_only(); Could this be a problem? What is the difference? Just want to make sure the GPU gradient is well updated. Thanks, <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> |