Class TensorflowExecutor
- java.lang.Object
-
- org.apache.wayang.core.util.AbstractReferenceCountable
-
- org.apache.wayang.core.platform.ExecutorTemplate
-
- org.apache.wayang.tensorflow.execution.TensorflowExecutor
-
- All Implemented Interfaces:
CompositeExecutionResource,ExecutionResource,Executor,ReferenceCountable
public class TensorflowExecutor extends ExecutorTemplate
Executorimplementation for theTensorflowPlatform.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wayang.core.platform.Executor
Executor.Factory
-
-
Field Summary
-
Fields inherited from class org.apache.wayang.core.platform.ExecutorTemplate
logger
-
-
Constructor Summary
Constructors Constructor Description TensorflowExecutor(TensorflowPlatform platform, Job job)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResource(java.lang.AutoCloseable resource)voiddispose()Releases any instances acquired by this instance to executeExecutionStages.voidexecute(ExecutionStage stage, OptimizationContext optimizationContext, ExecutionState executionState)Executes the givenstage.PlatformgetPlatform()-
Methods inherited from class org.apache.wayang.core.platform.ExecutorTemplate
createPartialExecution, disposeUnreferenced, getConfiguration, getCrossPlatformExecutor, register, registerMeasuredCardinalities, registerMeasuredCardinality, toString, unregister
-
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, wait, wait, wait
-
Methods inherited from interface org.apache.wayang.core.util.ReferenceCountable
disposeIfUnreferenced, getNumReferences, isDisposed, noteDiscardedReference, noteObtainedReference
-
-
-
-
Constructor Detail
-
TensorflowExecutor
public TensorflowExecutor(TensorflowPlatform platform, Job job)
-
-
Method Detail
-
execute
public void execute(ExecutionStage stage, OptimizationContext optimizationContext, ExecutionState executionState)
Description copied from interface:ExecutorExecutes the givenstage.- Parameters:
stage- should be executed; must be executable by this instance, thoughexecutionState- provides and accepts execution-related objects @return collected metadata from instrumentation
-
addResource
public void addResource(java.lang.AutoCloseable resource)
-
dispose
public void dispose()
Description copied from interface:ExecutorReleases any instances acquired by this instance to executeExecutionStages.- Specified by:
disposein interfaceExecutionResource- Specified by:
disposein interfaceExecutor- Overrides:
disposein classExecutorTemplate
-
-