Snapdragon Neural Processing Engine SDK
Reference Guide
SnpeError.Error Enum Reference

Public Attributes

 NETWORK_BUNDLE_ACCESS_ERROR =(10, "Unable to access network initialization bundle!")
 
 NETWORK_OBJECT_ACCESS_ERROR =(11, "Unable to access network object!")
 
 NETWORK_RELEASE_ERROR =(12, "Unable to release managed network!")
 
 MODEL_READ_ERROR =(13, "Unable to read model file path!")
 
 BUFFER_STREAM_ACCESS_ERROR =(14, "Unable to access model NativeBufferOutputStream!")
 
 RUNTIME_ORDINAL_ERROR =(15, "Runtime ordinal error")
 
 BUFFER_ENCODING_ERROR =(16, "Failed to cast UserBuffer Encoding to TF8.")
 
 NETWORK_TENSOR_ACCESS_ERROR =(17, "Unable to access network tensor.")
 
 INPUT_TENSOR_ACCESS_ERROR =(18, "Unable to access input tensor ByteBuffer!")
 
 INVALID_INPUT_TENSOR_NULL_EMPTY =(19, "Input tensor map can not be null or empty!")
 
 INVALID_OUTPUT_TENSOR_NULL_EMPTY =(20, "Output tensor map can not be null or empty")
 
 INVALID_TENSOR_NULL =(21, "Tensor can not be null:")
 
 INVALID_TENSOR_INSTANCE =(22, "Input Tensor must be an instance of ")
 
 INVALID_INPUT_NETWORK_TENSORS =(23, "Tensor not amongst network input tensors: ")
 
 INVALID_OUTPUT_INSTANCE =(24, "Output Tensor must be an instance of ")
 
 INVALID_OUTPUT_NETWORK_TENSORS =(25, "Tensor not amongst network output tensors: ")
 
 INVALID_TENSOR_SHAPE =(26, "")
 
 INVALID_TENSOR_DIMENSION =(27, "")
 
 ILLEGAL_TENSOR_SHAPE_NULL_EMPTY =(28, "Tensor shape can not be null or empty!")
 
 ILLEGAL_SHAPE_DIM =(29, "Shape dimension can not be < 1!")
 
 ILLEGAL_BUFFER_SIZE =(30, "Buffer size has to be greater than 0")
 
 ILLEGAL_STRIDE =(31, "Strides can not be less than 1")
 
 ILLEGAL_STEP_ZERO =(32, "Step representing 0.0 has to be a valid 8-bit value")
 
 ILLEGAL_STEP_VALUE =(33, "Step size has to be a positive value")
 
 ILLEGAL_BUFFER_NULL =(34, "Buffer must be allocated, not null")
 
 ILLEGAL_TENSOR_NAME =(35, "Network has no tensor with name ")
 
 ILLEGAL_NETWORK_RELEASE =(36, "Network instance already released!")
 
 ILLEGAL_SELECTED_LAYER =(37, "Selected layer is not amongst network output layers: ")
 
 ILLEGAL_USER_BUFFER_TENSOR =(38, "UserBuffer tensor encodings do not match")
 
 TENSOR_BUNDLE_ACCESS_ERROR =(39, "Unable to access tensor initialization bundle!")
 
 TENSOR_CREATION_ERROR =(40, "Unable to create native tensor!")
 
 TENSOR_MANAGE_ERROR =(41, "Unable to release managed tensor!")
 
 TENSOR_RELEASE_ERROR =(42, "FloatTensor instance already released!")
 
 BUFFER_BUNDLE_ACCESS_ERROR =(43, "Unable to access user buffer tensor initialization bundle!")
 
 BUFFER_TENSOR_ADDRESS_ACCESS_ERROR =(44, "Unable to access user buffer tensor address!")
 
 BYTE_BUFFER_DIRECT_ERROR =(45, "ByteBuffer is not a direct buffer")
 
 BYTE_BUFFER_ORDER_ERROR =(46, "ByteBuffer has a different byte order than that of underlying platform")
 
 USER_BUFFER_RELEASE_ERROR =(47, "TF8UserBufferTensor instance already released!")
 
 BUFFER_OS_RETRIEVE_ERROR_MESSAGE =(48, "Unable to retrieve managed NativeBufferOutputStream")
 
 BUFFER_OS_SOURCE_ACCESS_ERROR_MESSAGE =(49, "Unable to access NativeBufferOutputStream source buffer!")
 
 BUFFER_OS_RELEASE_ERROR =(50, "Unable to release managed NativeBufferOutputStream")
 
 BUFFER_OS_SIZE_ERROR =(51, "Not allowed to write beyond buffer size.")
 
 BUFFER_STREAM_INVALID_ERROR =(52, "Buffer stream size is invalid: ")
 
 BUFFER_SOURCE_NOT_DIRECT_ERROR =(53, "Source buffer must be direct!")
 
 JNI_INITIALIZE_ERROR =(54, "Failed to initialize native JNI caches.")
 
 DSP_INITIALIZE_ERROR =(55, "Failed to initialize DSP LIBRARY PATH.")
 
 RUNTIME_ORDER_NULL_OR_EMPTY_ERROR =(56, "Runtime order can not be null or empty.")
 
 RUNTIME_NULL_ERROR =(57, "Runtime order can not be null.")
 
 INPUT_DIMEN_NULL_OR_EMPTY_ERROR =(58, "Input dimensions can not be null.")
 
 OUTPUT_LAYER_NULL_ERROR =(59, "Output layers can not be null.")
 
 MODEL_FILE_NULL_ERROR =(60, "Model file can not be null.")
 
 FILE_EXISTENCE_ERROR =(61, "File does not exist: ")
 
 FILE_READ_ERROR =(62, "Can not read from file: ")
 
 PERFORMANCE_PROFILE_NULL_ERROR =(63, "Performance profile can not be null.")
 
 EXECUTION_PRIORITY_NULL_ERROR =(64, "Execution priority hint can not be null.")
 
 CACHE_TAG_NULL_ERROR =(65, "cacheTag is null")
 
 CACHE_TAG_EMPTY_ERROR =(66, "cacheTag is empty")
 
 CONTEXT_NULL_ERROR =(67, "context is null")
 
 DIRECTORY_PATH_NULL_ERROR =(68, "Directory path is null")
 
 DIRECTORY_PATH_EMPTY_ERROR =(69, "Directory path is empty")
 
 DIRECTORY_EXISTENCE_ERROR =(70, "Directory does not exist:")
 
 NOT_A_DIRECTORY_ERROR =(71, "Not a directory: ")
 
 FILE_WRITE_ERROR =(72, "Can not write into file: ")
 
 RUNTIME_TARGET_NOT_SUPPORTED_ERROR =(73, "None of the selected runtime targets are supported.")
 
 IO_STREAM_NULL_ERROR =(74, "Stream can not be null.")
 
 IO_MODEL_SIZE_INVALID_ERROR =(75, "Model size can not be <= 0.")
 
 IO_SIZE_MISMATCH_ERROR =(76, "The expected model stream size and actual mismatch.")
 

Detailed Description

Error error messages with their codes

Member Data Documentation

◆ BUFFER_BUNDLE_ACCESS_ERROR

BUFFER_BUNDLE_ACCESS_ERROR =(43, "Unable to access user buffer tensor initialization bundle!")

Exception thrown while accessing buffer tensor initialization bundle.

code = 43

message = Unable to access user buffer tensor initialization bundle!

◆ BUFFER_ENCODING_ERROR

BUFFER_ENCODING_ERROR =(16, "Failed to cast UserBuffer Encoding to TF8.")

Exception thrown while casting user buffer encoding to TF8.

code = 16

message = Failed to cast UserBuffer encoding to TF8.

◆ BUFFER_OS_RELEASE_ERROR

BUFFER_OS_RELEASE_ERROR =(50, "Unable to release managed NativeBufferOutputStream")

Exception thrown while releasing NativeBufferOutputStream.

code = 50

message = Unable to release managed NativeBufferOutputStream

◆ BUFFER_OS_RETRIEVE_ERROR_MESSAGE

BUFFER_OS_RETRIEVE_ERROR_MESSAGE =(48, "Unable to retrieve managed NativeBufferOutputStream")

Exception thrown while retrieving NativeBufferOutputStream.

code = 48

message = Unable to retrieve managed NativeBufferOutputStream

◆ BUFFER_OS_SIZE_ERROR

BUFFER_OS_SIZE_ERROR =(51, "Not allowed to write beyond buffer size.")

Exception thrown while writing into buffer.

code = 51

message = Not allowed to write beyond buffer size.

◆ BUFFER_OS_SOURCE_ACCESS_ERROR_MESSAGE

BUFFER_OS_SOURCE_ACCESS_ERROR_MESSAGE =(49, "Unable to access NativeBufferOutputStream source buffer!")

Error thrown while accessing NativeBufferOutputStream source buffer.

code = 49

message = Unable to access NativeBufferOutputStream source buffer!

◆ BUFFER_SOURCE_NOT_DIRECT_ERROR

BUFFER_SOURCE_NOT_DIRECT_ERROR =(53, "Source buffer must be direct!")

Exception thrown if source buffer is not direct.

code = 53

message = Source buffer must be direct!"

◆ BUFFER_STREAM_ACCESS_ERROR

BUFFER_STREAM_ACCESS_ERROR =(14, "Unable to access model NativeBufferOutputStream!")

Exception thrown while accessing model BufferOutputStream.

code = 14

message = Unable to access model NativeBufferOutputStream!

◆ BUFFER_STREAM_INVALID_ERROR

BUFFER_STREAM_INVALID_ERROR =(52, "Buffer stream size is invalid: ")

Exception thrown if stream size is invalid.

code = 52

message = Buffer stream size is invalid: "invalid_size"

◆ BUFFER_TENSOR_ADDRESS_ACCESS_ERROR

BUFFER_TENSOR_ADDRESS_ACCESS_ERROR =(44, "Unable to access user buffer tensor address!")

Exception thrown while accessing user buffer tensor address!

code = 44

message = Unable to access user buffer tensor address!

◆ BYTE_BUFFER_DIRECT_ERROR

BYTE_BUFFER_DIRECT_ERROR =(45, "ByteBuffer is not a direct buffer")

Exception thrown if byte buffer is not a direct buffer.

code = 45

message = ByteBuffer is not a direct buffer.

◆ BYTE_BUFFER_ORDER_ERROR

BYTE_BUFFER_ORDER_ERROR =(46, "ByteBuffer has a different byte order than that of underlying platform")

Exception thrown if byteBuffer has a different byte order than that of underlying platform.

code = 46

message = ByteBuffer has a different byte order than that of underlying platform.

◆ CACHE_TAG_EMPTY_ERROR

CACHE_TAG_EMPTY_ERROR =(66, "cacheTag is empty")

Exception thrown if cacheTag is empty.

code = 66

message = cacheTag is empty.

◆ CACHE_TAG_NULL_ERROR

CACHE_TAG_NULL_ERROR =(65, "cacheTag is null")

Exception thrown if cacheTag is null.

code = 65

message = cacheTag is null.

◆ CONTEXT_NULL_ERROR

CONTEXT_NULL_ERROR =(67, "context is null")

Exception thrown if context is null.

code = 67

message = context is null.

◆ DIRECTORY_EXISTENCE_ERROR

DIRECTORY_EXISTENCE_ERROR =(70, "Directory does not exist:")

Exception thrown if directory path is empty.

code = 70

message = Directory does not exist:"directory_name".

◆ DIRECTORY_PATH_EMPTY_ERROR

DIRECTORY_PATH_EMPTY_ERROR =(69, "Directory path is empty")

Exception thrown if directory path is empty.

code = 69

message = Directory path is empty.

◆ DIRECTORY_PATH_NULL_ERROR

DIRECTORY_PATH_NULL_ERROR =(68, "Directory path is null")

Exception thrown if directory path is null.

code = 68

message = Directory path is null.

◆ DSP_INITIALIZE_ERROR

DSP_INITIALIZE_ERROR =(55, "Failed to initialize DSP LIBRARY PATH.")

Exception thrown for DSP LIBRARY PATH cache initialization failure.

code = 55

message = Failed to initialize DSP LIBRARY PATH.

◆ EXECUTION_PRIORITY_NULL_ERROR

EXECUTION_PRIORITY_NULL_ERROR =(64, "Execution priority hint can not be null.")

Exception thrown if execution priority hint is null.

code = 64

message = Execution priority hint can not be null.

◆ FILE_EXISTENCE_ERROR

FILE_EXISTENCE_ERROR =(61, "File does not exist: ")

Exception thrown if file does not exist.

code = 60

message = File does not exist: "filename"

◆ FILE_READ_ERROR

FILE_READ_ERROR =(62, "Can not read from file: ")

Exception thrown if file is not readable.

code = 60

message = Can not read from file: "filename"

◆ FILE_WRITE_ERROR

FILE_WRITE_ERROR =(72, "Can not write into file: ")

Exception thrown if the file is not writable.

code = 72

message = Can not write into file: "file_name".

◆ ILLEGAL_BUFFER_NULL

ILLEGAL_BUFFER_NULL =(34, "Buffer must be allocated, not null")

Exception thrown if buffer is null.

code = 34

message = Buffer must be allocated, not null

◆ ILLEGAL_BUFFER_SIZE

ILLEGAL_BUFFER_SIZE =(30, "Buffer size has to be greater than 0")

Exception thrown if buffer size is less than or equal to zero.

code = 30

message = Buffer size has to be greater than 0.

◆ ILLEGAL_NETWORK_RELEASE

ILLEGAL_NETWORK_RELEASE =(36, "Network instance already released!")

Exception thrown if trying to release an already released network instance.

code = 36

message = Network instance already released!

◆ ILLEGAL_SELECTED_LAYER

ILLEGAL_SELECTED_LAYER =(37, "Selected layer is not amongst network output layers: ")

Exception thrown if selected layer is not present in output layers.

code = 37

message = Selected layer is not amongst network output layers: "incorrect_layer_name"

◆ ILLEGAL_SHAPE_DIM

ILLEGAL_SHAPE_DIM =(29, "Shape dimension can not be < 1!")

Exception thrown if shape dimension is less than 1.

code = 29

message = Shape dimension can not be < 1!

◆ ILLEGAL_STEP_VALUE

ILLEGAL_STEP_VALUE =(33, "Step size has to be a positive value")

Exception thrown if step size is a negative value.

code = 33

message = Step size has to be a positive value.

◆ ILLEGAL_STEP_ZERO

ILLEGAL_STEP_ZERO =(32, "Step representing 0.0 has to be a valid 8-bit value")

Exception thrown if step representing 0.0 is not a valid 8-bit value.

code = 32

message = Step representing 0.0 has to be a valid 8-bit value

◆ ILLEGAL_STRIDE

ILLEGAL_STRIDE =(31, "Strides can not be less than 1")

Exception thrown if stride is less than 1.

code = 31

message = Strides can not be less than 1

◆ ILLEGAL_TENSOR_NAME

ILLEGAL_TENSOR_NAME =(35, "Network has no tensor with name ")

Exception thrown if network has unknown tensor.

code = 35

message = Network has no tensor with name "unknown_tensor_name"

◆ ILLEGAL_TENSOR_SHAPE_NULL_EMPTY

ILLEGAL_TENSOR_SHAPE_NULL_EMPTY =(28, "Tensor shape can not be null or empty!")

Exception thrown if tensor shape is null or empty.

code = 28

message = Tensor shape can not be null or empty!.

◆ ILLEGAL_USER_BUFFER_TENSOR

ILLEGAL_USER_BUFFER_TENSOR =(38, "UserBuffer tensor encodings do not match")

Exception thrown if user buffer tensor enscodings don't match.

code = 38

message = UserBuffer tensor encodings do not match.

◆ INPUT_DIMEN_NULL_OR_EMPTY_ERROR

INPUT_DIMEN_NULL_OR_EMPTY_ERROR =(58, "Input dimensions can not be null.")

Exception thrown if input dimensions are null.

code = 58

message = Input dimensions can not be null.

◆ INPUT_TENSOR_ACCESS_ERROR

INPUT_TENSOR_ACCESS_ERROR =(18, "Unable to access input tensor ByteBuffer!")

Exception thrown while accessing input tensor byte buffer.

code = 18

message = Unable to access input tensor ByteBuffer!

◆ INVALID_INPUT_NETWORK_TENSORS

INVALID_INPUT_NETWORK_TENSORS =(23, "Tensor not amongst network input tensors: ")

Exception thrown if tensor is not present in input tensors.

code = 23

message = Tensor not amongst network input tensors: "incorrect_tensor_name"

◆ INVALID_INPUT_TENSOR_NULL_EMPTY

INVALID_INPUT_TENSOR_NULL_EMPTY =(19, "Input tensor map can not be null or empty!")

Exception thrown if input tensor map is null or empty.

code = 19

message = Input tensor map can not be null or empty!

◆ INVALID_OUTPUT_INSTANCE

INVALID_OUTPUT_INSTANCE =(24, "Output Tensor must be an instance of ")

Exception thrown if output tensor instance is not of the expected type.

code = 24

message = Output Tensor must be an instance of "correct_instance_type"

◆ INVALID_OUTPUT_NETWORK_TENSORS

INVALID_OUTPUT_NETWORK_TENSORS =(25, "Tensor not amongst network output tensors: ")

Exception thrown if tensor is not present in output tensors.

code = 25

message = Tensor not amongst network output tensors: "incorrect_tensor_name"

◆ INVALID_OUTPUT_TENSOR_NULL_EMPTY

INVALID_OUTPUT_TENSOR_NULL_EMPTY =(20, "Output tensor map can not be null or empty")

Exception thrown if output tensor map is null or empty.

code = 20

message = Output tensor map can not be null or empty

◆ INVALID_TENSOR_DIMENSION

INVALID_TENSOR_DIMENSION =(27, "")

Exception thrown if tensor dimension is invalid

code = 27

message = Tensor "tensor_name" has unexpected dimension : "dimension_value" Expected : "expected_dimension", Actual: "actual_dimension"

◆ INVALID_TENSOR_INSTANCE

INVALID_TENSOR_INSTANCE =(22, "Input Tensor must be an instance of ")

Exception thrown if input tensor instance is not of the expected type.

code = 22

message = Input Tensor must be an instance of "correct_instance_type"

◆ INVALID_TENSOR_NULL

INVALID_TENSOR_NULL =(21, "Tensor can not be null:")

Exception thrown if tensor is null.

code = 21

message = Tensor can not be null : "name"

◆ INVALID_TENSOR_SHAPE

INVALID_TENSOR_SHAPE =(26, "")

Exception thrown if tensor shape is invalid

code = 26

message = Tensor "tensor_name" has unexpected shape Expected: "expected_length", Actual: "actual_length"

◆ IO_MODEL_SIZE_INVALID_ERROR

IO_MODEL_SIZE_INVALID_ERROR =(75, "Model size can not be <= 0.")

Exception thrown if model size is less than or equal to 0.

code = 75

message = Model size can not be <= 0.

◆ IO_SIZE_MISMATCH_ERROR

IO_SIZE_MISMATCH_ERROR =(76, "The expected model stream size and actual mismatch.")

Exception thrown if there is a mismatch between model's expected stream size and actual stream size.

code = 76

message = The expected model stream size and actual mismatch.

◆ IO_STREAM_NULL_ERROR

IO_STREAM_NULL_ERROR =(74, "Stream can not be null.")

Exception thrown if stream is null.

code = 74

message = Stream can not be null.

◆ JNI_INITIALIZE_ERROR

JNI_INITIALIZE_ERROR =(54, "Failed to initialize native JNI caches.")

Exception thrown for native JNI cache initialization failure.

code = 54

message = Failed to initialize native JNI caches.

◆ MODEL_FILE_NULL_ERROR

MODEL_FILE_NULL_ERROR =(60, "Model file can not be null.")

Exception thrown if model file is null.

code = 60

message = Model file can not be null.

◆ MODEL_READ_ERROR

MODEL_READ_ERROR =(13, "Unable to read model file path!")

Exception thrown while reading model file from file path.

code = 13

message = Unable to read model file path!

◆ NETWORK_BUNDLE_ACCESS_ERROR

NETWORK_BUNDLE_ACCESS_ERROR =(10, "Unable to access network initialization bundle!")

Exception thrown while accessing network bundle

code = 10

message = Unable to access network initialization bundle!

◆ NETWORK_OBJECT_ACCESS_ERROR

NETWORK_OBJECT_ACCESS_ERROR =(11, "Unable to access network object!")

Exception thrown while accessing network object

code = 11

message = Unable to access network object!

◆ NETWORK_RELEASE_ERROR

NETWORK_RELEASE_ERROR =(12, "Unable to release managed network!")

Exception thrown while releasing network.

code = 12

message = Unable to release managed network!

◆ NETWORK_TENSOR_ACCESS_ERROR

NETWORK_TENSOR_ACCESS_ERROR =(17, "Unable to access network tensor.")

Exception thrown while accessing network tensor.

code = 17

message = Unable to access network tensor.

◆ NOT_A_DIRECTORY_ERROR

NOT_A_DIRECTORY_ERROR =(71, "Not a directory: ")

Exception thrown if the file is not a directoty.

code = 71

message = Not a directory: "directory_name".

◆ OUTPUT_LAYER_NULL_ERROR

OUTPUT_LAYER_NULL_ERROR =(59, "Output layers can not be null.")

Exception thrown if output layers are null.

code = 59

message = Output layers can not be null.

◆ PERFORMANCE_PROFILE_NULL_ERROR

PERFORMANCE_PROFILE_NULL_ERROR =(63, "Performance profile can not be null.")

Exception thrown if performance profile is null.

code = 63

message = Performance profile can not be null.

◆ RUNTIME_NULL_ERROR

RUNTIME_NULL_ERROR =(57, "Runtime order can not be null.")

Exception thrown if runtime order is null.

code = 57

message = Runtime order can not be null.

◆ RUNTIME_ORDER_NULL_OR_EMPTY_ERROR

RUNTIME_ORDER_NULL_OR_EMPTY_ERROR =(56, "Runtime order can not be null or empty.")

Exception thrown if runtime order is null or empty.

code = 56

message = Runtime order can not be null or empty.

◆ RUNTIME_ORDINAL_ERROR

RUNTIME_ORDINAL_ERROR =(15, "Runtime ordinal error")

Exception thrown when passed ordinal is greater than supported runtimes size.

code = 15

message = Runtime ordinal error!

◆ RUNTIME_TARGET_NOT_SUPPORTED_ERROR

RUNTIME_TARGET_NOT_SUPPORTED_ERROR =(73, "None of the selected runtime targets are supported.")

Exception thrown if no selected runtime is supported.

code = 73

message = None of the selected runtime targets are supported.

◆ TENSOR_BUNDLE_ACCESS_ERROR

TENSOR_BUNDLE_ACCESS_ERROR =(39, "Unable to access tensor initialization bundle!")

Exception thrown while accessing tensor initialization bundle.

code = 39

message = Unable to access tensor initialization bundle!

◆ TENSOR_CREATION_ERROR

TENSOR_CREATION_ERROR =(40, "Unable to create native tensor!")

Exception thrown while creating native tensor

code = 40

message = Unable to create native tensor!

◆ TENSOR_MANAGE_ERROR

TENSOR_MANAGE_ERROR =(41, "Unable to release managed tensor!")

Exception thrown while releasing tensor

code = 41

message = Unable to release managed tensor!

◆ TENSOR_RELEASE_ERROR

TENSOR_RELEASE_ERROR =(42, "FloatTensor instance already released!")

Exception thrown while trying to release already released float tensor.

code = 42

message = FloatTensor instance already released!

◆ USER_BUFFER_RELEASE_ERROR

USER_BUFFER_RELEASE_ERROR =(47, "TF8UserBufferTensor instance already released!")

Exception thrown while trying to release TF8UserBufferTensor if it is already released.

code = 47

message = TF8UserBufferTensor instance already released!


The documentation for this enum was generated from the following file: