Skip to content
Snippets Groups Projects
Commit f9ce0c99 authored by Dennis Noll's avatar Dennis Noll
Browse files

[keras] Feed/get: now outputs tuples

parent 2dee1ef8
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class KFeed(object):
return tuple(v if isinstance(v, tuple) else (v,) for v in (self.x, self.y, self.w))
def get(self, src):
return tuple(itemgetter(*v)(src) for v in self.xyw)
return tuple(tuple(src[k] for k in v) for v in self.xyw)
@property
def all(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment