Skip to content

Commit

Permalink
Minor change to ensure example runs using tensorflow tensors
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Apr 26, 2021
1 parent af60ce5 commit 9b33a29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdf_to_pytorch/mlp_pure_mdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get_model_graph():
weight = weights['weights.mlp_classifier.graphs.mlp_classifier.nodes.mlp_input_layer.parameters.weight']
bias = weights['weights.mlp_classifier.graphs.mlp_classifier.nodes.mlp_input_layer.parameters.bias']

dummy_input = np.zeros((14*14))
dummy_input = np.zeros((1,14*14))
#dummy_input = np.ones((14*14))

input_node = Node(
Expand Down Expand Up @@ -140,7 +140,7 @@ def main():
from neuromllite.utils import FORMAT_NUMPY, FORMAT_TENSORFLOW

format = FORMAT_TENSORFLOW if "-tf" in sys.argv else FORMAT_NUMPY
eg = EvaluableGraph(mod_graph, verbose=True)
eg = EvaluableGraph(mod_graph, verbose=False)
eg.evaluate(array_format=format)

print('Finished evaluating graph using array format %s'%format)
Expand Down

0 comments on commit 9b33a29

Please sign in to comment.