{"action":"created","issue":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9194","repository_url":"https://api.github.com/repos/tensorflow/tensorflow","labels_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9194/labels{/name}","comments_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9194/comments","events_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9194/events","html_url":"https://github.com/tensorflow/tensorflow/issues/9194","id":221661279,"number":9194,"title":"XLA: Help understanding compute path for HLO graph","user":{"login":"lwogulis","id":13294147,"avatar_url":"https://avatars3.githubusercontent.com/u/13294147?v=3","gravatar_id":"","url":"https://api.github.com/users/lwogulis","html_url":"https://github.com/lwogulis","followers_url":"https://api.github.com/users/lwogulis/followers","following_url":"https://api.github.com/users/lwogulis/following{/other_user}","gists_url":"https://api.github.com/users/lwogulis/gists{/gist_id}","starred_url":"https://api.github.com/users/lwogulis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwogulis/subscriptions","organizations_url":"https://api.github.com/users/lwogulis/orgs","repos_url":"https://api.github.com/users/lwogulis/repos","events_url":"https://api.github.com/users/lwogulis/events{/privacy}","received_events_url":"https://api.github.com/users/lwogulis/received_events","type":"User","site_admin":false},"labels":[{"id":473184161,"url":"https://api.github.com/repos/tensorflow/tensorflow/labels/type:support","name":"type:support","color":"b60205","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-13T19:37:28Z","updated_at":"2017-04-14T01:13:24Z","closed_at":"2017-04-14T01:13:24Z","body":"@aidan-plenert-macdonald and I are trying to figure out how the HLO graph is being passed around during xla computations. I'm moving computations over to a new device and am attempting to intercept the graph to see how it's represented, in order to replicate the structure.\r\n\r\nA list of the files where I added print statements is included below. Almost none of them print (only Registrar initialization in hlo_graph_dumper.cc, the Transfer functions in client.cc and service.cc, and the CpuCompiler and XpuCompiler initializations), and I've added statements in almost every function in the attached files.\r\n\r\nWhere is the HLO graph being assembled and dumped? How do I access the HLO graph?\r\n\r\nNote: the 'xpu' folder/files are for my new device - they're replicas of the 'cpu' folder/files in compiler/xla/service, with all mentions of 'cpu' changed to 'xpu'. List of files with print statements:\r\n```\r\n./compiler/aot/compile.cc\r\n./compiler/jit/encapsulate_subgraphs_pass.cc\r\n./compiler/jit/mark_for_compilation_pass.cc\r\n./compiler/tf2xla/kernels/batch_matmul_op.cc\r\n./compiler/tf2xla/kernels/gather_op.cc\r\n./compiler/tf2xla/xla_compiler.cc\r\n./compiler/xla/client/client.cc\r\n./compiler/xla/service/cpu/cpu_compiler.cc\r\n./compiler/xla/service/hlo_computation.cc\r\n./compiler/xla/service/hlo_graph_dumper.cc\r\n./compiler/xla/service/layout_assignment.cc\r\n./compiler/xla/service/service.cc\r\n./compiler/xla/service/user_computation.cc\r\n./compiler/xla/service/xpu/xpu_compiler.cc\r\n./compiler/xla/service/xpu/xpu_executable.cc\r\n./compiler/xla/tests/hlo_test_base.cc\r\n./core/common_runtime/function.cc\r\n./core/common_runtime/graph_optimizer.cc\r\n```"},"comment":{"url":"https://api.github.com/repos/tensorflow/tensorflow/issues/comments/294060955","html_url":"https://github.com/tensorflow/tensorflow/issues/9194#issuecomment-294060955","issue_url":"https://api.github.com/repos/tensorflow/tensorflow/issues/9194","id":294060955,"user":{"login":"asimshankar","id":16018,"avatar_url":"https://avatars1.githubusercontent.com/u/16018?v=3","gravatar_id":"","url":"https://api.github.com/users/asimshankar","html_url":"https://github.com/asimshankar","followers_url":"https://api.github.com/users/asimshankar/followers","following_url":"https://api.github.com/users/asimshankar/following{/other_user}","gists_url":"https://api.github.com/users/asimshankar/gists{/gist_id}","starred_url":"https://api.github.com/users/asimshankar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asimshankar/subscriptions","organizations_url":"https://api.github.com/users/asimshankar/orgs","repos_url":"https://api.github.com/users/asimshankar/repos","events_url":"https://api.github.com/users/asimshankar/events{/privacy}","received_events_url":"https://api.github.com/users/asimshankar/received_events","type":"User","site_admin":false},"created_at":"2017-04-14T01:13:24Z","updated_at":"2017-04-14T01:13:24Z","body":"@lwogulis : `xla_dump_graph*` was meant to refer to a set of flags, like `xla_dump_hlo_text_to` etc. (see the link in my previous comment: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/compiler/xla/legacy_flags/service_flags.cc#L75)\r\n\r\nClosing this issue out since it seems that the xla-dev@ mailing list would be a more appropriate forum for XLA (which is still \"alpha/experimental\") specific questions."}}
{"actor":{"display_login":"asimshankar"}}