Skip to content

Move Type.h, Tensor.h, TensorMethods.h to core.#11489

Closed
gchanan wants to merge 8 commits intopytorch:masterfrom
gchanan:core_tensor_type4
Closed

Move Type.h, Tensor.h, TensorMethods.h to core.#11489
gchanan wants to merge 8 commits intopytorch:masterfrom
gchanan:core_tensor_type4

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Sep 10, 2018

To do this, we check in the files, but still generate them (to a different location) and check that they match.

This has the advantage of making it searchable while still ensuring they match what would be generated and can be easily refactored.

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.

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

To do this, we check in the files, but still generate them (to a different location) and check that they match.
This has the advantage of making it searchable while still ensuring they match what would be generated and can be easily refactored.
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.

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

@gchanan
Copy link
Contributor Author

gchanan commented Sep 11, 2018


static int CoreTestGlobal = 0;
int CoreTest() {
Tensor x;

This comment was marked as off-topic.

This comment was marked as off-topic.

file_manager.check_all_files_written()
cuda_file_manager.check_all_files_written()

# check that generated files match source files

This comment was marked as off-topic.

This comment was marked as off-topic.

Copy link
Contributor

@ezyang ezyang left a comment

Choose a reason for hiding this comment

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

I better hurry up with my patch...

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants