Back to Tensorflow

BaseTaskApi

tensorflow/lite/g3doc/api_docs/java/org/tensorflow/lite/task/core/BaseTaskApi.html

2.21.04.4 KB
Original Source

public abstract class BaseTaskApi

| Known Direct Subclasses

AudioClassifier, BaseVisionTaskApi, BertCluAnnotator, BertNLClassifier, BertQuestionAnswerer, NLClassifier, TextSearcher

| AudioClassifier | Performs classification on audio waveforms. | | BaseVisionTaskApi | Base class for Task Vision APIs. | | BertCluAnnotator | API for BERT-based Conversational Language Understanding. | | BertNLClassifier | Classifier API for NLClassification tasks with Bert models, categorizes string into different classes. | | BertQuestionAnswerer | Returns the most possible answers on a given question for QA models (BERT, Albert, etc.). | | NLClassifier | Classifier API for natural language classification tasks, categorizes string into different classes. | | TextSearcher | Performs similarity search on text string. |

|

| Known Indirect Subclasses

ImageClassifier, ImageSearcher, ImageSegmenter, ObjectDetector

| ImageClassifier | Performs classification on images. | | ImageSearcher | Performs similarity search on images. | | ImageSegmenter | Performs segmentation on images. | | ObjectDetector | Performs object detection on images. |

|

Base class for Task API, provides shared logic to load/unload native libs to its C++ counterpart.

Public Methods

| synchronized void | close() Release the memory allocated from C++ and deregister the library from the static holder.

| | long | getNativeHandle() | | boolean | isClosed() |

Inherited Methods

From class java.lang.Object

| 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() |

From interface java.io.Closeable

| abstract void | close() |

From interface java.lang.AutoCloseable

| abstract void | close() |

Public Methods

public synchronized void close ()

Release the memory allocated from C++ and deregister the library from the static holder.

public long getNativeHandle ()

public boolean isClosed ()