mirror of
https://github.com/samsonjs/immich.git
synced 2026-03-26 09:25:51 +00:00
5 lines
195 B
Python
5 lines
195 B
Python
from app.schemas import ModelSession
|
|
|
|
|
|
def has_batch_axis(session: ModelSession) -> bool:
|
|
return not isinstance(session.get_inputs()[0].shape[0], int) or session.get_inputs()[0].shape[0] < 0
|