@Namespace(value="tensorflow") @NoOffset @Properties(inherit=tensorflow.class) public class Device extends DeviceBase
DeviceBase.CpuWorkerThreads, DeviceBase.GpuDeviceInfo
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Device(Pointer p)
Pointer cast constructor.
|
CopyTensorInSameDevice, eigen_cpu_device, env, GetAllocator, GetScopedAllocator, GetScopedAllocatorMgr, GetStepAllocator, has_eigen_cpu_device, MakeGpuDevice, MakeTensorFromProto, ReinitializeGpuDevice, RequiresRecordingAccessedTensors, SafeAllocFrontier, set_eigen_cpu_device, set_tensorflow_cpu_worker_threads, set_tensorflow_gpu_device_info, tensorflow_cpu_worker_threads, tensorflow_device_thread_pool, tensorflow_gpu_device_info, UnderlyingDevice
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 Device(Pointer p)
Pointer(Pointer)
.@StdString public BytePointer name()
name
in class DeviceBase
@Const @ByRef public DeviceNameUtils.ParsedName parsed_name()
@StdString public BytePointer device_type()
@Const @ByRef public DeviceAttributes attributes()
attributes
in class DeviceBase
public void Compute(OpKernel op_kernel, OpKernelContext context)
public void ComputeAsync(AsyncOpKernel op_kernel, OpKernelContext context, @ByVal @Cast(value="tensorflow::AsyncOpKernel::DoneCallback*") tensorflow.Fn done)
public void ConsumeListOfAccessedTensors(DeviceContext context, @Cast(value="const tensorflow::TensorReferenceVector*") @ByRef TensorValueVector tensors)
@ByVal public Status MaybeRewriteGraph(@UniquePtr Graph arg0)
@ByVal public Status FillContextMap(@Const Graph graph, @Cast(value="tensorflow::DeviceContextMap*") DeviceContextVector device_context_map)
public OpSegment op_segment()
public ResourceMgr resource_manager()
@StdString public BytePointer DebugString()
@ByVal public static DeviceAttributes BuildDeviceAttributes(@StdString BytePointer name, @ByVal DeviceType device, @Cast(value="tensorflow::Bytes") long memory_limit, @Const @ByRef DeviceLocality locality, @StdString BytePointer physical_device_desc)
@ByVal public static DeviceAttributes BuildDeviceAttributes(@StdString String name, @ByVal DeviceType device, @Cast(value="tensorflow::Bytes") long memory_limit, @Const @ByRef DeviceLocality locality, @StdString String physical_device_desc)
@ByVal public static DeviceAttributes BuildDeviceAttributes(@StdString BytePointer name, @ByVal DeviceType device, @Cast(value="tensorflow::Bytes") long memory_limit, @Const @ByRef DeviceLocality locality)
@ByVal public static DeviceAttributes BuildDeviceAttributes(@StdString String name, @ByVal DeviceType device, @Cast(value="tensorflow::Bytes") long memory_limit, @Const @ByRef DeviceLocality locality)
public void ClearResourceMgr()
Copyright © 2022. All rights reserved.