Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/a/parakeet-0.23.2/parakeet/transforms/specialize_fn_args.py   parakeet(Download)
from .. import names
from ..builder import build_fn
from ..syntax import Const, Var
from ..syntax.helpers import is_constant
from inline import Inliner
  def transform_Map(self, expr):
    if self.is_none(expr.axis) or is_constant(expr.axis):
      new_closure, new_array_args = self.specialize_closure(expr.fn, expr.args)
      expr.fn = new_closure
      expr.args = new_array_args

src/p/a/parakeet-HEAD/parakeet/transforms/specialize_fn_args.py   parakeet(Download)
from .. import names
from ..builder import build_fn
from ..syntax import Const, Var
from ..syntax.helpers import is_constant
from inline import Inliner
  def transform_Map(self, expr):
    if self.is_none(expr.axis) or is_constant(expr.axis):
      new_closure, new_array_args = self.specialize_closure(expr.fn, expr.args)
      expr.fn = new_closure
      expr.args = new_array_args