Skip to content

Instantly share code, notes, and snippets.

@sh1ng
Created June 7, 2019 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sh1ng/c41d384be9a29ceba27dc13b295cf993 to your computer and use it in GitHub Desktop.
Save sh1ng/c41d384be9a29ceba27dc13b295cf993 to your computer and use it in GitHub Desktop.
Verify xgboost
import xgboost
import os
import binascii
def CRC32(filename):
buf = open(filename,'rb').read()
buf = (binascii.crc32(buf) & 0xFFFFFFFF)
return "%08X" % buf
for file in xgboost.libpath.find_lib_path():
print(file, os.path.getsize(file), CRC32(file))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment