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

@Properties(inherit=tensorflow.class) public abstract class AbstractTF_Session extends Pointer
  • Field Details

  • Constructor Details

    • AbstractTF_Session

      public AbstractTF_Session(Pointer p)
  • Method Details

    • newSession

      public static TF_Session newSession(TF_Graph graph, TF_SessionOptions opts, TF_Status status)
      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.