Skip to content

Instantly share code, notes, and snippets.

@vidakDK
vidakDK / tf_merge.py
Created November 7, 2018 15:36 — forked from marta-sd/tf_merge.py
Merge two models in TensorFlow
import tensorflow as tf
# 1. Create and save two graphs
# c = a*b
g1 = tf.Graph()
with g1.as_default():
a = tf.placeholder(tf.float32, name='a')
b = tf.Variable(initial_value=tf.truncated_normal((1,)), name='b')