Class AbstractTF_Session
java.lang.Object
org.bytedeco.javacpp.Pointer
org.tensorflow.internal.c_api.AbstractTF_Session
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
TF_Session
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TF_GraphReferences to prevent deallocation.protected TF_Bufferprotected TF_SessionOptionsprotected TF_Bufferprotected TF_Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Calls the deallocator, if registered, otherwise has no effect.static TF_SessionloadSessionFromSavedModel(TF_SessionOptions session_options, TF_Buffer run_options, String export_dir, String[] tags, TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status) Calls TF_LoadSessionFromSavedModel(), and registers a deallocator.static TF_SessionnewSession(TF_Graph graph, TF_SessionOptions opts, TF_Status status) Calls TF_NewSession(), 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
-
graph
References to prevent deallocation. -
opts
-
run_options
-
meta_graph_def
-
status
-
-
Constructor Details
-
AbstractTF_Session
-
-
Method Details
-
newSession
Calls TF_NewSession(), and registers a deallocator.- Returns:
- TF_Session created. Do not call TF_DeleteSession() on it.
-
loadSessionFromSavedModel
public static TF_Session loadSessionFromSavedModel(TF_SessionOptions session_options, TF_Buffer run_options, String export_dir, String[] tags, TF_Graph graph, TF_Buffer meta_graph_def, TF_Status status) Calls TF_LoadSessionFromSavedModel(), and registers a deallocator.- Returns:
- TF_Session created. Do not call TF_DeleteSession() on it.
-
delete
public void delete()Calls the deallocator, if registered, otherwise has no effect.
-