)]}'
{
  "commit": "afaee00feca07c565f6b080e021b3422bfc1e8d4",
  "tree": "394452dea559e13173a7658133e62c3d3da925ed",
  "parents": [
    "a876432aea11fd2c6e11b8397f4f89a30cd1e8ba"
  ],
  "author": {
    "name": "Mikayla Gawarecki",
    "email": "mikaylagawarecki@gmail.com",
    "time": "Wed Sep 28 17:38:29 2022 +0000"
  },
  "committer": {
    "name": "PyTorch MergeBot",
    "email": "pytorchmergebot@users.noreply.github.com",
    "time": "Wed Sep 28 20:15:02 2022 +0000"
  },
  "message": "Add python `nested_tensor` and `as_nested_tensor` constructors in `torch.nested` (#85593)\n\nRemove `torch.nested_tensor` which has erroneous behavior wrt gradients (could be either leaf or not leaf). Introduce `torch.nested.nested_tensor` and `torch.nested.as_nested_tensor` in the vein of `torch.tensor` and `torch.as_tensor`. Done in nested `__init__.py` for now but can move to pybind in future (when we want to load from numpy/nested lists ).\n\nDiscussed offline with @cpuhrsch and pybind constructor (https://github.com/pytorch/pytorch/pull/85536) was more gnarly than expected, so we can move to that when we do need loading from numpy etc.\n\nDifferential Revision: [D39806622](https://our.internmc.facebook.com/intern/diff/D39806622)\nPull Request resolved: https://github.com/pytorch/pytorch/pull/85593\nApproved by: https://github.com/drisspg, https://github.com/cpuhrsch\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3e141fcc3a645513fdfdd9233b8d8536f46511b6",
      "old_mode": 33188,
      "old_path": "aten/src/ATen/native/native_functions.yaml",
      "new_id": "70e78f71bd9a084af3b294e0a6adac48fc06eccf",
      "new_mode": 33188,
      "new_path": "aten/src/ATen/native/native_functions.yaml"
    },
    {
      "type": "modify",
      "old_id": "84d62e91e4c976ba52f201bbfa48f44b7d4a49d9",
      "old_mode": 33188,
      "old_path": "aten/src/ATen/native/nested/NestedTensorMath.cpp",
      "new_id": "6b8d711d43519bbd7d5d8c4816ff28353fb3bb44",
      "new_mode": 33188,
      "new_path": "aten/src/ATen/native/nested/NestedTensorMath.cpp"
    },
    {
      "type": "modify",
      "old_id": "3fed648beac62a70990470a2e3ef1f4b45c85015",
      "old_mode": 33188,
      "old_path": "docs/source/nested.rst",
      "new_id": "f4ef4316b306319bbf179f1e9a94f1cc6216fdf7",
      "new_mode": 33188,
      "new_path": "docs/source/nested.rst"
    },
    {
      "type": "modify",
      "old_id": "938e05e4d44c343d143cf6ed67cbd738bc94b685",
      "old_mode": 33188,
      "old_path": "test/cpp/api/nested.cpp",
      "new_id": "3900fad5bce9c97e28e9223d8e0ba7c3901ae21f",
      "new_mode": 33188,
      "new_path": "test/cpp/api/nested.cpp"
    },
    {
      "type": "modify",
      "old_id": "1978aee14ca105ea93fcd154ec5616645cea8bda",
      "old_mode": 33188,
      "old_path": "test/forward_backward_compatibility/check_forward_backward_compatibility.py",
      "new_id": "0698ea784f958b9783c7e1d25b2407e89846406b",
      "new_mode": 33188,
      "new_path": "test/forward_backward_compatibility/check_forward_backward_compatibility.py"
    },
    {
      "type": "modify",
      "old_id": "e3070b6a249e8b991828ff5c53be39d14b876ce4",
      "old_mode": 33188,
      "old_path": "test/profiler/test_profiler.py",
      "new_id": "6ce156fe2c0a93a2edcb820468e3d42c782bcd50",
      "new_mode": 33188,
      "new_path": "test/profiler/test_profiler.py"
    },
    {
      "type": "modify",
      "old_id": "058f9e3538bbcc738eaa7d7c458d3db88290a4b8",
      "old_mode": 33188,
      "old_path": "test/test_autograd.py",
      "new_id": "bc575c6b6308305b79c0d5160ac99f0cac2485d9",
      "new_mode": 33188,
      "new_path": "test/test_autograd.py"
    },
    {
      "type": "modify",
      "old_id": "2d0843b5a4d34bfe773703b7815763955cb829d2",
      "old_mode": 33188,
      "old_path": "test/test_native_mha.py",
      "new_id": "41f56e8b89296a13dea54f9406de21e9909ac85f",
      "new_mode": 33188,
      "new_path": "test/test_native_mha.py"
    },
    {
      "type": "modify",
      "old_id": "9de07c9b30e6694de62800abf2780072989d03d7",
      "old_mode": 33188,
      "old_path": "test/test_nestedtensor.py",
      "new_id": "24671ca090d703d92411ce13d33f7af61f810f09",
      "new_mode": 33188,
      "new_path": "test/test_nestedtensor.py"
    },
    {
      "type": "modify",
      "old_id": "43f96d27558bebe3f055c0f98e6bbfaa6a80bcfb",
      "old_mode": 33188,
      "old_path": "test/test_nn.py",
      "new_id": "bfefe4f5a642ec845f3987b17cb50292c18826fa",
      "new_mode": 33188,
      "new_path": "test/test_nn.py"
    },
    {
      "type": "modify",
      "old_id": "ae302c1a20d29e048276549ef8cc1c538a84c45d",
      "old_mode": 33188,
      "old_path": "test/test_torch.py",
      "new_id": "8de5b822d00aee8a80538624e6498050a11daead",
      "new_mode": 33188,
      "new_path": "test/test_torch.py"
    },
    {
      "type": "modify",
      "old_id": "16724df423b483c97502cd6207add636d49b1281",
      "old_mode": 33188,
      "old_path": "test/test_transformers.py",
      "new_id": "b3a166bf6bc44c2b5ed4d424ca82db5757c9bb5f",
      "new_mode": 33188,
      "new_path": "test/test_transformers.py"
    },
    {
      "type": "modify",
      "old_id": "4b70209ce5ee871d0a35b26f4901bb095cf52799",
      "old_mode": 33188,
      "old_path": "tools/autograd/derivatives.yaml",
      "new_id": "749f1c42a95d2d3e806f6f186ae82b9d45e5c6d3",
      "new_mode": 33188,
      "new_path": "tools/autograd/derivatives.yaml"
    },
    {
      "type": "modify",
      "old_id": "00793aaf4947c9b4e3ef3a432c053898922d4d39",
      "old_mode": 33188,
      "old_path": "torch/_subclasses/fake_tensor.py",
      "new_id": "2264ae275c051c4c872c8f6cdfb580f35192c163",
      "new_mode": 33188,
      "new_path": "torch/_subclasses/fake_tensor.py"
    },
    {
      "type": "modify",
      "old_id": "9ea4989a0742bcfebe0fd9860690e61b37233385",
      "old_mode": 33188,
      "old_path": "torch/csrc/api/include/torch/nested.h",
      "new_id": "1730583d5e149448e24607686765bf5300c24565",
      "new_mode": 33188,
      "new_path": "torch/csrc/api/include/torch/nested.h"
    },
    {
      "type": "modify",
      "old_id": "3c888e0a837f7c553d0f418ad183d36c46fd3d14",
      "old_mode": 33188,
      "old_path": "torch/nested/__init__.py",
      "new_id": "34db2d49c37aae1b7d48135349e5e94107bdb28a",
      "new_mode": 33188,
      "new_path": "torch/nested/__init__.py"
    },
    {
      "type": "modify",
      "old_id": "11e5c3a7ffdf73f8542bafd1496983d33a65da9a",
      "old_mode": 33188,
      "old_path": "torch/overrides.py",
      "new_id": "33f339c60012f6b64bb8e397529c3b08fb22e818",
      "new_mode": 33188,
      "new_path": "torch/overrides.py"
    }
  ]
}
