Class AbstractTFE_Context
java.lang.Object
org.bytedeco.javacpp.Pointer
org.tensorflow.internal.c_api.AbstractTFE_Context
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
TFE_Context
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TFE_ContextOptionsReferences to prevent deallocation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Calls the deallocator, if registered, otherwise has no effect.static TFE_ContextnewContext(TFE_ContextOptions opts, TF_Status status) Calls TFE_NewContext(), and registers a deallocator.Methods inherited from class Pointer
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
-
Field Details
-
opts
References to prevent deallocation.
-
-
Constructor Details
-
AbstractTFE_Context
-
-
Method Details
-
newContext
Calls TFE_NewContext(), and registers a deallocator.- Returns:
- TFE_Context created. Do not call TFE_DeleteContext() on it.
-
delete
public void delete()Calls the deallocator, if registered, otherwise has no effect.
-