public static class ProfilingListener.Builder extends Object
Modifier and Type | Method and Description |
---|---|
ProfilingListener |
build()
Create the profiling listener
|
ProfilingListener.Builder |
maxProfileIterations(int iterations)
Set a limit on the maximum number of iterations to profile (after warmup, if any).
|
ProfilingListener.Builder |
maxProfilerMilliseconds(long ms)
Set a limit on the maximum duration for profiling, in milliseconds.
|
ProfilingListener.Builder |
operations(Operation... operations)
Specify the operations (training, inference, etc) to profile.
|
ProfilingListener.Builder |
recordAll()
If called, all data will be profiled with no limits (other than a warmup, if set)
|
ProfilingListener.Builder |
warmup(int iterations)
Specify the number of warmup iterations - i.e., these will be excluded from profiling results
|
public Builder(@NonNull @NonNull File outputFile)
public ProfilingListener.Builder recordAll()
public ProfilingListener.Builder warmup(int iterations)
public ProfilingListener.Builder maxProfileIterations(int iterations)
public ProfilingListener.Builder maxProfilerMilliseconds(long ms)
public ProfilingListener.Builder operations(Operation... operations)
public ProfilingListener build()
Copyright © 2020. All rights reserved.