@Namespace(value="torch::profiler::impl") @NoOffset @Properties(inherit=torch.class) public class ProfilerConfig extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ProfilerConfig(int state) |
ProfilerConfig(int state,
boolean report_input_shapes,
boolean profile_memory,
boolean with_stack,
boolean with_flops,
boolean with_modules,
ExperimentalConfig experimental_config) |
ProfilerConfig(Pointer p)
Pointer cast constructor.
|
ProfilerConfig(torch.ProfilerState state) |
ProfilerConfig(torch.ProfilerState state,
boolean report_input_shapes,
boolean profile_memory,
boolean with_stack,
boolean with_flops,
boolean with_modules,
ExperimentalConfig experimental_config) |
Modifier and Type | Method and Description |
---|---|
boolean |
disabled() |
ExperimentalConfig |
experimental_config() |
ProfilerConfig |
experimental_config(ExperimentalConfig setter) |
static ProfilerConfig |
fromIValue(IValue profilerConfigIValue) |
boolean |
global() |
boolean |
profile_memory() |
ProfilerConfig |
profile_memory(boolean setter) |
boolean |
report_input_shapes() |
ProfilerConfig |
report_input_shapes(boolean setter) |
torch.ProfilerState |
state() |
ProfilerConfig |
state(torch.ProfilerState setter) |
IValue |
toIValue() |
boolean |
with_flops() |
ProfilerConfig |
with_flops(boolean setter) |
boolean |
with_modules() |
ProfilerConfig |
with_modules(boolean setter) |
boolean |
with_stack() |
ProfilerConfig |
with_stack(boolean setter) |
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 ProfilerConfig(Pointer p)
Pointer(Pointer)
.public ProfilerConfig(torch.ProfilerState state, @Cast(value="bool") boolean report_input_shapes, @Cast(value="bool") boolean profile_memory, @Cast(value="bool") boolean with_stack, @Cast(value="bool") boolean with_flops, @Cast(value="bool") boolean with_modules, @ByVal(nullValue="torch::profiler::impl::ExperimentalConfig()") ExperimentalConfig experimental_config)
public ProfilerConfig(torch.ProfilerState state)
public ProfilerConfig(@Cast(value="torch::profiler::impl::ProfilerState") int state, @Cast(value="bool") boolean report_input_shapes, @Cast(value="bool") boolean profile_memory, @Cast(value="bool") boolean with_stack, @Cast(value="bool") boolean with_flops, @Cast(value="bool") boolean with_modules, @ByVal(nullValue="torch::profiler::impl::ExperimentalConfig()") ExperimentalConfig experimental_config)
public torch.ProfilerState state()
public ProfilerConfig state(torch.ProfilerState setter)
@ByRef public ExperimentalConfig experimental_config()
public ProfilerConfig experimental_config(ExperimentalConfig setter)
public ProfilerConfig report_input_shapes(boolean setter)
public ProfilerConfig profile_memory(boolean setter)
public ProfilerConfig with_stack(boolean setter)
public ProfilerConfig with_flops(boolean setter)
public ProfilerConfig with_modules(boolean setter)
@ByVal public static ProfilerConfig fromIValue(@Const @ByRef IValue profilerConfigIValue)
Copyright © 2024. All rights reserved.