[tensorboard] Remove dependence on torch.onnx#82628
[tensorboard] Remove dependence on torch.onnx#82628justinchuby wants to merge 1 commit intopytorch:masterfrom
Conversation
🔗 Helpful links
❌ 1 New FailuresAs of commit a39934d (more details on the Dr. CI page): Expand to see more
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages
|
|
@pytorchbot merge -g |
|
thanks for the review! |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Merge failed due to Refusing to merge as mandatory check(s) pull failed for rule superuser |
|
@pytorchbot merge -f "This PR is unrelated to the cpp doc failures" |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @justinchuby. |
Summary: ### Description <!-- What did you change and why was it needed? --> The `graph` function takes a dependency on `torch.onnx.select_model_mode_for_export`, which was used because it implicitly patches `torch._C.Node` to allow for key access. This change removed the need for the patch and decoupled the tensorboard util from `torch.onnx`. This is needed to unblock #82511 because we are removing the monkey patch ### Issue <!-- Link to Issue ticket or RFP --> ### Testing <!-- How did you test your change? --> cc ezyang orionr BowenBao Pull Request resolved: #82628 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/c7dde7da6d27d81555e44d9f9e416b81697b02d5 Reviewed By: kit1980 Differential Revision: D38359651 fbshipit-source-id: d2c3e4f0db75b54d224e11c76830ca642edaa2e9
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
As seen in pytorch/pytorch#82628. This should remove the `TypeError: 'torch._C.Node' object is not subscriptable` error.
As seen in pytorch/pytorch#82628. This should remove the `TypeError: 'torch._C.Node' object is not subscriptable` error.
As seen in pytorch/pytorch#82628. This removes the `TypeError: 'torch._C.Node' object is not subscriptable` error.
As seen in pytorch/pytorch#82628. This removes the `TypeError: 'torch._C.Node' object is not subscriptable` error.
As seen in pytorch/pytorch#82628. This removes the `TypeError: 'torch._C.Node' object is not subscriptable` error.
As seen in pytorch/pytorch#82628. This removes the `TypeError: 'torch._C.Node' object is not subscriptable` error.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
As seen in pytorch/pytorch#82628. This removes the `TypeError: 'torch._C.Node' object is not subscriptable` error.
Attribute access with subscripting would previously work due to patching in pytorch/pytorch#82511 but this has been removed. This commit uses the fix proposed in pytorch/pytorch#82628 to define a helper method to call the appropriate access method.
Description
The
graphfunction takes a dependency ontorch.onnx.select_model_mode_for_export, which was used because it implicitly patchestorch._C.Nodeto allow for key access. This change removed the need for the patch and decoupled the tensorboard util fromtorch.onnx.This is needed to unblock #82511 because we are removing the monkey patch
Issue
Testing
cc @ezyang @orionr @BowenBao