Skip to content

refactor tryMatchSchema (#26499)#27773

Closed
zdevito wants to merge 3 commits intogh/zdevito/125/basefrom
gh/zdevito/125/head
Closed

refactor tryMatchSchema (#26499)#27773
zdevito wants to merge 3 commits intogh/zdevito/125/basefrom
gh/zdevito/125/head

Conversation

@zdevito
Copy link
Contributor

@zdevito zdevito commented Oct 11, 2019

Stack from ghstack:

We've changed how these functions are used over time, so I cleaned up
the header file API to match. In particular:

  • tryMatchSchemas was added since the overload logic got copy/pasted
    into three separate locations.

  • With this change, tryMatchSchema is no longer public, as it is not needed
    outside of tryMatchSchemas

  • emitBuiltinFunction no longer needs a requires argument (it was always true)

  • Argument order for all the schema matching stuff now puts the 'self'
    builtin override last. This is only rarely used and was inconsistent with
    matchSchema

Differential Revision: D17885425

We've changed how these functions are used over time, so I cleaned up
the header file API to match. In particular:

* tryMatchSchemas was added since the overload logic got copy/pasted
into three separate locations.
* With this change, tryMatchSchema is no longer public, as it is not needed
  outside of tryMatchSchemas
* emitBuiltinFunction no longer needs a requires argument (it was always true)

* Argument order for all the schema matching stuff now puts the 'self'
builtin override last. This is only rarely used and was inconsistent with
matchSchema
refactor tryMatchSchema (#26499)

We've changed how these functions are used over time, so I cleaned up
the header file API to match. In particular:

* tryMatchSchemas was added since the overload logic got copy/pasted
into three separate locations.
* With this change, tryMatchSchema is no longer public, as it is not needed
  outside of tryMatchSchemas
* emitBuiltinFunction no longer needs a requires argument (it was always true)

* Argument order for all the schema matching stuff now puts the 'self'
builtin override last. This is only rarely used and was inconsistent with
matchSchema

gh-metadata: pytorch pytorch 27773 gh/zdevito/125/head
refactor tryMatchSchema (#26499)

We've changed how these functions are used over time, so I cleaned up
the header file API to match. In particular:

* tryMatchSchemas was added since the overload logic got copy/pasted
into three separate locations.
* With this change, tryMatchSchema is no longer public, as it is not needed
  outside of tryMatchSchemas
* emitBuiltinFunction no longer needs a requires argument (it was always true)

* Argument order for all the schema matching stuff now puts the 'self'
builtin override last. This is only rarely used and was inconsistent with
matchSchema

gh-metadata: pytorch pytorch 27773 gh/zdevito/125/head
@facebook-github-bot
Copy link
Contributor

@zdevito merged this pull request in 30d9316.

@facebook-github-bot facebook-github-bot deleted the gh/zdevito/125/head branch October 28, 2019 22:23
thiagocrepaldi pushed a commit to thiagocrepaldi/pytorch that referenced this pull request Feb 4, 2020
Summary:
Pull Request resolved: pytorch#27773

We've changed how these functions are used over time, so I cleaned up
the header file API to match. In particular:

* tryMatchSchemas was added since the overload logic got copy/pasted
into three separate locations.
* With this change, tryMatchSchema is no longer public, as it is not needed
  outside of tryMatchSchemas
* emitBuiltinFunction no longer needs a requires argument (it was always true)

* Argument order for all the schema matching stuff now puts the 'self'
builtin override last. This is only rarely used and was inconsistent with
matchSchema

Test Plan: Imported from OSS

Differential Revision: D17885425

Pulled By: zdevito

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

Labels

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.

5 participants