Package 

Object Module.Companion

    • Method Detail

      • load

        @JvmOverloads() final Module load(String modelPath, Integer loadMode, Integer numThreads)

        Loads a serialized ExecuTorch module from the specified path on the disk.

        Parameters:
        modelPath - path to file that contains the serialized ExecuTorch module.
        loadMode - load mode for the module.
        numThreads - the number of threads to use for inference.
      • load

        @JvmOverloads() final Module load(String modelPath, Integer loadMode)

        Loads a serialized ExecuTorch module from the specified path on the disk.

        Parameters:
        modelPath - path to file that contains the serialized ExecuTorch module.
        loadMode - load mode for the module.
      • load

        @JvmOverloads() final Module load(String modelPath)

        Loads a serialized ExecuTorch module from the specified path on the disk.

        Parameters:
        modelPath - path to file that contains the serialized ExecuTorch module.
      • load

        @JvmOverloads() final Module load(String modelPath, BackendOptionsMap options, Integer loadMode, Integer numThreads)

        Loads a serialized ExecuTorch module and applies per-backend options at delegate-init (load) time. Prefer this over a process-global setter: the options travel with the load, so there is no ordering or thread-safety hazard to manage.

        Parameters:
        modelPath - path to file that contains the serialized ExecuTorch module.
        options - backend options to apply at load, e.g.
        loadMode - load mode for the module.
        numThreads - the number of threads to use for inference.
      • load

        @JvmOverloads() final Module load(String modelPath, BackendOptionsMap options, Integer loadMode)

        Loads a serialized ExecuTorch module and applies per-backend options at delegate-init (load) time. Prefer this over a process-global setter: the options travel with the load, so there is no ordering or thread-safety hazard to manage.

        Parameters:
        modelPath - path to file that contains the serialized ExecuTorch module.
        options - backend options to apply at load, e.g.
        loadMode - load mode for the module.
      • load

        @JvmOverloads() final Module load(String modelPath, BackendOptionsMap options)

        Loads a serialized ExecuTorch module and applies per-backend options at delegate-init (load) time. Prefer this over a process-global setter: the options travel with the load, so there is no ordering or thread-safety hazard to manage.

        Parameters:
        modelPath - path to file that contains the serialized ExecuTorch module.
        options - backend options to apply at load, e.g.