Skip to content

Enable tracing of tensor factories with an out argument#12051

Closed
apaszke wants to merge 2 commits intopytorch:masterfrom
apaszke:factory
Closed

Enable tracing of tensor factories with an out argument#12051
apaszke wants to merge 2 commits intopytorch:masterfrom
apaszke:factory

Conversation

@apaszke
Copy link
Contributor

@apaszke apaszke commented Sep 25, 2018

No description provided.

Copy link
Contributor

@zdevito zdevito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just want some comments.

trace_input_spec.append(('result', 'result.options()'))

local['add_trace_inputs'] = \
'\n'.join(ADD_TRACE_INPUT.substitute(name=name, input=value) for name, value in trace_input_spec)

This comment was marked as off-topic.

This comment was marked as off-topic.

def format_trace(declaration):
local = {}
local['trace_name'] = trace_name = uninplace_api_name(declaration['api_name'])

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apaszke has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants