@Namespace(value="c10") @NoOffset @Properties(inherit=torch.class) public class TensorType extends SharedType
Type.TypePtr
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorType(Pointer p)
Pointer cast constructor.
|
annotation_str, annotation_str, containedType, containedTypes, containedTypeSize, createWithContained, hasFreeVariables, is_module, isSubtypeOf, isUnionType, kind, withContained
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 TensorType(Pointer p)
Pointer(Pointer)
.@SharedPtr(value="c10::TensorType") @ByVal public static TensorType create(@Const @ByRef Tensor t)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType create(@ByVal ScalarTypeOptional scalar_type, @ByVal DeviceOptional device, @Const @ByRef LongVaryingShape sizes, @Const @ByRef LongVaryingShape strides, @ByVal BoolOptional requires_grad, @ByVal(nullValue="c10::optional<bool>(false)") BoolOptional undefined, @Cast(value="bool") boolean tensor_contiguity)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType create(@ByVal ScalarTypeOptional scalar_type, @ByVal DeviceOptional device, @Const @ByRef LongVaryingShape sizes, @Const @ByRef LongVaryingShape strides, @ByVal BoolOptional requires_grad)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType create(@ByVal ScalarTypeOptional scalar_type, @ByVal DeviceOptional device, @Const @ByRef SymbolicShape sizes, @Const @ByRef StrideVaryingShape stride_, @ByVal BoolOptional requires_grad, @ByVal(nullValue="c10::optional<bool>(false)") BoolOptional undefined)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType create(@ByVal ScalarTypeOptional scalar_type, @ByVal DeviceOptional device, @Const @ByRef SymbolicShape sizes, @Const @ByRef StrideVaryingShape stride_, @ByVal BoolOptional requires_grad)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType create(@ByVal ScalarTypeOptional scalar_type, @ByVal DeviceOptional device, @ByVal SizeTOptional dim, @ByVal BoolOptional requires_grad)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType createContiguous(torch.ScalarType scalar_type, @ByVal Device device, @ByVal LongArrayRef sizes)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType createContiguous(torch.ScalarType scalar_type, @ByVal Device device, @ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... sizes)
@ByVal public static Type.TypePtr fromNumberType(@Const @ByRef Type typ)
@ByVal public static Type.TypePtr fromBoolType()
@ByVal public SizeTOptional dim()
@ByVal public LongVaryingShape sizes()
@ByVal public LongVaryingShape strides()
@Const @ByRef public StrideVaryingShape stride_properties()
@ByVal public DeviceOptional device()
@ByVal public ScalarTypeOptional scalarType()
@ByVal public BoolOptional requiresGrad()
@Cast(value="bool") public boolean requires_grad()
requires_grad
in class Type
@Cast(value="bool") public boolean isSubtypeOfExt(@Const @ByRef Type rhs, @Cast(value="std::ostream*") Pointer why_not)
isSubtypeOfExt
in class Type
@StdString public BytePointer str()
@StdString public BytePointer repr_str()
@ByVal public SizeTOptional numel()
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withRequiresGrad(@ByVal BoolOptional s)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withScalarType(@ByVal ScalarTypeOptional st)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withDim(@ByVal SizeTOptional d)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withStrides(@ByVal StrideVaryingShape sstrides)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withSizesStrides(@ByVal LongArrayRef sizes, @ByVal LongArrayRef strides)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withSizesStrides(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long[] sizes, @ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... strides)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withSymbolicShapes(@ByVal SymbolicShape ssizes)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withSizes(@ByVal LongArrayRef sizes)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withSizes(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... sizes)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withDevice(@Const @ByVal DeviceOptional device)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType dimensionedOnly()
@SharedPtr(value="c10::TensorType") @ByVal public TensorType contiguous()
@Const @ByRef public SymbolicShape symbolic_sizes()
@SharedPtr(value="c10::TensorType") @ByVal public TensorType merge(@Const @ByRef TensorType other, @Cast(value="bool") boolean merge_sizes)
@SharedPtr(value="c10::TensorType") @ByVal public TensorType merge(@Const @ByRef TensorType other)
@SharedPtr(value="c10::TensorType") @ByVal public static TensorType getInferred()
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withUndefined()
@SharedPtr(value="c10::TensorType") @ByVal public TensorType withPossiblyUndefined()
@ByVal public BoolOptional undefined()
@Const @SharedPtr(value="c10::TensorType") @ByRef public static TensorType get()
@MemberGetter public static torch.TypeKind Kind()
@ByVal @Cast(value="std::vector<int64_t>*") public static LongVector contiguousStridesOf(@ByVal LongArrayRef in_sizes, @ByVal(nullValue="at::MemoryFormat(c10::MemoryFormat::Contiguous)") torch.MemoryFormat memory_format)
@ByVal @Cast(value="std::vector<int64_t>*") public static LongVector contiguousStridesOf(@ByVal LongArrayRef in_sizes)
@ByVal @Cast(value="std::vector<int64_t>*") public static LongVector contiguousStridesOf(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long[] in_sizes, @ByVal(nullValue="at::MemoryFormat(c10::MemoryFormat::Contiguous)") torch.MemoryFormat memory_format)
@ByVal @Cast(value="std::vector<int64_t>*") public static LongVector contiguousStridesOf(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... in_sizes)
Copyright © 2024. All rights reserved.