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

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

src/p/a/parakeet-0.23.2/parakeet/transforms/combine_nested_maps.py   parakeet(Download)
from collections import namedtuple
 
from ..analysis import collect_var_names_from_exprs
from ..ndtypes import TupleT 
from ..syntax import (Return, Map, OuterMap, Tuple, Var, Closure, Assign, 
        return c(array = self.translate_expr(expr.array, mapping,forbidden), type = expr.type)
      elif c is Reshape:
        return Reshape(array = self.translate_expr(expr.array, mapping,forbidden), 
                       shape = self.translate_expr(expr.shape, mapping,forbidden), 
                       type = expr.type)

src/p/a/parakeet-HEAD/parakeet/transforms/combine_nested_maps.py   parakeet(Download)
from collections import namedtuple
 
from ..analysis import collect_var_names_from_exprs
from ..ndtypes import TupleT 
from ..syntax import (Return, Map, OuterMap, IndexMap, Tuple, TupleProj, Var, Closure, Assign, 
      if array is None or shape is None:
        raise CombineFailed()
      return Reshape(array = array, shape = shape,  type = expr.type)
 
  def build_arg_mapping(self, fn, closure_elts, outer_args = None):  

src/p/a/parakeet-0.23.2/parakeet/lib/array_properties.py   parakeet(Download)
from .. ndtypes import ArrayT, Int64, elt_type, empty_tuple_t, TupleT, TypeValueT 
from .. frontend import macro, jit, typed_macro 
from .. syntax import (Attribute, Tuple, Ravel, Shape, Reshape, TypeValue, Transpose, Const)
from .. syntax.helpers import const_int, zero_i64 
 
def reshape(x):
  return Reshape(x)
 
 
@typed_macro 

src/p/a/parakeet-HEAD/parakeet/lib/array_properties.py   parakeet(Download)
from .. ndtypes import ArrayT, Int64, elt_type, empty_tuple_t, TupleT, TypeValueT 
from .. frontend import macro, jit, typed_macro 
from .. syntax import (Attribute, Tuple, Ravel, Shape, Reshape, TypeValue, Transpose, Const)
from .. syntax.helpers import const_int, zero_i64 
 
def reshape(x):
  return Reshape(x)
 
@typed_macro 
def get_elt_type(x):