public class CrashReportingUtil extends Object
Modifier and Type | Method and Description |
---|---|
static void |
crashDumpOutputDirectory(File rootDir)
Method that can be use to customize the output directory for memory crash reporting.
|
static void |
crashDumpsEnabled(boolean enabled)
Method that can be used to enable or disable memory crash reporting.
|
static String |
generateMemoryStatus(Model net,
int minibatch,
InputType... inputTypes)
Generate memory/system report as a String, for the specified network.
|
static void |
writeMemoryCrashDump(Model net,
Throwable e)
Generate and write the crash dump to the crash dump root directory (by default, the working directory).
|
public static void crashDumpsEnabled(boolean enabled)
public static void crashDumpOutputDirectory(File rootDir)
rootDir
- Root directory to use for crash reporting. If null is passed, the current working directory
will be usedpublic static void writeMemoryCrashDump(@NonNull Model net, @NonNull Throwable e)
net
- Net to generate the crash dump for. May not be nulle
- Throwable/exception. Stack trace will be included in the network outputpublic static String generateMemoryStatus(Model net, int minibatch, InputType... inputTypes)
net
- Net to generate the report forCopyright © 2019. All rights reserved.