Skip to content

Commit 56da38a

Browse files
committed
fix lscpu issue
1 parent af740e9 commit 56da38a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

_doc/examples/plot_benchmark_rf.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ def skl2onnx_convert_lightgbm(scope, operator, container):
7272
# But this information is not usually enough.
7373
# Let's extract the cache information.
7474

75-
out, err = run_cmd("lscpu")
76-
print(out)
75+
try:
76+
out, err = run_cmd("lscpu")
77+
print(out)
78+
except Exception as e:
79+
print("lscpu not available: {e}")
7780

7881
###############################################
7982
# Or with the following command.

0 commit comments

Comments
 (0)