Skip to content

Import forward_halo_exchange to __init__.py#19

Merged
fiedorowicz1 merged 1 commit into
LBANN:mainfrom
jvwilliams23:import_halo
May 26, 2026
Merged

Import forward_halo_exchange to __init__.py#19
fiedorowicz1 merged 1 commit into
LBANN:mainfrom
jvwilliams23:import_halo

Conversation

@jvwilliams23

Copy link
Copy Markdown
Contributor

Currently forward_halo_exchange is automatically triggered when we apply a convolution to a DCTensor. In our case, we are then computing gradients of the output layer with finite differences, which we would like to do without redistributing the tensor. We therefore manually call forward_halo_exchange before this like so:

y = F.conv2d(x)
y = forward_halo_exchange(y, ...)
y = compute_spatial_derivatives(y, deltax, deltay)

so we need this function to be importable.

@fiedorowicz1 fiedorowicz1 merged commit 55ac373 into LBANN:main May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants