@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class EagerContext extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static long |
kInvalidContextId |
Constructor and Description |
---|
EagerContext(Pointer p)
Pointer cast constructor.
|
EagerContext(SessionOptions opts,
int default_device_placement_policy,
int default_mirroring_policy,
boolean async,
DeviceMgr device_mgr,
boolean device_mgr_owned,
Rendezvous rendezvous,
CustomKernelCreator custom_kernel_creator) |
EagerContext(SessionOptions opts,
int default_device_placement_policy,
int default_mirroring_policy,
boolean async,
DeviceMgr device_mgr,
boolean device_mgr_owned,
Rendezvous rendezvous,
CustomKernelCreator custom_kernel_creator,
DistributedFunctionLibraryRuntime cluster_flr) |
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
public EagerContext(Pointer p)
Pointer(Pointer)
.public EagerContext(@Const @ByRef SessionOptions opts, @Cast(value="tensorflow::ContextDevicePlacementPolicy") int default_device_placement_policy, @Cast(value="tensorflow::ContextMirroringPolicy") int default_mirroring_policy, @Cast(value="bool") boolean async, @Const DeviceMgr device_mgr, @Cast(value="bool") boolean device_mgr_owned, Rendezvous rendezvous, @Const CustomKernelCreator custom_kernel_creator, DistributedFunctionLibraryRuntime cluster_flr)
public EagerContext(@Const @ByRef SessionOptions opts, @Cast(value="tensorflow::ContextDevicePlacementPolicy") int default_device_placement_policy, @Cast(value="tensorflow::ContextMirroringPolicy") int default_mirroring_policy, @Cast(value="bool") boolean async, @Const DeviceMgr device_mgr, @Cast(value="bool") boolean device_mgr_owned, Rendezvous rendezvous, @Const CustomKernelCreator custom_kernel_creator)
@MemberGetter @Cast(value="const tensorflow::uint64") public static long kInvalidContextId()
public FunctionLibraryRuntime func_lib(@Const Device d)
public ProcessFunctionLibraryRuntime pflr()
public void SetExecutorForThread(EagerExecutor executor)
public DeviceMap device_map()
public DeviceVector devices()
@StdVector public DeviceType prioritized_device_type_list()
public void ClearCaches()
public void SetThreadLocalDevicePlacementPolicy(@Cast(value="tensorflow::ContextDevicePlacementPolicy") int policy)
@Cast(value="tensorflow::ContextDevicePlacementPolicy") public int GetDevicePlacementPolicy()
public void SetThreadLocalMirroringPolicy(@Cast(value="tensorflow::ContextMirroringPolicy") int arg0)
@Cast(value="tensorflow::ContextMirroringPolicy") public int GetMirroringPolicy()
@Cast(value="bool") public boolean FindFunctionByName(@StdString BytePointer name)
@Cast(value="bool") public boolean FindFunctionByName(@StdString String name)
@ByVal public Status FindFunctionOpData(@StdString BytePointer name, @Cast(value="const tensorflow::OpRegistrationData**") PointerPointer op_data)
@ByVal public Status FindFunctionOpData(@StdString BytePointer name, @Const @ByPtrPtr OpRegistrationData op_data)
@ByVal public Status FindFunctionOpData(@StdString String name, @Const @ByPtrPtr OpRegistrationData op_data)
@Const public FunctionDef FindFunctionDef(@StdString BytePointer name)
@Const public FunctionDef FindFunctionDef(@StdString String name)
@ByVal public Status FindDeviceByName(@StdString BytePointer name, @Cast(value="tensorflow::Device**") PointerPointer result)
@ByVal public Status FindDeviceByName(@StdString BytePointer name, @ByPtrPtr Device result)
@ByVal public Status FindDeviceByName(@StdString String name, @ByPtrPtr Device result)
public Device HostCPU()
public GraphCollector GetGraphCollector()
public EagerExecutor Executor()
@ByVal public Status AddFunctionDef(@Const @ByRef FunctionDef fdef)
@ByVal public Status RemoveFunction(@StdString BytePointer func)
@ByVal public Status RemoveFunction(@StdString String func)
@tensorflow.MoveUniquePtr(value="tensorflow::KernelAndDevice,tensorflow::core::RefCountDeleter") public KernelAndDevice GetCachedKernel(@ByVal Fprint128 cache_key)
public void AddKernelToCache(@ByVal Fprint128 cache_key, KernelAndDevice kernel)
public Rendezvous GetRendezvous()
public Rendezvous CreateRendezvous(@Cast(value="const tensorflow::int64") long step_id)
public CollectiveExecutorMgrInterface collective_executor_mgr()
@tensorflow.MoveUniquePtr public CollectiveExecutor.Handle GetCollectiveExecutorHandle()
public void ReleaseDeviceMgr()
public RunMetadata RunMetadataProto()
public void ClearRunMetadata()
public void StartStep()
public void EndStep()
public ScopedStepContainer StepContainer()
public FunctionLibraryDefinition FuncLibDef()
@ByVal public Status GetClient(Device device, @Cast(value="tensorflow::eager::EagerClient**") PointerPointer client)
@ByVal public Status GetClient(Device device, @ByPtrPtr EagerClient client)
@ByVal public Status GetClient(@Const @ByRef DeviceNameUtils.ParsedName device_name, @Cast(value="tensorflow::eager::EagerClient**") PointerPointer client)
@ByVal public Status GetClient(@Const @ByRef DeviceNameUtils.ParsedName device_name, @ByPtrPtr EagerClient client)
@ByVal public Status InitializeRemoteMaster(@tensorflow.MoveUniquePtr ServerInterface server, WorkerEnv worker_env, @SharedPtr WorkerSession worker_session, @tensorflow.MoveUniquePtr EagerClientCache remote_eager_workers, @tensorflow.MoveUniquePtr DeviceMgr remote_device_manager, @Const @ByRef StringVector remote_contexts, @Cast(value="tensorflow::uint64") long context_id, Rendezvous r, DeviceMgr local_device_mgr, int keep_alive_secs, DistributedFunctionLibraryRuntime cluster_flr, @tensorflow.MoveUniquePtr(value="tensorflow::eager::RemoteMgr,std::function<void(tensorflow::eager::RemoteMgr*)>") RemoteMgr remote_mgr)
@ByVal public Status InitializeRemoteWorker(@tensorflow.MoveUniquePtr EagerClientCache remote_eager_workers, @Const DeviceMgr remote_device_mgr, @Const @ByRef StringVector remote_contexts, @Cast(value="tensorflow::uint64") long context_id, @ByVal tensorflow.RendezvousCreator rendezvous_creator, @tensorflow.MoveUniquePtr(value="tensorflow::eager::RemoteMgr,std::function<void(tensorflow::eager::RemoteMgr*)>") RemoteMgr remote_mgr)
@ByVal public Status StoreCollectiveOpsServer(@tensorflow.MoveUniquePtr ServerInterface server, DeviceMgr device_mgr, CollectiveExecutorMgrInterface rpc_collective_executor_mgr)
@tensorflow.MoveUniquePtr(value="tensorflow::eager::RemoteMgr,std::function<void(tensorflow::eager::RemoteMgr*)>") public RemoteMgr RemoteMgr()
public void WaitForAndCloseRemoteContexts()
public Env TFEnv()
@ByVal public Status FindDeviceFromName(@Cast(value="const char*") BytePointer device_name, @Cast(value="tensorflow::Device**") PointerPointer device)
@ByVal public Status FindDeviceFromName(@Cast(value="const char*") BytePointer device_name, @ByPtrPtr Device device)
@ByVal public Status FindDeviceFromName(String device_name, @ByPtrPtr Device device)
@ByVal public Status CPUDeviceOnTask(@Const Device device, @Cast(value="tensorflow::Device**") PointerPointer cpu_device)
@ByVal public Status CPUDeviceOnTask(@Const Device device, @ByPtrPtr Device cpu_device)
@Cast(value="bool") public boolean IsLocalDeviceName(@Const @ByRef DeviceNameUtils.ParsedName device_name)
Copyright © 2022. All rights reserved.