public class InferenceException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. InferenceException
Reports model validation, delegate selection, allocation, or invocation failures from the portable inference API.

Constructors

public InferenceException(String message)Creates an inference failure with a user-readable explanation.
public InferenceException(String message, Throwable cause)Creates an inference failure that preserves the native/port cause.

Inherited methods

Constructor details

InferenceException

public InferenceException(String message)
Creates an inference failure with a user-readable explanation.

Parameters

message String
failure explanation

InferenceException

public InferenceException(String message, Throwable cause)
Creates an inference failure that preserves the native/port cause.

Parameters

message String
failure explanation
cause Throwable
originating error