Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Maruseac <mihaimaruseac@google.com>
  • Loading branch information
mihaimaruseac committed Jan 11, 2024
1 parent 504d340 commit 41d12c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model_signing/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def _ordered_files(path: Path, ignorepaths: [Path]) -> []:
@staticmethod
# TODO: type of returned value.
def _create_tasks(children: [], shard_size: int) -> [[]]:
print(f'{len(children)=}, {children=}')
tasks = [[]] * 0
curr_file = 0
curr_pos = 0
Expand All @@ -185,7 +186,7 @@ def _create_tasks(children: [], shard_size: int) -> [[]]:
name, typ, size = children[curr_file]

# It's a directory.
# NOTE: It is fast to commupte the hash because there's no data
# NOTE: It is fast to compute the hash because there's no data
# besides the name and the type.
# TODO(#12): do we need this at all? This only matters
# if we care about empty directories, since non-empty ones have
Expand Down

0 comments on commit 41d12c7

Please sign in to comment.