Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Fix an issue that prediction right after preprocessing fails in inception package local run. #135

Merged
merged 1 commit into from
Jan 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ def start_bundle(self, context):
with self.graph.as_default():
self.preprocess_graph = EmbeddingsGraph(self.tf_session, self._checkpoint_path)

def finish_bundle(self, context):
if self.tf_session is not None:
self.tf_session.close()

def process(self, context):

def _bytes_feature(value):
Expand Down