@Namespace(value="tensorflow") @Properties(inherit=tensorflow.class) public class DeviceNameUtils extends Pointer
Modifier and Type | Class and Description |
---|---|
static class |
DeviceNameUtils.ParsedName |
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DeviceNameUtils()
Default native constructor.
|
DeviceNameUtils(long size)
Native array allocator.
|
DeviceNameUtils(Pointer p)
Pointer cast constructor.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public DeviceNameUtils()
public DeviceNameUtils(long size)
Pointer.position(long)
.public DeviceNameUtils(Pointer p)
Pointer(Pointer)
.public DeviceNameUtils position(long position)
public DeviceNameUtils getPointer(long i)
getPointer
in class Pointer
@StdString public static BytePointer FullName(@StdString BytePointer job, int replica, int task, @StdString BytePointer type, int id)
@StdString public static String FullName(@StdString String job, int replica, int task, @StdString String type, int id)
@Cast(value="bool") public static boolean ParseFullName(@tensorflow.StringPiece BytePointer fullname, DeviceNameUtils.ParsedName parsed)
@Cast(value="bool") public static boolean ParseFullName(@tensorflow.StringPiece String fullname, DeviceNameUtils.ParsedName parsed)
@ByVal public static Status CanonicalizeDeviceName(@tensorflow.StringPiece BytePointer fullname, @tensorflow.StringPiece BytePointer basename, @StdString @Cast(value={"char*","std::string*"}) BytePointer canonical_name)
@ByVal public static Status CanonicalizeDeviceName(@tensorflow.StringPiece String fullname, @tensorflow.StringPiece String basename, @StdString @Cast(value={"char*","std::string*"}) BytePointer canonical_name)
@Cast(value="bool") public static boolean HasSomeDetails(@Const @ByRef DeviceNameUtils.ParsedName name)
@Cast(value="bool") public static boolean IsSpecification(@Const @ByRef DeviceNameUtils.ParsedName less_specific, @Const @ByRef DeviceNameUtils.ParsedName more_specific)
public static void EnsureSpecification(DeviceNameUtils.ParsedName more_specific, @Const @ByRef DeviceNameUtils.ParsedName less_specific)
@Cast(value="bool") public static boolean IsCompleteSpecification(@Const @ByRef DeviceNameUtils.ParsedName pattern, @Const @ByRef DeviceNameUtils.ParsedName name)
@Cast(value="bool") public static boolean AreCompatibleDevNames(@Const @ByRef DeviceNameUtils.ParsedName a, @Const @ByRef DeviceNameUtils.ParsedName b)
@ByVal public static Status MergeDevNames(DeviceNameUtils.ParsedName target, @Const @ByRef DeviceNameUtils.ParsedName other)
@ByVal public static Status MergeDevNames(DeviceNameUtils.ParsedName target, @Const @ByRef DeviceNameUtils.ParsedName other, @Cast(value="bool") boolean allow_soft_placement)
@ByVal public static Status MergeOverrideDevNames(DeviceNameUtils.ParsedName target, @Const @ByRef DeviceNameUtils.ParsedName other)
@Cast(value="bool") public static boolean IsSameAddressSpace(@tensorflow.StringPiece BytePointer src, @tensorflow.StringPiece BytePointer dst)
@Cast(value="bool") public static boolean IsSameAddressSpace(@tensorflow.StringPiece String src, @tensorflow.StringPiece String dst)
@Cast(value="bool") public static boolean IsSameAddressSpace(@Const @ByRef DeviceNameUtils.ParsedName src, @Const @ByRef DeviceNameUtils.ParsedName dst)
@Cast(value="bool") public static boolean IsDifferentAddressSpace(@Const @ByRef DeviceNameUtils.ParsedName a, @Const @ByRef DeviceNameUtils.ParsedName b)
@Const @ByVal public static DeviceNameUtils.ParsedName AddressSpace(@Const @ByRef DeviceNameUtils.ParsedName name)
@StdString public static BytePointer LocalName(@tensorflow.StringPiece BytePointer type, int id)
@StdString public static String LocalName(@tensorflow.StringPiece String type, int id)
@StdString public static BytePointer LocalName(@tensorflow.StringPiece BytePointer fullname)
@StdString public static String LocalName(@tensorflow.StringPiece String fullname)
@Cast(value="bool") public static boolean ParseLocalName(@tensorflow.StringPiece BytePointer name, DeviceNameUtils.ParsedName parsed)
@Cast(value="bool") public static boolean ParseLocalName(@tensorflow.StringPiece String name, DeviceNameUtils.ParsedName parsed)
@Cast(value="bool") public static boolean SplitDeviceName(@tensorflow.StringPiece BytePointer name, @StdString @Cast(value={"char*","std::string*"}) BytePointer task, @StdString @Cast(value={"char*","std::string*"}) BytePointer device)
@Cast(value="bool") public static boolean SplitDeviceName(@tensorflow.StringPiece String name, @StdString @Cast(value={"char*","std::string*"}) BytePointer task, @StdString @Cast(value={"char*","std::string*"}) BytePointer device)
@Cast(value="bool") public static boolean GetTaskName(@Const @ByRef DeviceNameUtils.ParsedName pn, @StdString @Cast(value={"char*","std::string*"}) BytePointer task)
@StdString public static BytePointer ParsedNameToString(@Const @ByRef DeviceNameUtils.ParsedName pn)
@ByVal public static StringVector GetNamesForDeviceMappings(@Const @ByRef DeviceNameUtils.ParsedName pn)
@ByVal public static StringVector GetLocalNamesForDeviceMappings(@Const @ByRef DeviceNameUtils.ParsedName pn)
@ByVal public static Status DeviceNameToCpuDeviceName(@StdString BytePointer device_name, @StdString @Cast(value={"char*","std::string*"}) BytePointer host_device_name)
@ByVal public static Status DeviceNameToCpuDeviceName(@StdString String device_name, @StdString @Cast(value={"char*","std::string*"}) BytePointer host_device_name)
Copyright © 2022. All rights reserved.