Feature #24083

LibTorch v1.4 for DUNE reconstruction

Added by Andrew Chappell 3 months ago. Updated 3 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


I'd like to request that a build of LibTorch v1.4.0 be made available within LArSoft (this use case is for larpandoracontent in particular).

The Pandora team have developed a couple of algorithms that use PyTorch-based neural networks that we'll be looking to make available in the near future. One of these algorithms makes use of torch.optim.lr_scheduler modules that are not available in early versions of LibTorch, and pending developments using sparse convolutional networks also require v1.3+.

It's my understanding that there is a longer-term program relating to the provision of PyTorch and Tensorflow interfaces to support machine learning solutions being developed for DUNE sim/reco, but in the interim is it possible to provide a v1.4.0 build of LibTorch to link against? Thanks very much.


#1 Updated by Lynn Garren 3 months ago

  • Assignee set to Lynn Garren

Note that we have concerns about which platforms and compilers can be supported. I see that we only built libtorch 1.0.1 for e17 on SLF7.

We strongly suggest that any interface using libtorch be modular and optional, since it may not be available for all compilers and platforms. We are currently sorting out how best to remove tensorflow from larreco. There will be a new github repository, name as yet unclear.

#2 Updated by Andrew Chappell 3 months ago

From the Pandora side, we will look to make the use of LibTorch optional, with default values assigned to the properties populated by the neural network to ensure that downstream algorithms that can make use of this information will continue to operate correctly if the network is unavailable.

Thanks very much for taking the time to look into this, it is greatly appreciated, as this will be very useful to us for both current and future development.

#3 Updated by Kyle Knoepfel 3 months ago

  • Status changed from New to Assigned

Also available in: Atom PDF