Re: [Dclib-devel] [dclib-devel] loss_mean_squared_per_pixel_ and gradient
Brought to you by:
davisking
From: Davis K. <dav...@gm...> - 2017-12-15 02:20:24
|
Every function and class in dlib is documented. When you have questions about what something does you should refer to the documentation. It's all explained there. On Thu, Dec 14, 2017 at 7:09 PM, Eloi Du Bois <elo...@gm...> wrote: > 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> > <#m_-8943620989895474723_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Dclib-devel mailing list > Dcl...@li... > https://lists.sourceforge.net/lists/listinfo/dclib-devel > > |