-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patherrors.go
More file actions
40 lines (38 loc) · 2.52 KB
/
errors.go
File metadata and controls
40 lines (38 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package tflite
import (
"errors"
)
var (
// ErrGetVersion is returned when Tensor Flow Lite fails to return the version.
ErrGetVersion = errors.New("unable to retrieve TensorFlow Lite version")
// ErrGetEdgeVersion is returned when Tensor Flow Lite Edge support fails to return the version.
ErrGetEdgeVersion = errors.New("unable to retrieve TensorFlow Lite Edge version")
// ErrCreateModel is returned when Tensor Flow Lite fails to create the model.
ErrCreateModel = errors.New("unable to create the TF model")
// ErrCreateInterpreterOptions is returned when creating the interpreter options fails.
ErrCreateInterpreterOptions = errors.New("unable to create an interpreter options")
// ErrCreateModel is returned when Tensor Flow Lite fails to delete the model.
ErrDeleteModel = errors.New("unable to delete the TF model")
//ErrCreateIntepreter is returned when Tensor Flow Lite fails to create the model interpreter
ErrCreateIntepreter = errors.New("unable to create the TF model interpreter")
// ErrDeleteIntepreter is returned when Tensor Flow Lite fails to delete the model interpreter.
ErrDeleteIntepreter = errors.New("unable to delete the TF model interpreter")
// ErrDeleteDelegateEdge is returned when Tensor Flow Lite fails to delete the edge delegate.
ErrDeleteDelegateEdge = errors.New("unable to delete the edge delegate")
// ErrDeleteIntepreteroptions is returned when Tensor Flow Lite fails to delete the model interpreter options.
ErrDeleteIntepreterOptions = errors.New("unable to delete the TF model interpreter options")
// ErrInterpreterSetNumThread is returned when Tensor Flow Lite fails to set number of threads.
ErrInterpreterSetNumThread = errors.New("unable to set number of threads")
//ErrInterpreterAddDelegate is returned when TensorFlow Lite fails to add delegate
ErrInterpreterAddDelegate = errors.New("unable to add new delegate")
//ErrInputTensor is returned when TensorFlow Lite fails to get input tensor
ErrInputTensor = errors.New("unable to retrieve input Tensor")
//ErrOutputTensor is returned when TensorFlow Lite fails to get output tensor.
ErrOutputTensor = errors.New("unable to retrieve output Tensor")
//ErrType is returned when and image operations fails a get an issue with the image type.
ErrType = errors.New("unable to set image type")
//ErrDecode is returned when and decode image operations fails.
ErrDecode = errors.New("unable to decode image")
//ErrDeviceList is returned when is not possible to retrieve a list of devices.
ErrDeviceList = errors.New("unable to retrieve list of devices")
)