Skip to content

Instantly share code, notes, and snippets.

@Ingwar
Ingwar / demo.py
Last active January 31, 2018 10:37
Script that reproduce issues with tf.train.write_graph() and graph_utils.convert_to_constant_graph()
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import numpy as np
import os
import tensorflow as tf
from tensorflow.python.client import graph_util
DATA_PLACEHOLDER_NAME = 'data'