Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Nov 4, 2019

Stack from ghstack:

TensorNames::checkUnique gives a nice error message if there are
duplicate names.

Adding operator<< on TensorName cleans up some code. A TensorName gets
printed out as: "'H' (index 2 of ['N', 'C', 'H', 'W'])" for example.

Test Plan:

  • New c++ tests. test with build/bin/NamedTensor_test.

Differential Revision: D18311868

TensorNames::checkUnique gives a nice error message if there are
duplicate names.

Adding operator<< on TensorName cleans up some code. A TensorName gets
printed out as: "'H' (index 2 of ['N', 'C', 'H', 'W'])" for example.

Test Plan:
- New c++ tests. test with `build/bin/NamedTensor_test`.

[ghstack-poisoned]
…nsorName)"

TensorNames::checkUnique gives a nice error message if there are
duplicate names.

Adding operator<< on TensorName cleans up some code. A TensorName gets
printed out as: "'H' (index 2 of ['N', 'C', 'H', 'W'])" for example.

Test Plan:
- New c++ tests. test with `build/bin/NamedTensor_test`.

[ghstack-poisoned]
…nsorName)"

TensorNames::checkUnique gives a nice error message if there are
duplicate names.

Adding operator<< on TensorName cleans up some code. A TensorName gets
printed out as: "'H' (index 2 of ['N', 'C', 'H', 'W'])" for example.

Test Plan:
- New c++ tests. test with `build/bin/NamedTensor_test`.

[ghstack-poisoned]
@zou3519 zou3519 requested review from gchanan, izdeby and nairbv November 4, 2019 16:57
…nsorName)"

TensorNames::checkUnique gives a nice error message if there are
duplicate names.

Adding operator<< on TensorName cleans up some code. A TensorName gets
printed out as: "'H' (index 2 of ['N', 'C', 'H', 'W'])" for example.

Test Plan:
- New c++ tests. test with `build/bin/NamedTensor_test`.

[ghstack-poisoned]
zdevito pushed a commit to zdevito/ATen that referenced this pull request Nov 5, 2019
Summary:
Pull Request resolved: pytorch/pytorch#29124

TensorNames::checkUnique gives a nice error message if there are
duplicate names.

Adding operator<< on TensorName cleans up some code. A TensorName gets
printed out as: "'H' (index 2 of ['N', 'C', 'H', 'W'])" for example.

Test Plan: - New c++ tests. test with `build/bin/NamedTensor_test`.

Differential Revision: D18311868

Pulled By: zou3519

fbshipit-source-id: 5be197dba227f0328b40d7f66e78fffefe4dbd00
@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in 3233a05.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants