{"action":"created","issue":{"url":"https://api.github.com/repos/sympy/sympy/issues/11439","repository_url":"https://api.github.com/repos/sympy/sympy","labels_url":"https://api.github.com/repos/sympy/sympy/issues/11439/labels{/name}","comments_url":"https://api.github.com/repos/sympy/sympy/issues/11439/comments","events_url":"https://api.github.com/repos/sympy/sympy/issues/11439/events","html_url":"https://github.com/sympy/sympy/pull/11439","id":168018588,"number":11439,"title":"[WIP] Add tensorflow to lambdify modules.","user":{"login":"ataber","id":1509787,"avatar_url":"https://avatars.githubusercontent.com/u/1509787?v=3","gravatar_id":"","url":"https://api.github.com/users/ataber","html_url":"https://github.com/ataber","followers_url":"https://api.github.com/users/ataber/followers","following_url":"https://api.github.com/users/ataber/following{/other_user}","gists_url":"https://api.github.com/users/ataber/gists{/gist_id}","starred_url":"https://api.github.com/users/ataber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ataber/subscriptions","organizations_url":"https://api.github.com/users/ataber/orgs","repos_url":"https://api.github.com/users/ataber/repos","events_url":"https://api.github.com/users/ataber/events{/privacy}","received_events_url":"https://api.github.com/users/ataber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-28T05:55:50Z","updated_at":"2016-07-28T19:31:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/sympy/sympy/pulls/11439","html_url":"https://github.com/sympy/sympy/pull/11439","diff_url":"https://github.com/sympy/sympy/pull/11439.diff","patch_url":"https://github.com/sympy/sympy/pull/11439.patch"},"body":"Attempting to solve [this issue](https://github.com/sympy/sympy/issues/11420). This may not be the standard way to integrate Tensorflow into Sympy, criticisms and comments welcome! I also considered following the `TheanoPrinter` model, but I chose this approach because I need to be able to treat a Sympy expression like a function and call it with either a `tf.placeholder` or a `tf.constant` or even a tensor that represents a more complicated subgraph. I want to add more tests, but first I want to hear from people in the community about the approach before I dedicate time to writing those tests."},"comment":{"url":"https://api.github.com/repos/sympy/sympy/issues/comments/236000320","html_url":"https://github.com/sympy/sympy/pull/11439#issuecomment-236000320","issue_url":"https://api.github.com/repos/sympy/sympy/issues/11439","id":236000320,"user":{"login":"ataber","id":1509787,"avatar_url":"https://avatars.githubusercontent.com/u/1509787?v=3","gravatar_id":"","url":"https://api.github.com/users/ataber","html_url":"https://github.com/ataber","followers_url":"https://api.github.com/users/ataber/followers","following_url":"https://api.github.com/users/ataber/following{/other_user}","gists_url":"https://api.github.com/users/ataber/gists{/gist_id}","starred_url":"https://api.github.com/users/ataber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ataber/subscriptions","organizations_url":"https://api.github.com/users/ataber/orgs","repos_url":"https://api.github.com/users/ataber/repos","events_url":"https://api.github.com/users/ataber/events{/privacy}","received_events_url":"https://api.github.com/users/ataber/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T19:31:09Z","updated_at":"2016-07-28T19:31:09Z","body":"To answer the other points, the use case I'm designing for is, given a Sympy expression, I want to be able to evaluate it with its symbols replaced with either `tf.constant`s, `tf.placeholder`s, or `tf.Variable`s. I had trouble figuring out how to achieve this in the `TheanoPrinter` model. For instance, [this method](https://github.com/ataber/sympy/blob/570b2c98d729020ae13843fd6aa2159a31daf2b2/sympy/printing/theanocode.py#L74) would probably have to have some kind of flag to indicate which of those three to replace the symbol with. As for the loop question, I don't have a use case right now which uses a loop, but I definitely will want that functionality at some point."}}
{"actor":{"display_login":"ataber"}}