Class TensorflowContextReference
- java.lang.Object
-
- org.apache.wayang.core.util.AbstractReferenceCountable
-
- org.apache.wayang.core.platform.ExecutionResourceTemplate
-
- org.apache.wayang.tensorflow.execution.TensorflowContextReference
-
- All Implemented Interfaces:
ExecutionResource
,ReferenceCountable
public class TensorflowContextReference extends ExecutionResourceTemplate
-
-
Constructor Summary
Constructors Constructor Description TensorflowContextReference(CrossPlatformExecutor crossPlatformExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResource(java.lang.AutoCloseable resource)
protected void
doDispose()
Performs the actual disposing work of this instance.-
Methods inherited from class org.apache.wayang.core.platform.ExecutionResourceTemplate
dispose, disposeUnreferenced
-
Methods inherited from class org.apache.wayang.core.util.AbstractReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReference
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wayang.core.util.ReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReference
-
-
-
-
Constructor Detail
-
TensorflowContextReference
public TensorflowContextReference(CrossPlatformExecutor crossPlatformExecutor)
-
-
Method Detail
-
addResource
public void addResource(java.lang.AutoCloseable resource)
-
doDispose
protected void doDispose() throws java.lang.Throwable
Description copied from class:ExecutionResourceTemplate
Performs the actual disposing work of this instance.- Specified by:
doDispose
in classExecutionResourceTemplate
- Throws:
java.lang.Throwable
- in case anything goes wrong
-
-