Skip to content

Commit 39f1ca5

Browse files
[MLGO] Remove absl dep from libraries
The library files in the new mlgo-utils utilities folder only depend on absl.logging. The builtin Python logging library is a direct drop-in replacement here, so we can just change the include and drop the test dependency.
1 parent bb6564a commit 39f1ca5

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

llvm/utils/mlgo-utils/mlgo/corpus/combine_training_corpus_lib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import os
77
import json
88
import glob
9-
10-
from absl import logging
9+
import logging
1110

1211
_FILE_NAME = "corpus_description.json"
1312

llvm/utils/mlgo-utils/mlgo/corpus/extract_ir_lib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@
1111
import multiprocessing
1212
import functools
1313
import json
14+
import logging
1415

1516
from typing import Dict, List, Optional
1617

17-
from absl import logging
18-
1918
_UNSPECIFIED_OVERRIDE = ["<UNSPECIFIED>"]
2019

2120

llvm/utils/mlgo-utils/tests/corpus/combine_training_corpus_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: python-38, absl
1+
# REQUIRES: python-38
22

33
## Test the functionality of combine_training_corpus_lib
44

llvm/utils/mlgo-utils/tests/corpus/extract_ir_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: python-38, absl
1+
# REQUIRES: python-38
22

33
## Test the functionality of extract_ir_lib
44

llvm/utils/mlgo-utils/tests/corpus/make_corpus_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# REQUIRES: python-38, absl
1+
# REQUIRES: python-38
22

33
## Test the functionality of make_corpus_lib
44

0 commit comments

Comments
 (0)