{"action":"opened","issue":{"url":"https://api.github.com/repos/fchollet/keras/issues/1794","repository_url":"https://api.github.com/repos/fchollet/keras","labels_url":"https://api.github.com/repos/fchollet/keras/issues/1794/labels{/name}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/1794/comments","events_url":"https://api.github.com/repos/fchollet/keras/issues/1794/events","html_url":"https://github.com/fchollet/keras/issues/1794","id":135594043,"number":1794,"title":"ValueError when using model checkpoints","user":{"login":"kai94","id":15364243,"avatar_url":"https://avatars.githubusercontent.com/u/15364243?v=3","gravatar_id":"","url":"https://api.github.com/users/kai94","html_url":"https://github.com/kai94","followers_url":"https://api.github.com/users/kai94/followers","following_url":"https://api.github.com/users/kai94/following{/other_user}","gists_url":"https://api.github.com/users/kai94/gists{/gist_id}","starred_url":"https://api.github.com/users/kai94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kai94/subscriptions","organizations_url":"https://api.github.com/users/kai94/orgs","repos_url":"https://api.github.com/users/kai94/repos","events_url":"https://api.github.com/users/kai94/events{/privacy}","received_events_url":"https://api.github.com/users/kai94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-23T01:02:10Z","updated_at":"2016-02-23T01:02:10Z","closed_at":null,"body":"I got the following error when I run my code\r\n\r\n```\r\ncheckpointer1 = ModelCheckpoint(filepath='weights.{epoch:02d}-{val_loss:.2f}.hdf5', verbose=1, save_best_only=True)\r\nmodel_systole.fit(X_train,y_train, \r\n                      nb_epoch=nb_epoch,\r\n                      batch_size=batch_size,\r\n                      validation_data=(X_test,y_test),\r\n                      callbacks=[checkpointer1])\r\n```\r\nWill be great if you can help me out.\r\nThank you in advance.\r\n```\r\nValueError: dimension mismatch in args to gemm (32,500)x(500,1)->(32,2)\r\nApply node that caused the error: GpuGemm{inplace}(GpuFromHost.0, TensorConstant{1.0}, GpuElemwise{Composite{((i0 + Abs(i0)) * i1)},no_inplace}.0, <CudaNdarrayType(float32, matrix)>, TensorConstant{-1.0})\r\nToposort index: 564\r\nInputs types: [CudaNdarrayType(float32, matrix), TensorType(float32, scalar), CudaNdarrayType(float32, matrix), CudaNdarrayType(float32, matrix), TensorType(float32, scalar)]\r\nInputs shapes: [(32, 2), (), (32, 500), (500, 1), ()]\r\nInputs strides: [(2, 1), (), (500, 1), (1, 0), ()]\r\nInputs values: ['not shown', array(1.0, dtype=float32), 'not shown', 'not shown', array(-1.0, dtype=float32)]\r\nOutputs clients: [[GpuElemwise{add,no_inplace}(GpuDimShuffle{x,0}.0, GpuGemm{inplace}.0)]]\r\n```\r\n\r\nPlease make sure that the boxes below are checked before you submit your issue. Thank you!\r\n\r\n- [Y ] Check that you are up-to-date with the master branch of Keras. You can update with:\r\npip install git+git://github.com/fchollet/keras.git --upgrade --no-deps\r\n\r\n- [Y ] If running on Theano, check that you are up-to-date with the master branch of Theano. You can update with:\r\npip install git+git://github.com/Theano/Theano.git --upgrade --no-deps\r\n\r\n- [Y ] Provide a link to a GitHub Gist of a Python script that can reproduce your issue (or just copy the script here if it is short)."}}