@Namespace(value="torch::jit") @Properties(inherit=torch.class) public class SugaredValue extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SugaredValue(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, 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 SugaredValue(Pointer p)
Pointer(Pointer)
.@StdString public BytePointer kind()
public Value asValue(@Const @ByRef SourceRange loc, @ByRef GraphFunction m)
@SharedPtr(value="torch::jit::SugaredValue") @ByVal public SugaredValue attr(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @StdString BytePointer field)
@SharedPtr(value="torch::jit::SugaredValue") @ByVal public SugaredValue attr(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @StdString String field)
@Cast(value="bool") public boolean hasAttr(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @StdString BytePointer field)
@Cast(value="bool") public boolean hasAttr(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @StdString String field)
public void setAttr(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @StdString BytePointer field, Value newValue)
public void setAttr(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @StdString String field, Value newValue)
@ByVal public SharedSugaredValueVector asTuple(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, @Const @ByRef(nullValue="std::optional<size_t>{}") SizeTOptional size_hint)
@ByVal public SharedSugaredValueVector asTuple(@Const @ByRef SourceRange loc, @ByRef GraphFunction m)
@SharedPtr(value="torch::jit::SugaredValue") @ByVal public SugaredValue asTupleValue(@Const @ByRef SourceRange loc, @ByRef GraphFunction m)
@ByVal public SharedSugaredValueVector asType(@Const @ByRef SourceRange loc, @ByRef Method m)
@SharedPtr(value="torch::jit::SugaredValue") @ByVal public SugaredValue iter(@Const @ByRef SourceRange loc, @ByRef GraphFunction m)
@ByVal public LongOptional staticLen()
public Value len(@Const @ByRef SourceRange loc, @ByRef GraphFunction m)
@SharedPtr(value="torch::jit::SugaredValue") @ByVal public SugaredValue getitem(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, Value idx, @ByVal(nullValue="c10::TypePtr(nullptr)") Type.TypePtr type_hint)
@SharedPtr(value="torch::jit::SugaredValue") @ByVal public SugaredValue getitem(@Const @ByRef SourceRange loc, @ByRef GraphFunction m, Value idx)
Copyright © 2024. All rights reserved.