)]}'
{
  "commit": "bbc6fcd7306373f992b11169ebab50d4ae13e14b",
  "tree": "5c2084921c569d4612d49e1dc44f3fef1c22aac1",
  "parents": [
    "a9deda5469a6ef73692a9dd796cc4eeba4436d6c"
  ],
  "author": {
    "name": "Tristan Rice",
    "email": "rice@fn.lc",
    "time": "Mon Apr 25 17:55:22 2022 -0700"
  },
  "committer": {
    "name": "PyTorch MergeBot",
    "email": "pytorchmergebot@users.noreply.github.com",
    "time": "Tue Apr 26 01:00:02 2022 +0000"
  },
  "message": "deploy: add dummy metadata for builtin packages (#76211)\n\nSummary:\nThis adds dummy metadata for frozen builtin packages when using `torch::deploy`. This is a bit hacky but unblocks allows Huggingface transformers library to be used within `torch::deploy` which depends on `importlib.metadata.version` to detect whether torch is installed or not.\n\nhttps://github.com/huggingface/transformers/blob/main/src/transformers/utils/import_utils.py#L49\n\nPull Request resolved: https://github.com/pytorch/pytorch/pull/76211\n\nTest Plan: Added `importlib.metadata.version(\"torch\")` unit test\n\nReviewed By: kiukchung, PaliC\n\nDifferential Revision: D35834831\n\nPulled By: d4l3k\n\nfbshipit-source-id: e58365e1ada69299adea96f0ca1fe211e092dd97\n(cherry picked from commit c4b4152a24dcdf359503db2112a10a88633e67b6)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6bcabd969ec5211db2e77e35e14bec8823b86e5d",
      "old_mode": 33188,
      "old_path": "torch/csrc/deploy/interpreter/builtin_registry.cpp",
      "new_id": "611def2e7490cf34fd0f53c0b2ee1292fe97d3dd",
      "new_mode": 33188,
      "new_path": "torch/csrc/deploy/interpreter/builtin_registry.cpp"
    },
    {
      "type": "modify",
      "old_id": "533adc2100b3d12952f6d46b8ce57bb52121741e",
      "old_mode": 33188,
      "old_path": "torch/csrc/deploy/interpreter/builtin_registry.h",
      "new_id": "5f2726db67b6ea5d95a825531babf8d107482e17",
      "new_mode": 33188,
      "new_path": "torch/csrc/deploy/interpreter/builtin_registry.h"
    },
    {
      "type": "modify",
      "old_id": "973fbff0fa4f266a31e1dc9693e25d95853db212",
      "old_mode": 33188,
      "old_path": "torch/csrc/deploy/test_deploy.cpp",
      "new_id": "780937a51e7cf29340b04e8791b1f917dcd895a1",
      "new_mode": 33188,
      "new_path": "torch/csrc/deploy/test_deploy.cpp"
    }
  ]
}
