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

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

src/p/a/parakeet-0.23.2/parakeet/transforms/indexify_adverbs.py   parakeet(Download)
from ..syntax import (ParFor, IndexReduce, IndexScan, Index, Map, OuterMap, Var, Const, Expr)
from ..syntax.helpers import get_types, none, zero_i64 
from ..syntax.adverb_helpers import max_rank_arg, max_rank 
from transform import Transform
 
      if any(axis is None for axis in axes):
        assert all(axis is None for axis in axes), "Incompatible axes %s" % axes 
        n_indices = max_rank(array_arg_types)
      else:
        assert all(isinstance(axis, (int,long)) for axis in axes), "Invalid axes %s" % axes 

src/p/a/parakeet-HEAD/parakeet/transforms/indexify_adverbs.py   parakeet(Download)
from ..syntax import (ParFor, IndexReduce, IndexScan, Index, Map, OuterMap, Var, Const, Expr)
from ..syntax.helpers import get_types, none, zero_i64 
from ..syntax.adverb_helpers import max_rank_arg, max_rank 
from transform import Transform
 
      if any(axis is None for axis in axes):
        assert all(axis is None for axis in axes), "Incompatible axes %s" % axes 
        n_indices = max_rank(array_arg_types)
      else:
        assert all(isinstance(axis, (int,long)) for axis in axes), "Invalid axes %s" % axes 

src/p/a/parakeet-0.23.2/parakeet/type_inference/type_inference.py   parakeet(Download)
      elt_types = [t.elt_type if isinstance(t, ArrayT) else t for t in arg_types]
      typed_prim_fn = mk_prim_fn(expr.prim, elt_types)
      max_rank = adverb_helpers.max_rank(arg_types)
      if max_rank == 0:
        return self.call(typed_prim_fn, args)

src/p/a/parakeet-HEAD/parakeet/type_inference/type_inference.py   parakeet(Download)
      elt_types = [t.elt_type if isinstance(t, ArrayT) else t for t in arg_types]
      typed_prim_fn = mk_prim_fn(expr.prim, elt_types)
      max_rank = adverb_helpers.max_rank(arg_types)
      if max_rank == 0:
        return self.call(typed_prim_fn, args)