Ejemplo n.º 1
0
 def pretty_str(self):
     # drop modules from the prettified string
     pretty_fn = self.fn_name().split(".")[-1]
     return "%s(%s,kw=%s)" % (
         pretty_fn,
         indent(",".join([v.pretty_str() for v in self.deps if not isinstance(v, LocalInput)])),
         indent(",".join(["(k=%s v=%s)" % (k, v) for k, v in self.kw.iteritems()])),
     )
Ejemplo n.º 2
0
 def pretty_str(self):
     # drop modules from the prettified string
     pretty_fn = self.fn_name().split('.')[-1]
     return '%s(%s,kw=%s)' % (
         pretty_fn,
         indent(','.join([
             v.pretty_str()
             for v in self.deps if not isinstance(v, LocalInput)
         ])),
         indent(','.join(
             ['(k=%s v=%s)' % (k, v) for k, v in self.kw.iteritems()])))
Ejemplo n.º 3
0
 def pretty_str(self):
     return 'Reduce(%s, axis=%s, %s, hint=%s)' % (
         self.op.fn.__name__, self.axis, indent(
             self.children.pretty_str()), self.tile_hint)
Ejemplo n.º 4
0
 def pretty_str(self):
   # drop modules from the prettified string
   pretty_fn = self.fn_name().split('.')[-1]
   return '%s(%s)' % (
     pretty_fn, indent(','.join([v.pretty_str() for v in self.deps if not isinstance(v, LocalInput)]))
   )
Ejemplo n.º 5
0
 def pretty_str(self):
   return 'Reduce(%s, axis=%s, %s, hint=%s)' % (self.op.fn.__name__, self.axis,
                                       indent(self.children.pretty_str()), self.tile_hint)