@Namespace(value="torch::autograd") @NoOffset @Properties(inherit=torch.class) public class VariableInfo extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
VariableInfo() |
VariableInfo(long size)
Native array allocator.
|
VariableInfo(Pointer p)
Pointer cast constructor.
|
VariableInfo(Tensor var) |
Modifier and Type | Method and Description |
---|---|
Device |
device() |
VariableInfo |
device(Device setter) |
VariableInfo |
getPointer(long i) |
boolean |
is_empty() |
VariableInfo |
is_empty(boolean setter) |
torch.Layout |
layout() |
VariableInfo |
layout(torch.Layout setter) |
VariableInfo |
position(long position) |
boolean |
requires_grad() |
VariableInfo |
requires_grad(boolean setter) |
torch.ScalarType |
scalar_type() |
VariableInfo |
scalar_type(torch.ScalarType setter) |
SymIntVector |
size() |
VariableInfo |
size(SymIntVector setter) |
Tensor |
zeros(OptionalDeviceGuard device_guard) |
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 VariableInfo(Pointer p)
Pointer(Pointer)
.public VariableInfo(long size)
Pointer.position(long)
.public VariableInfo()
public VariableInfo position(long position)
public VariableInfo getPointer(long i)
getPointer
in class Pointer
@ByVal @Cast(value="torch::autograd::Variable*") public Tensor zeros(@ByRef OptionalDeviceGuard device_guard)
@ByRef public torch.Layout layout()
public VariableInfo layout(torch.Layout setter)
public VariableInfo device(Device setter)
public torch.ScalarType scalar_type()
public VariableInfo scalar_type(torch.ScalarType setter)
@ByRef public SymIntVector size()
public VariableInfo size(SymIntVector setter)
public VariableInfo requires_grad(boolean setter)
public VariableInfo is_empty(boolean setter)
Copyright © 2024. All rights reserved.