Package org.deeplearning4j.util
Class DL4JModelValidator
- java.lang.Object
-
- org.deeplearning4j.util.DL4JModelValidator
-
public class DL4JModelValidator extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValidationResult
validateComputationGraph(@NonNull File f)
Validate whether the file represents a valid ComputationGraph saved previously withComputationGraph.save(File)
orModelSerializer.writeModel(Model, File, boolean)
, to be read withComputationGraph.load(File, boolean)
static ValidationResult
validateMultiLayerNetwork(@NonNull File f)
Validate whether the file represents a valid MultiLayerNetwork saved previously withMultiLayerNetwork.save(File)
orModelSerializer.writeModel(Model, File, boolean)
, to be read withMultiLayerNetwork.load(File, boolean)
-
-
-
Method Detail
-
validateMultiLayerNetwork
public static ValidationResult validateMultiLayerNetwork(@NonNull @NonNull File f)
Validate whether the file represents a valid MultiLayerNetwork saved previously withMultiLayerNetwork.save(File)
orModelSerializer.writeModel(Model, File, boolean)
, to be read withMultiLayerNetwork.load(File, boolean)
- Parameters:
f
- File that should represent an saved MultiLayerNetwork- Returns:
- Result of validation
-
validateComputationGraph
public static ValidationResult validateComputationGraph(@NonNull @NonNull File f)
Validate whether the file represents a valid ComputationGraph saved previously withComputationGraph.save(File)
orModelSerializer.writeModel(Model, File, boolean)
, to be read withComputationGraph.load(File, boolean)
- Parameters:
f
- File that should represent an saved MultiLayerNetwork- Returns:
- Result of validation
-
-