@Namespace(value="c10") @Properties(inherit=torch.class) public class NoGradGuard extends AutoGradMode
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
NoGradGuard() |
NoGradGuard(long size)
Native array allocator.
|
NoGradGuard(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
NoGradGuard |
getPointer(long i) |
NoGradGuard |
position(long position) |
prev_mode, prev_mode
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 NoGradGuard(Pointer p)
Pointer(Pointer)
.public NoGradGuard(long size)
Pointer.position(long)
.public NoGradGuard()
public NoGradGuard position(long position)
public NoGradGuard getPointer(long i)
getPointer
in class Pointer
Copyright © 2024. All rights reserved.