Skip to content

Commit

Permalink
remove redundant return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Jan 21, 2021
1 parent 6d3f5a7 commit f2df3a4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions faiss/python/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,10 @@ def instruction_set():
if platform.system() == "Darwin":
if subprocess.check_output(["/usr/sbin/sysctl", "hw.optional.avx2_0"])[-1] == '1':
return {"AVX2": True}
else:
return {"AVX2": False}
elif platform.system() == "Linux":
import numpy.distutils.cpuinfo
if "avx2" in numpy.distutils.cpuinfo.cpu.info[0].get('flags', ""):
return {"AVX2": True}
else:
return {"AVX2": False}
return {"AVX2": False}


Expand Down

0 comments on commit f2df3a4

Please sign in to comment.