This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |