@Namespace(value="at") @NoOffset @Properties(inherit=torch.class) public class TensorIteratorConfig extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
TensorIteratorConfig() |
TensorIteratorConfig(long size)
Native array allocator.
|
TensorIteratorConfig(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, 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 TensorIteratorConfig(Pointer p)
Pointer(Pointer)
.public TensorIteratorConfig(long size)
Pointer.position(long)
.public TensorIteratorConfig()
public TensorIteratorConfig position(long position)
public TensorIteratorConfig getPointer(long i)
getPointer
in class Pointer
@ByRef public TensorIteratorConfig add_output(@Const @ByRef TensorBase output)
@ByRef public TensorIteratorConfig add_input(@Const @ByRef TensorBase input)
@ByRef public TensorIteratorConfig add_const_input(@Const @ByRef TensorBase input)
@ByRef public TensorIteratorConfig add_owned_output(@Const @ByRef TensorBase output)
@ByRef public TensorIteratorConfig add_owned_input(@Const @ByRef TensorBase input)
@ByRef public TensorIteratorConfig add_owned_const_input(@Const @ByRef TensorBase input)
@ByRef public TensorIteratorConfig add_borrowed_output(@Const @ByRef TensorBase output)
@ByRef public TensorIteratorConfig add_borrowed_input(@Const @ByRef TensorBase input)
@ByRef public TensorIteratorConfig add_borrowed_const_input(@Const @ByRef TensorBase input)
@ByRef public TensorIteratorConfig set_check_mem_overlap(@Cast(value="bool") boolean check_mem_overlap)
@ByRef public TensorIteratorConfig check_all_same_dtype(@Cast(value="const bool") boolean _check_all_same_dtype)
@ByRef public TensorIteratorConfig check_all_same_device(@Cast(value="const bool") boolean _check_all_same_device)
@ByRef public TensorIteratorConfig enforce_safe_casting_to_output(@Cast(value="const bool") boolean _enforce_safe_casting_to_output)
@ByRef public TensorIteratorConfig enforce_linear_iteration(@Cast(value="const bool") boolean _enforce_linear_iteration)
@ByRef public TensorIteratorConfig enforce_linear_iteration()
@ByRef public TensorIteratorConfig promote_inputs_to_common_dtype(@Cast(value="const bool") boolean _promote_inputs_to_common_dtype)
@ByRef public TensorIteratorConfig promote_integer_inputs_to_float(@Cast(value="const bool") boolean _promote_integer_inputs_to_float)
@ByRef public TensorIteratorConfig is_reduction(@Cast(value="const bool") boolean _is_reduction)
@ByRef public TensorIteratorConfig allow_cpu_scalars(@Cast(value="const bool") boolean _allow_cpu_scalars)
@ByRef public TensorIteratorConfig cast_common_dtype_to_outputs(@Cast(value="const bool") boolean _cast_common_dtype_to_outputs)
@ByRef public TensorIteratorConfig resize_outputs(@Cast(value="bool") boolean resize_outputs)
@ByRef public TensorIteratorConfig declare_static_dtype_and_device(torch.ScalarType dtype, @ByVal Device device)
@ByRef public TensorIteratorConfig declare_static_dtype(torch.ScalarType dtype)
@ByRef public TensorIteratorConfig declare_static_device(@ByVal Device device)
@ByRef public TensorIteratorConfig declare_static_shape(@ByVal LongArrayRef shape)
@ByRef public TensorIteratorConfig declare_static_shape(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... shape)
@ByRef public TensorIteratorConfig declare_static_shape(@ByVal LongArrayRef shape, @ByVal LongArrayRef squash_dims)
@ByRef public TensorIteratorConfig declare_static_shape(@ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long[] shape, @ByVal @Cast(value={"int64_t*","c10::ArrayRef<int64_t>","std::vector<int64_t>&"}) @StdVector(value="int64_t") long... squash_dims)
@ByVal public TensorIterator build()
Copyright © 2024. All rights reserved.