public class DMLOptions extends Object
MLContext
The values have been initialized with the default values
Despite there being a DML and PyDML, this class is named DMLOptions
to keep it consistent with DMLOptions and DMLOptions| Modifier and Type | Field and Description |
|---|---|
Map<String,String> |
argVals |
boolean |
clean |
String |
configFile |
boolean |
debug |
static DMLOptions |
defaultOptions |
DMLScript.RUNTIME_PLATFORM |
execMode |
org.apache.sysml.utils.Explain.ExplainType |
explainType |
String |
filePath |
boolean |
forceGPU |
boolean |
gpu |
boolean |
help |
boolean |
memStats |
org.apache.commons.cli.Options |
options |
String |
script |
ScriptType |
scriptType |
boolean |
stats |
int |
statsCount |
| Constructor and Description |
|---|
DMLOptions(org.apache.commons.cli.Options opts) |
| Modifier and Type | Method and Description |
|---|---|
static DMLOptions |
parseCLArguments(String[] args)
Parses command line arguments to create a
DMLOptions instance with the correct options |
String |
toString() |
public final org.apache.commons.cli.Options options
public String configFile
public boolean clean
public boolean stats
public int statsCount
public boolean memStats
public org.apache.sysml.utils.Explain.ExplainType explainType
public DMLScript.RUNTIME_PLATFORM execMode
public boolean gpu
public boolean forceGPU
public boolean debug
public ScriptType scriptType
public String filePath
public String script
public boolean help
public static final DMLOptions defaultOptions
public static DMLOptions parseCLArguments(String[] args) throws org.apache.commons.cli.ParseException
DMLOptions instance with the correct optionsargs - arguments from the command lineDMLOptions that contain the correct Options.org.apache.commons.cli.ParseException - if there is an incorrect option specified in the CLICopyright © 2018 The Apache Software Foundation. All rights reserved.