@Namespace(value="torch::serialize") @NoOffset @Properties(inherit=torch.class) public class OutputArchive extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
OutputArchive() |
OutputArchive(CompilationUnit cu) |
OutputArchive(long size)
Native array allocator.
|
OutputArchive(OutputArchive arg0) |
OutputArchive(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
CompilationUnit |
compilation_unit() |
OutputArchive |
getPointer(long i) |
OutputArchive |
position(long position) |
void |
save_to(ArchiveWriter func)
Saves the
OutputArchive into a serialized representation using the
given writer function. |
void |
save_to(BytePointer filename)
Saves the
OutputArchive into a serialized representation in a file at
filename . |
void |
save_to(Pointer stream)
Saves the
OutputArchive into a serialized representation into the given
stream . |
void |
save_to(String filename) |
void |
write(BytePointer key,
IValue ivalue)
Writes an
IValue to the OutputArchive . |
void |
write(BytePointer key,
OutputArchive nested_archive)
Writes a nested
OutputArchive under the given key to this
OutputArchive . |
void |
write(BytePointer key,
Tensor tensor) |
void |
write(BytePointer key,
Tensor tensor,
boolean is_buffer)
Writes a
(key, tensor) pair to the OutputArchive , and marks it as
being or not being a buffer (non-differentiable tensor). |
void |
write(String key,
IValue ivalue) |
void |
write(String key,
OutputArchive nested_archive) |
void |
write(String key,
Tensor tensor) |
void |
write(String key,
Tensor tensor,
boolean is_buffer) |
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 OutputArchive(Pointer p)
Pointer(Pointer)
.public OutputArchive(long size)
Pointer.position(long)
.public OutputArchive(@SharedPtr CompilationUnit cu)
public OutputArchive()
public OutputArchive(@ByRef(value=true) OutputArchive arg0)
public OutputArchive position(long position)
public OutputArchive getPointer(long i)
getPointer
in class Pointer
@SharedPtr public CompilationUnit compilation_unit()
public void write(@StdString BytePointer key, @Const @ByRef IValue ivalue)
IValue
to the OutputArchive
.public void write(@StdString String key, @Const @ByRef IValue ivalue)
public void write(@StdString BytePointer key, @Const @ByRef Tensor tensor, @Cast(value="bool") boolean is_buffer)
(key, tensor)
pair to the OutputArchive
, and marks it as
being or not being a buffer (non-differentiable tensor).public void write(@StdString BytePointer key, @Const @ByRef Tensor tensor)
public void write(@StdString String key, @Const @ByRef Tensor tensor, @Cast(value="bool") boolean is_buffer)
public void write(@StdString String key, @Const @ByRef Tensor tensor)
public void write(@StdString BytePointer key, @ByRef OutputArchive nested_archive)
OutputArchive
under the given key
to this
OutputArchive
.public void write(@StdString String key, @ByRef OutputArchive nested_archive)
public void save_to(@StdString BytePointer filename)
OutputArchive
into a serialized representation in a file at
filename
.public void save_to(@StdString String filename)
public void save_to(@Cast(value="std::ostream*") @ByRef Pointer stream)
OutputArchive
into a serialized representation into the given
stream
.public void save_to(@Const @ByRef ArchiveWriter func)
OutputArchive
into a serialized representation using the
given writer function.Copyright © 2024. All rights reserved.