Skip to content

Commit d26b1c4

Browse files
aporialiaofacebook-github-bot
authored andcommitted
Resolve Linux Wheels and Pyre
Summary: ``` ƛ Found 1 type error! torchrec/distributed/planner/stats.py:1111:64 Incompatible parameter type [6]: In call `pd.core.frame.DataFrame.from_dict`, for argument `columns`, expected `Union[None, ndarray[typing.Any, typing.Any], SequenceNotStr[typing.Any], ExtensionArray, Index, Series, range]` but got `List[str]`. ``` Resolving this error from D72410003 for Github pyre ci Differential Revision: D72871677
1 parent 2dc7dc4 commit d26b1c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/scripts/install_libs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ fi
2929

3030

3131
${CONDA_RUN} pip install importlib-metadata
32+
${CONDA_RUN} pip install pandas

torchrec/distributed/planner/stats.py

+1
Original file line numberDiff line numberDiff line change
@@ -1108,6 +1108,7 @@ def _calculate_critical_path(best_plan: List[ShardingOption]) -> CriticalPathEst
11081108
perf_type.split("_")[1], # compute or comms
11091109
)
11101110
] += perf_breakdown[perf_type]
1111+
# pyre-ignore[6]
11111112
perf_df = pd.DataFrame.from_dict(perf_data, orient="index", columns=["perf"])
11121113
perf_df.index = pd.MultiIndex.from_tuples(
11131114
perf_df.index,

0 commit comments

Comments
 (0)