@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class Context extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Context() |
Context(long size)
Native array allocator.
|
Context(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 Context(Pointer p)
Pointer(Pointer)
.public Context(long size)
Pointer.position(long)
.public Context()
public Context getPointer(long i)
getPointer
in class Pointer
@ByVal public Device getDeviceFromPtr(Pointer data, torch.DeviceType device_type)
@ByVal public Device getDeviceFromPtr(Pointer data, @Cast(value="c10::DeviceType") byte device_type)
public static long versionCUDART()
public static long versionCuDNN()
public void lazyInitCUDA()
public void lazyInitHIP()
@Cast(value="bool") public static boolean setFlushDenormal(@Cast(value="bool") boolean on)
public int benchmarkLimitCuDNN()
public void setBenchmarkLimitCuDNN(int arg0)
public torch.LinalgBackend linalgPreferredBackend()
public void setLinalgPreferredBackend(torch.LinalgBackend arg0)
public void setLinalgPreferredBackend(@Cast(value="at::LinalgBackend") byte arg0)
@Cast(value="bool") public boolean deterministicAlgorithmsWarnOnly()
public void setDeterministicAlgorithms(@Cast(value="bool") boolean arg0, @Cast(value="bool") boolean arg1)
public static void alertNotDeterministic(@StringView BytePointer caller)
public static void alertNotDeterministic(@StringView String caller)
public void alertCuBLASConfigNotDeterministic()
public void setFloat32MatmulPrecision(@StdString BytePointer s)
public void setFloat32MatmulPrecision(@StdString String s)
public torch.Float32MatmulPrecision float32MatmulPrecision()
public void setFloat32MatmulPrecision(torch.Float32MatmulPrecision p)
public void setFloat32MatmulPrecision(@Cast(value="at::Float32MatmulPrecision") int p)
public void setAllowFP16ReductionCuBLAS(@Cast(value="bool") boolean arg0)
public void setAllowBF16ReductionCuBLAS(@Cast(value="bool") boolean arg0)
@ByVal public torch.QEngine qEngine()
public void setQEngine(@ByVal torch.QEngine e)
@Const @ByRef public static QEngineVector supportedQEngines()
public void setCheckSparseTensorInvariants(@Cast(value="bool") boolean e)
public void setReleaseWeightsWhenPrepacking(@Cast(value="bool") boolean e)
public void setDisplayVmapFallbackWarnings(@Cast(value="bool") boolean enabled)
public void setDefaultMobileCPUAllocator()
public void unsetDefaultMobileCPUAllocator()
Copyright © 2024. All rights reserved.