You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, you may have to get the tensor that does that operation. For example, you may do something similar to the following:
You may restore the session and get the placeholders like this :
sess = tf.Session(config=config)
init = tf.global_variables_initializer()
sess.run(init)
saver = tf.train.import_meta_graph(META_GRAPH)
saver.restore(sess, tf.train.latest_checkpoint(LOG_DIR))
# We can now access the default graph where all our metadata has been loaded
graph = tf.get_default_graph()
# tmp = graph.get_operations()
# tmp = [n.name for n in graph.as_graph_def().node]
# print tmp
# placeholders we need
farthest_points_pl = graph.get_tensor_by_name('layer1/FarthestPointSample:0')
pointclouds_pl = graph.get_tensor_by_name('Placeholder:0')
pred_pl = graph.get_tensor_by_name('fc2/BiasAdd:0')
is_training_pl = graph.get_tensor_by_name('Placeholder_3:0')
META_GRAPH and LOG_DIR are directory paths you define.
Or how exactly should we sample the corresponding label of each single point?
The text was updated successfully, but these errors were encountered: