This file contains 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
def read_binary_blob(filename): | |
# | |
# Read binary blob file from C3D | |
# INPUT | |
# filename : input filename. | |
# | |
# OUTPUT | |
# s : a 1x5 matrix indicates the size of the blob | |
# which is [num channel length height width]. | |
# blob : a 5-D tensor size num x channel x length x height x width |