Skip to content

Instantly share code, notes, and snippets.

@dhruvbird
Created November 16, 2021 22:28
Show Gist options
  • Save dhruvbird/cb2b88e7adc02427cec139cd56449b6b to your computer and use it in GitHub Desktop.
Save dhruvbird/cb2b88e7adc02427cec139cd56449b6b to your computer and use it in GitHub Desktop.
Get the top level folder name of the PyTorch Lite Model
elem = zf.infolist()[0]
archive_name = elem.filename.split("/")[0]
print(archive_name)
AddTensorsModel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment