"...git@developer.sourcefind.cn:tianlh/lightgbm-dcu.git" did not exist on "272fedb95a81ea8ee13681d0feef75016aef626b"
Commit ae2f2f64 authored by Lisa Roach's avatar Lisa Roach Committed by Facebook GitHub Bot
Browse files

apply import merging for fbcode/mobile-vision/d2go (3 of 4)

Summary:
Pull Request resolved: https://github.com/facebookresearch/d2go/pull/212

Applies new import merging and sorting from µsort v1.0.

When merging imports, µsort will make a best-effort to move associated
comments to match merged elements, but there are known limitations due to
the diynamic nature of Python and developer tooling. These changes should
not produce any dangerous runtime changes, but may require touch-ups to
satisfy linters and other tooling.

Note that µsort uses case-insensitive, lexicographical sorting, which
results in a different ordering compared to isort. This provides a more
consistent sorting order, matching the case-insensitive order used when
sorting import statements by module name, and ensures that "frog", "FROG",
and "Frog" always sort next to each other.

For details on µsort's sorting and merging semantics, see the user guide:
https://usort.readthedocs.io/en/stable/guide.html#sorting

Reviewed By: jreese, wat3rBro

Differential Revision: D35559673

fbshipit-source-id: feeae2465ac2b62c44a0e92dc566e9a386567c9d
parent d4c58688
......@@ -10,8 +10,8 @@ import torch
import torch.nn as nn
from d2go.export.api import (
convert_and_export_predictor,
PredictorExportConfig,
FuncInfo,
PredictorExportConfig,
)
from d2go.export.fb.caffe2 import DefaultCaffe2Export
from d2go.export.torchscript import (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment