Skip to content

expose parse_schema and __eq__ function to python and add round trip tests#23208

Closed
houseroad wants to merge 10 commits intogh/houseroad/11/basefrom
gh/houseroad/11/head
Closed

expose parse_schema and __eq__ function to python and add round trip tests#23208
houseroad wants to merge 10 commits intogh/houseroad/11/basefrom
gh/houseroad/11/head

Conversation

@houseroad
Copy link
Member

@houseroad houseroad commented Jul 23, 2019

Stack from ghstack:

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: D16435471

…tests

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
@pytorchbot pytorchbot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jul 23, 2019
houseroad added a commit that referenced this pull request Jul 23, 2019
…tests

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)

ghstack-source-id: 86986325
Pull Request resolved: #23208
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
houseroad added a commit that referenced this pull request Jul 23, 2019
…tests

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Pull Request resolved: #23208
ghstack-source-id: 86986662

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
houseroad added a commit that referenced this pull request Jul 23, 2019
…tests

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Pull Request resolved: #23208
ghstack-source-id: 87030728

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
from common_utils import TestCase


class TestSparse(TestCase):
Copy link
Collaborator

Choose a reason for hiding this comment

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

change name?

@@ -0,0 +1,18 @@
from __future__ import absolute_import, division, print_function, unicode_literals
Copy link
Collaborator

Choose a reason for hiding this comment

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

if you're creating a new file - we should put it into TARGETS and some run_test.py files I think. Otherwise it won't be run in CI. Or just dump it into test_jit.py :)

Copy link
Member Author

Choose a reason for hiding this comment

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

I have put it into TARGETS, forgot to add it to run_test.py. Good catch!

…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
houseroad added a commit that referenced this pull request Jul 24, 2019
…tests

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Pull Request resolved: #23208
ghstack-source-id: 87125576

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
@pytorchbot pytorchbot added the module: tests Issues related to tests (not the torch.testing module) label Jul 24, 2019
Copy link
Collaborator

@dzhulgakov dzhulgakov left a comment

Choose a reason for hiding this comment

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

Looks like you need to fix the doctest here (please do before landing):

…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
@pytorchbot pytorchbot added the module: docs Related to our documentation, both in docs/ and docblocks label Jul 26, 2019
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
@houseroad houseroad requested a review from apaszke as a code owner September 5, 2019 20:31
…round trip tests"

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
houseroad added a commit that referenced this pull request Sep 6, 2019
…tests

expose necessary functions to python, and add round-way tests for
function schema str() and parsing functions.
We iterate over all the registered function schemas and get the string,
then parse the string. We compare the schema generated from parsing with
the original one, and make sure they are equal.

Pull Request resolved: #23208
ghstack-source-id: 89638026

Differential Revision: [D16435471](https://our.internmc.facebook.com/intern/diff/D16435471/)
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 75cac0f.

@facebook-github-bot facebook-github-bot deleted the gh/houseroad/11/head branch October 28, 2019 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged module: docs Related to our documentation, both in docs/ and docblocks module: tests Issues related to tests (not the torch.testing module) 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