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

Function Abort

tensorflow/go/op/wrappers.go:37597–37611  ·  view source on GitHub ↗

Raise a exception to abort the process when called. If exit_without_error is true, the process will exit normally, otherwise it will exit with a SIGABORT signal. Returns nothing but an exception. Returns the created operation.

(scope *Scope, optional ...AbortAttr)

Source from the content-addressed store, hash-verified

37595//
37596// Returns the created operation.
37597func Abort(scope *Scope, optional ...AbortAttr) (o *tf.Operation) {
37598 if scope.Err() != nil {
37599 return
37600 }
37601 attrs := map[string]interface{}{}
37602 for _, a := range optional {
37603 a(attrs)
37604 }
37605 opspec := tf.OpSpec{
37606 Type: "Abort",
37607
37608 Attrs: attrs,
37609 }
37610 return scope.AddOperation(opspec)
37611}
37612
37613// DecodePngAttr is an optional argument to DecodePng.
37614type DecodePngAttr func(optionalAttr)

Callers 2

RunMethod · 0.85
RunMethod · 0.85

Calls 3

aClass · 0.85
ErrMethod · 0.45
AddOperationMethod · 0.45

Tested by

no test coverage detected