mean functions in place

This commit is contained in:
James Hensman 2015-03-23 14:47:49 +00:00
parent efb32282de
commit fa801bf46c
8 changed files with 18 additions and 9 deletions

View file

@ -33,7 +33,7 @@ class Linear(Mapping):
return np.dot(X, self.A)
def update_gradients(self, dL_dF, X):
self.A.gradient = np.dot( X.T dL_dF)
self.A.gradient = np.dot( X.T, dL_dF)
def gradients_X(self, dL_dF, X):
return np.dot(dL_dF, self.A.T)