Skip to content

Conversation

@ajtulloch
Copy link
Contributor

Avoids these files in Phabricator and other tools respecting this annotation.

Diff generated with for f in aten/src/ATen/templates/*; do gsed -i '1i \/\/ @generated' $f; done

@ajtulloch ajtulloch merged commit f534339 into pytorch:master May 23, 2018
petrex pushed a commit to petrex/pytorch that referenced this pull request May 23, 2018
…e2_core_hip

* 'caffe2_core_hip' of github.com:petrex/pytorch: (24 commits)
  Allow empty storage for the 'Edge' class. (pytorch#7595)
  Process group base class and Gloo implementation (pytorch#7628)
  _LRSchedulers getstate include optimizer info (pytorch#7757)
  [PyTorch] [gradcheck] change backward() to grad() (pytorch#7710)
  Update test_nn.py (pytorch#7787)
  Define general default scheduler for TBB and fix ppc64le bug (pytorch#7761)
  Add support for accepting Tensor as input in clip_grad_*  functions. (pytorch#7769)
  [Easy] Remove unused code (pytorch#7782)
  Update tbb (pytorch#7734)
  Add @generated annotation (pytorch#7780)
  fix legacy comment after variable tensor merge (pytorch#7771)
  Revert pytorch#7750 and pytorch#7762 to fix Windows CI on master (pytorch#7772)
  Temporarily disable build env check (pytorch#7768)
  Add missing brace (pytorch#7762)
  [C++ API] Add backward() to Tensor and Variable  (pytorch#7750)
  [auto] Update onnx to d43b550 - Fix .gitignore and add missing files (onnx/onnx#1005) onnx/onnx@d43b550
  [auto] Update onnx to ea1aa13 - add tests for reduce ops (onnx/onnx#675) onnx/onnx@ea1aa13
  include cudnn_h (pytorch#7749)
  [C++ API] Using new registration mechanism (pytorch#7663)
  [auto] Update onnx to 5dd68e6 - Add a util function: polish_model (onnx/onnx#1000) onnx/onnx@5dd68e6
  ...
@goldsborough
Copy link
Contributor

It would have been better to change the autogen to add the comment only to the generated files, not the templates themselves. Otherwise nuclide locks the template file when you want to edit it (and you have to unlock it):

screen shot 2018-05-24 at 16 24 38

colesbury added a commit to colesbury/pytorch that referenced this pull request May 25, 2018
We want @generated only in the build products. Otherwise, templates are
locked and changes to the templates are excluded from phabricator.

Also adds @generated to autograd generated files (e.g.
VariableType.cpp).

See pytorch#7780
ezyang pushed a commit that referenced this pull request May 29, 2018
* Avoid @generated in templates.

We want @generated only in the build products. Otherwise, templates are
locked and changes to the templates are excluded from phabricator.

Also adds @generated to autograd generated files (e.g.
VariableType.cpp).

See #7780

* Don't try to specify the template filename in generated comment

The template filename is not always the same as the generated filename.
weiyangfb pushed a commit to weiyangfb/pytorch that referenced this pull request Jun 11, 2018
weiyangfb pushed a commit to weiyangfb/pytorch that referenced this pull request Jun 11, 2018
* Avoid @generated in templates.

We want @generated only in the build products. Otherwise, templates are
locked and changes to the templates are excluded from phabricator.

Also adds @generated to autograd generated files (e.g.
VariableType.cpp).

See pytorch#7780

* Don't try to specify the template filename in generated comment

The template filename is not always the same as the generated filename.
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.

3 participants