Closed jacobdurrant closed 6 months ago
The batch version of the function just does a for loop anyway, so this won't be any less efficient.
Hi David. Much thanks for the quick reply to this issue. If the batch version of the function uses a for loop anyway, I'll just go ahead and use this version. Thanks again.
I'm using molgrid to load data from a types file. It centers the grid on the last coordinate set loaded (the ligand in my case). However, I would like to explicitly set the center point for each example. As best I can tell, none of the
gmaker.forward
functions can accept amolgrid.molgrid.ExampleVec
and also acenter
parameter. Here's the custom solution I'm using:But I worry that my
forward_batch_with_explicit_centers
function will run slowly because it loops over the examples in each batch, rather than processing them all at once on the GPU.Is there a different way you would go about addressing this problem?
Thanks.