Class ConvertTorchToBoofForward

java.lang.Object
deepboof.io.torch7.ConvertTorchToBoofForward

public class ConvertTorchToBoofForward
extends java.lang.Object
Converts a Torch network into the equivalent DeepBoof network.
  • Constructor Summary

    Constructors 
    Constructor Description
    ConvertTorchToBoofForward()  
  • Method Summary

    Modifier and Type Method Description
    static <T> T convert​(TorchObject input)
    Converts a torch object into a DeepBoof object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • convert

      public static <T> T convert​(TorchObject input)
      Converts a torch object into a DeepBoof object. Use instanceof to determine which type of object it is.
      Parameters:
      input - The TorchObject
      Returns:
      Objects of type FunctionAndParameters, SequenceAndParameters, or different tensor data types.