cleanup: Some basic cleanup

This commit is contained in:
blessedcoolant
2023-09-05 11:54:28 +12:00
parent 07381e5a26
commit 65a76a086b
4 changed files with 10 additions and 12 deletions

View File

@ -1,6 +1,7 @@
# copied from https://github.com/tencent-ailab/IP-Adapter (Apache License 2.0)
# tencent ailab comment: modified from https://github.com/mlfoundations/open_flamingo/blob/main/open_flamingo/src/helpers.py
# tencent ailab comment: modified from
# https://github.com/mlfoundations/open_flamingo/blob/main/open_flamingo/src/helpers.py
import math
import torch