Skip to content

Commit

Permalink
remove pkg_resource in python
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingl committed Jul 31, 2024
1 parent 4190408 commit 32ff055
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions test/test_cliptok.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import unittest
import numpy as np
import onnxruntime as _ort
import pkg_resources

from pathlib import Path
from onnx import helper, onnx_pb as onnx_proto
Expand Down Expand Up @@ -150,8 +149,4 @@ def test_optional_outputs(self):


if __name__ == "__main__":
try:
dist = pkg_resources.get_distribution('ftfy')
except pkg_resources.DistributionNotFound:
raise Exception("WARNING: ftfy is not installed - it is required for parity between CLIPTokenizer and CLIPTokenizerFast.")
unittest.main()

0 comments on commit 32ff055

Please sign in to comment.