previous_workspace = workspace.CurrentWorkspace()
workspace.SwitchWorkspace(self._workspace_id)
for name, value in states.items():
workspace.FeedBlob(name, np.atleast_1d(value).astype(np.float32))
for name, value in actions.items():
workspace.FeedBlob(name, np.atleast_1d(value).astype(np.float32))
workspace.RunNet(self._net)
result = {"Q": workspace.FetchBlob(self._output_blobs[0])}