We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
repeat
expand
1 parent 33158ce commit 176c3e6Copy full SHA for 176c3e6
src/ptychi/utils.py
@@ -412,7 +412,7 @@ def chunked_processing(
412
current_chunk_size = kwargs_chunk[list(kwargs_chunk.keys())[0]].shape[0]
413
if replicated_kwargs is not None:
414
replicated_kwargs_chunk = {
415
- key: torch.repeat_interleave(value, current_chunk_size, dim=0)
+ key: value.expand(current_chunk_size, *value.shape[1:])
416
for key, value in replicated_kwargs.items()
417
}
418
kwargs_chunk.update(replicated_kwargs_chunk)
0 commit comments