Skip to content

Conversation

@suo
Copy link
Member

@suo suo commented Nov 11, 2019

Stack from ghstack:

The normal flow for type sharing assumes that we will construct the
ConcreteModuleType, then use operator== to decide whether or not to
reuse an existing JIT type. In this case, jitType_ is not populated,
so it doesn't make sense to compare it.

However, there is one exception to this flow: for traced modules, we
pre-compute the JIT type and poke it into the ConcreteModuleType
manually. To handle this case, we should compare the jitType_s in
operator== like everything else.

Differential Revision: D18435949

The normal flow for type sharing assumes that we will construct the
`ConcreteModuleType`, then use `operator==` to decide whether or not to
reuse an existing JIT type. In this case, `jitType_` is not populated,
so it doesn't make sense to compare it.

However, there is one exception to this flow: for traced modules, we
pre-compute the JIT type and poke it into the `ConcreteModuleType`
manually. To handle this case, we should compare the `jitType_`s in
`operator==` like everything else.
The normal flow for type sharing assumes that we will construct the
`ConcreteModuleType`, then use `operator==` to decide whether or not to
reuse an existing JIT type. In this case, `jitType_` is not populated,
so it doesn't make sense to compare it.

However, there is one exception to this flow: for traced modules, we
pre-compute the JIT type and poke it into the `ConcreteModuleType`
manually. To handle this case, we should compare the `jitType_`s in
`operator==` like everything else.

Differential Revision: [D18435949](https://our.internmc.facebook.com/intern/diff/D18435949)
suo added a commit that referenced this pull request Nov 11, 2019
The normal flow for type sharing assumes that we will construct the
`ConcreteModuleType`, then use `operator==` to decide whether or not to
reuse an existing JIT type. In this case, `jitType_` is not populated,
so it doesn't make sense to compare it.

However, there is one exception to this flow: for traced modules, we
pre-compute the JIT type and poke it into the `ConcreteModuleType`
manually. To handle this case, we should compare the `jitType_`s in
`operator==` like everything else.

ghstack-source-id: ffc21c9
Pull Request resolved: #29583
@ZolotukhinM ZolotukhinM self-requested a review November 11, 2019 21:46
Copy link

@ZolotukhinM ZolotukhinM left a comment

Choose a reason for hiding this comment

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

👍

@kostmo
Copy link
Member

kostmo commented Nov 11, 2019

CircleCI build failures summary

As of commit 1c976a8:

  • 3/3 failures introduced in this PR
  • 0/3 recognized as flaky

Here are the reasons each build failed.


This comment was automatically generated by Dr. CI.
Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 1 time(s).

@facebook-github-bot
Copy link
Contributor

@suo merged this pull request in a091975.

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

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants