Skip to content

Conversation

@jamesr66a
Copy link
Collaborator

@jamesr66a jamesr66a commented Jun 25, 2019

Stack from ghstack:

Differential Revision: D15981423

Add token stack

wire up stack

i fucked up

something salvageable

[JIT] with debug prints

no more debug prints

pickle stuff
@pytorchbot pytorchbot added caffe2 oncall: jit Add this issue/PR to JIT oncall triage queue module: pybind Related to our Python bindings / interactions with other Python libraries labels Jun 25, 2019
[JIT] Preserve SourceRanges across serialization

Add token stack

wire up stack

i fucked up

something salvageable

[JIT] with debug prints

no more debug prints

pickle stuff

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
@jamesr66a jamesr66a requested review from suo and zdevito June 25, 2019 01:56
James Reed added 3 commits June 24, 2019 19:03
[JIT] Preserve SourceRanges across serialization

Add token stack

wire up stack

i fucked up

something salvageable

[JIT] with debug prints

no more debug prints

pickle stuff

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
[JIT] Preserve SourceRanges across serialization

Add token stack

wire up stack

i fucked up

something salvageable

[JIT] with debug prints

no more debug prints

pickle stuff

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
[JIT] Preserve SourceRanges across serialization

Add token stack

wire up stack

i fucked up

something salvageable

[JIT] with debug prints

no more debug prints

pickle stuff

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
@jamesr66a jamesr66a changed the title [JIT] Preserve SourceRanges across serialization [JIT] Write out SourceRanges on save() Jun 25, 2019
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.

This looks pretty good. I have a couple comments about encapsulating the tagged streams, and making sure we do not create tons of small strings that should be addressed.

[JIT] Preserve SourceRanges across serialization

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
@jamesr66a jamesr66a requested a review from zdevito June 26, 2019 17:17
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.

This is getting close -- I think there are still some bugs distinguishing places where variables are used and where they are defined. We should not be switching the source range when a variable is used. I also have some concerns about how big the debug information is because the source ranges are not being de-duplicated. There are a lot of really small strings " = " That are 3 bytes but will turn into >32 bytes of serialized data in the current format.

James Reed added 3 commits June 27, 2019 21:27
[JIT] Preserve SourceRanges across serialization

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
[JIT] Preserve SourceRanges across serialization

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
[JIT] Preserve SourceRanges across serialization

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
@jamesr66a jamesr66a requested a review from zdevito June 28, 2019 19:05
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.

ngnt

[JIT] Preserve SourceRanges across serialization

gh-metadata: pytorch pytorch 22179 gh/jamesr66a/8/head
@zou3519 zou3519 deleted the gh/jamesr66a/8/head branch July 2, 2019 04:17
@facebook-github-bot
Copy link
Contributor

@jamesr66a merged this pull request in 2c2a913.

xzhu1900 pushed a commit to xzhu1900/pytorch that referenced this pull request Jul 5, 2019
Summary:
Pull Request resolved: pytorch#22179
ghimport-source-id: 9879551

Test Plan: Imported from OSS

Differential Revision: D15981423

Pulled By: jamesr66a

fbshipit-source-id: a2506f5a2f05916b6e8226841b0229110e758671
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

caffe2 Merged module: pybind Related to our Python bindings / interactions with other Python libraries oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants