This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import argparse | |
| import os | |
| import sys | |
| from typing import Iterable | |
| import tensorflow as tf | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('file', type=str, help='The file name of the frozen graph.') | |
| args = parser.parse_args() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.deeplearning4j.nn.modelimport.keras; | |
| import org.deeplearning4j.nn.api.Layer; | |
| import org.deeplearning4j.nn.conf.ComputationGraphConfiguration; | |
| import org.deeplearning4j.nn.graph.ComputationGraph; | |
| import org.deeplearning4j.nn.multilayer.MultiLayerNetwork; | |
| import org.nd4j.linalg.api.ndarray.INDArray; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; |