{"action":"opened","issue":{"url":"https://api.github.com/repos/gbaydin/DiffSharp/issues/2","labels_url":"https://api.github.com/repos/gbaydin/DiffSharp/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/gbaydin/DiffSharp/issues/2/comments","events_url":"https://api.github.com/repos/gbaydin/DiffSharp/issues/2/events","html_url":"https://github.com/gbaydin/DiffSharp/issues/2","id":57810566,"number":2,"title":"separate treatment for [Adj * float -> Adj] operations","user":{"login":"ghennequin","id":5627545,"avatar_url":"https://avatars.githubusercontent.com/u/5627545?v=3","gravatar_id":"","url":"https://api.github.com/users/ghennequin","html_url":"https://github.com/ghennequin","followers_url":"https://api.github.com/users/ghennequin/followers","following_url":"https://api.github.com/users/ghennequin/following{/other_user}","gists_url":"https://api.github.com/users/ghennequin/gists{/gist_id}","starred_url":"https://api.github.com/users/ghennequin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghennequin/subscriptions","organizations_url":"https://api.github.com/users/ghennequin/orgs","repos_url":"https://api.github.com/users/ghennequin/repos","events_url":"https://api.github.com/users/ghennequin/events{/privacy}","received_events_url":"https://api.github.com/users/ghennequin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-16T14:31:06Z","updated_at":"2015-02-16T14:31:06Z","closed_at":null,"body":"Hi, just a quick remark: it seems that (in some applications) you could save quite a bit by having separate AddFloat / SubFloat / MulFloat / DivFloat variants in Reverse.fs, to treat all four [Adj * float -> Adj] operations. Indeed the adjoint for those float constants is never going to be used; I understand those floats are currently being first converted into Adj and then passed in the Add/Sub/Mul/Div constructs, so their adjoints will actually get computed. [I haven't thoroughly read your code so I could well be missing something...]"}}