Class ConvertTorchToBoofForward

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

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

    • ConvertTorchToBoofForward

      public ConvertTorchToBoofForward()
  • 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.