DestroyResourceOp

public final class DestroyResourceOp

Deletes the resource specified by the handle.

All subsequent operations using the resource will result in a NotFound error status.

Nested Classes

class DestroyResourceOp.Options Optional attributes for DestroyResourceOp  

Public Methods

static DestroyResourceOp
create(Scope scope, Operand<?> resource, Options... options)
Factory method to create a class wrapping a new DestroyResourceOp operation.
static DestroyResourceOp.Options
ignoreLookupError(Boolean ignoreLookupError)

Inherited Methods

org.tensorflow.op.PrimitiveOp
final boolean
equals(Object obj)
final int
Operation
op()
Returns the underlying Operation
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Methods

public static DestroyResourceOp create (Scope scope, Operand<?> resource, Options... options)

Factory method to create a class wrapping a new DestroyResourceOp operation.

Parameters
scope current scope
resource handle to the resource to delete.
options carries optional attributes values
Returns
  • a new instance of DestroyResourceOp

public static DestroyResourceOp.Options ignoreLookupError (Boolean ignoreLookupError)

Parameters
ignoreLookupError whether to ignore the error when the resource doesn't exist.