@Namespace(value="c10") @Properties(inherit=torch.class) public class AutogradMetaInterface extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AutogradMetaInterface(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Tensor |
fw_grad(long level,
TensorBase self) |
Tensor |
grad() |
Tensor |
mutable_grad() |
boolean |
requires_grad() |
void |
set_fw_grad(TensorBase new_grad,
TensorBase self,
long level,
boolean is_inplace_op) |
void |
set_requires_grad(boolean requires_grad,
TensorImpl self_impl) |
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 AutogradMetaInterface(Pointer p)
Pointer(Pointer)
.public void set_requires_grad(@Cast(value="bool") boolean requires_grad, TensorImpl self_impl)
@Const @ByRef public Tensor fw_grad(@Cast(value="uint64_t") long level, @Const @ByRef TensorBase self)
public void set_fw_grad(@Const @ByRef TensorBase new_grad, @Const @ByRef TensorBase self, @Cast(value="uint64_t") long level, @Cast(value="bool") boolean is_inplace_op)
Copyright © 2024. All rights reserved.