Package org.deeplearning4j.config
Class DL4JSystemProperties
- java.lang.Object
-
- org.deeplearning4j.config.DL4JSystemProperties
-
public class DL4JSystemProperties extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHART_MAX_POINTS_PROPERTYApplicability: deeplearning4j-ui
Description: The DL4J training UI (StatsListener + UIServer.getInstance().attach(ss)) will subsample the number of chart points when a lot of data is present - i.e., only a maximum number of points will be shown on each chart.static StringCRASH_DUMP_ENABLED_PROPERTYApplicability: deeplearning4j-nn
Description: DL4J writes some crash dumps to disk when an OOM exception occurs - this functionality is enabled by default.static StringCRASH_DUMP_OUTPUT_DIRECTORY_PROPERTYApplicability: deeplearning4j-nn
Description: DL4J writes some crash dumps to disk when an OOM exception occurs - this functionality is enabled by default.static StringDISABLE_HELPER_PROPERTYApplicability:org.deeplearning4j.nn.layers.HelperUtilsUsed in whether to disable the helpers or not.static StringDL4J_RESOURCES_BASE_URL_PROPERTYApplicability: Numerous modules, including deeplearning4j-datasets and deeplearning4j-zoo
Description: Used to set the base URL for hosting of resources such as datasets (like MNIST) and pretrained models in the model zoo.static StringDL4J_RESOURCES_DIR_PROPERTYApplicability: Numerous modules, including deeplearning4j-datasets and deeplearning4j-zoo
Description: Used to set the local location for downloaded remote resources such as datasets (like MNIST) and pretrained models in the model zoo.static StringDL4J_TEMP_DIR_PROPERTYApplicability: DL4J ModelSerializer, ModelGuesser, Keras model import
Description: Specify the local directory where temporary files will be written.static StringHELPER_DISABLE_DEFAULT_VALUEstatic StringNTP_SOURCE_SERVER_PROPERTYApplicability: dl4j-spark_2.xx - NTPTimeSource class (mainly used in ParameterAveragingTrainingMaster when stats collection is enabled; not enabled by default)
Description: This sets the NTP (network time protocol) server to be used when collecting stats.static StringNTP_SOURCE_UPDATE_FREQUENCY_MS_PROPERTYApplicability: dl4j-spark_2.xx - NTPTimeSource class (mainly used in ParameterAveragingTrainingMaster when stats collection is enabled; not enabled by default)
Description: This sets the NTP (network time protocol) update frequency in milliseconds.static StringTIMESOURCE_CLASSNAME_PROPERTYApplicability: dl4j-spark_2.xx - mainly used in ParameterAveragingTrainingMaster when stats collection is enabled; not enabled by default
Description: This sets the time source to use for spark stats.static StringUI_SERVER_PORT_PROPERTYApplicability: deeplearning4j-vertx (deeplearning4j-ui)
Description: This property sets the port that the UI will be available on.
-
-
-
Field Detail
-
DL4J_TEMP_DIR_PROPERTY
public static final String DL4J_TEMP_DIR_PROPERTY
Applicability: DL4J ModelSerializer, ModelGuesser, Keras model import
Description: Specify the local directory where temporary files will be written. If not specified, the default Java temporary directory (java.io.tmpdir system property) will generally be used.- See Also:
- Constant Field Values
-
DL4J_RESOURCES_DIR_PROPERTY
public static final String DL4J_RESOURCES_DIR_PROPERTY
Applicability: Numerous modules, including deeplearning4j-datasets and deeplearning4j-zoo
Description: Used to set the local location for downloaded remote resources such as datasets (like MNIST) and pretrained models in the model zoo. Default value is set vianew File(System.getProperty("user.home"), ".deeplearning4j"). Setting this can be useful if the system drive has limited space/performance, a shared location for all users should be used instead, or if user.home isn't set for some reason.- See Also:
- Constant Field Values
-
DL4J_RESOURCES_BASE_URL_PROPERTY
public static final String DL4J_RESOURCES_BASE_URL_PROPERTY
Applicability: Numerous modules, including deeplearning4j-datasets and deeplearning4j-zoo
Description: Used to set the base URL for hosting of resources such as datasets (like MNIST) and pretrained models in the model zoo. This is provided as a fallback in case the location of these files changes; it also allows for (in principle) a local mirror of these files.
NOTE: Changing this to a location without the same files and file structure as the DL4J resource hosting is likely to break external resource dowloading in DL4J!- See Also:
- Constant Field Values
-
CRASH_DUMP_ENABLED_PROPERTY
public static final String CRASH_DUMP_ENABLED_PROPERTY
Applicability: deeplearning4j-nn
Description: DL4J writes some crash dumps to disk when an OOM exception occurs - this functionality is enabled by default. This is to help users identify the cause of the OOM - i.e., where native memory is actually consumed. This system property can be used to disable memory crash reporting.
-
CRASH_DUMP_OUTPUT_DIRECTORY_PROPERTY
public static final String CRASH_DUMP_OUTPUT_DIRECTORY_PROPERTY
Applicability: deeplearning4j-nn
Description: DL4J writes some crash dumps to disk when an OOM exception occurs - this functionality is enabled by default. This system property can be use to customize the output directory for memory crash reporting. By default, the current working directory (System.getProperty("user.dir")ornew File("")) will be used
-
CHART_MAX_POINTS_PROPERTY
public static final String CHART_MAX_POINTS_PROPERTY
Applicability: deeplearning4j-ui
Description: The DL4J training UI (StatsListener + UIServer.getInstance().attach(ss)) will subsample the number of chart points when a lot of data is present - i.e., only a maximum number of points will be shown on each chart. This is to reduce the UI bandwidth requirements and client-side rendering cost. To increase the number of points in charts, set this property to a larger value. Default: 512 values- See Also:
- Constant Field Values
-
UI_SERVER_PORT_PROPERTY
public static final String UI_SERVER_PORT_PROPERTY
Applicability: deeplearning4j-vertx (deeplearning4j-ui)
Description: This property sets the port that the UI will be available on. Default port: 9000. Set to 0 for a random port.- See Also:
- Constant Field Values
-
NTP_SOURCE_SERVER_PROPERTY
public static final String NTP_SOURCE_SERVER_PROPERTY
Applicability: dl4j-spark_2.xx - NTPTimeSource class (mainly used in ParameterAveragingTrainingMaster when stats collection is enabled; not enabled by default)
Description: This sets the NTP (network time protocol) server to be used when collecting stats. Default: 0.pool.ntp.org- See Also:
- Constant Field Values
-
NTP_SOURCE_UPDATE_FREQUENCY_MS_PROPERTY
public static final String NTP_SOURCE_UPDATE_FREQUENCY_MS_PROPERTY
Applicability: dl4j-spark_2.xx - NTPTimeSource class (mainly used in ParameterAveragingTrainingMaster when stats collection is enabled; not enabled by default)
Description: This sets the NTP (network time protocol) update frequency in milliseconds. Default: 1800000 (30 minutes)- See Also:
- Constant Field Values
-
TIMESOURCE_CLASSNAME_PROPERTY
public static final String TIMESOURCE_CLASSNAME_PROPERTY
Applicability: dl4j-spark_2.xx - mainly used in ParameterAveragingTrainingMaster when stats collection is enabled; not enabled by default
Description: This sets the time source to use for spark stats. Default:org.deeplearning4j.spark.time.NTPTimeSource- See Also:
- Constant Field Values
-
DISABLE_HELPER_PROPERTY
public static final String DISABLE_HELPER_PROPERTY
Applicability:org.deeplearning4j.nn.layers.HelperUtilsUsed in whether to disable the helpers or not.- See Also:
- Constant Field Values
-
HELPER_DISABLE_DEFAULT_VALUE
public static final String HELPER_DISABLE_DEFAULT_VALUE
- See Also:
- Constant Field Values
-
-