Skip to content

Import forward_halo_exchange to __init__.py#19

Open
jvwilliams23 wants to merge 1 commit intoLBANN:mainfrom
jvwilliams23:import_halo
Open

Import forward_halo_exchange to __init__.py#19
jvwilliams23 wants to merge 1 commit intoLBANN: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.

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.

1 participant