@Name(value="torch::data::Iterator<torch::data::Example<torch::Tensor,torch::Tensor> >") @NoOffset @Properties(inherit=torch.class) public class ExampleIterator extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ExampleIterator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Example |
access()
Returns a pointer to the current batch.
|
boolean |
equals(ExampleIterator other)
Compares two iterators for equality.
|
ExampleIterator |
increment()
Increments the iterator.
|
Example |
multiply()
Returns the current batch.
|
boolean |
notEquals(ExampleIterator other)
Compares two iterators for inequality.
|
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 ExampleIterator(Pointer p)
Pointer(Pointer)
.@ByRef @Name(value="operator ++") public ExampleIterator increment()
@ByRef @Name(value="operator *") public Example multiply()
@Name(value="operator ->") public Example access()
@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef ExampleIterator other)
Copyright © 2024. All rights reserved.