File size: 367 Bytes
123f150
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import org.deeplearning4j.nn.multilayer.MultiLayerNetwork;
import org.deeplearning4j.util.ModelSerializer;
import java.io.File;

public class Load {
  public static void main(String[] a) throws Exception {
    MultiLayerNetwork net = ModelSerializer.restoreMultiLayerNetwork(new File(a[0]), true);
    System.out.println("LOADED_OK params=" + net.numParams());
  }
}