MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Err

Method Err

tensorflow/go/status.go:51–56  ·  view source on GitHub ↗

Err converts the status to a Go error and returns nil if the status is OK.

()

Source from the content-addressed store, hash-verified

49
50// Err converts the status to a Go error and returns nil if the status is OK.
51func (s *status) Err() error {
52 if s == nil || s.Code() == C.TF_OK {
53 return nil
54 }
55 return (*statusError)(s)
56}
57
58// statusError is distinct from status because it fulfills the error interface.
59// status itself may have a TF_OK code and is not always considered an error.

Callers 15

printBestLabelFunction · 0.45
LoadSavedModelFunction · 0.45
NewSessionFunction · 0.45
ListDevicesMethod · 0.45
RunMethod · 0.45
RunMethod · 0.45
NewPartialRunMethod · 0.45
CloseMethod · 0.45
cMethod · 0.45
encodeMethod · 0.45
decodeMethod · 0.45

Calls 1

CodeMethod · 0.95

Tested by 1

printBestLabelFunction · 0.36