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

All Samples(26)  |  Call(8)  |  Derive(0)  |  Import(18)

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, 
            new_outer_args[i] = array_arg.array
      combined_axis = self.tuple(combined_axes)
    return  OuterMap(fn = self.closure(nested_fn, new_closure_elts),
                     args = tuple(new_outer_args),   
                     axis = combined_axis, 

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, 
            new_outer_args[i] = array_arg.array
      combined_axis = self.tuple(combined_axes)
    return  OuterMap(fn = self.closure(nested_fn, new_closure_elts),
                     args = tuple(new_outer_args),   
                     axis = combined_axis, 

src/p/a/parakeet-0.23.2/parakeet/lib/linalg.py   parakeet(Download)
from ..frontend import typed_macro 
from ..ndtypes import ScalarT, ArrayT, make_array_type
from ..syntax import PrimCall, Call,  OuterMap, Map
from ..syntax.helpers import make_closure 
 
    vdot = _get_vdot_fn(a,b)
    result_matrix_type = make_array_type(vdot.return_type, 2)
    return OuterMap(fn = vdot, args = (a, b), axis = (0,1), 
                    type = result_matrix_type)
 

src/p/a/parakeet-HEAD/parakeet/lib/linalg.py   parakeet(Download)
from ..frontend import typed_macro 
from ..ndtypes import ScalarT, ArrayT, make_array_type
from ..syntax import PrimCall, Call,  OuterMap, Map
from ..syntax.helpers import make_closure 
 
    vdot = _get_vdot_fn(a,b)
    result_matrix_type = make_array_type(vdot.return_type, 2)
    return OuterMap(fn = vdot, args = (a, b), axis = (0,1), 
                    type = result_matrix_type)
 

src/p/a/parakeet-0.23.2/parakeet/lib/adverbs.py   parakeet(Download)
 
 
from .. syntax import (none, zero_i64, 
                       Map, Reduce, Scan, 
                       IndexMap, IndexReduce, 
def allpairs(f, x, y, axis = 0):
  return OuterMap(fn = f, args = (x,y), axis = axis)
 
@staged_macro("axis")
def outer_map(f, *args, **kwds):
    axis = zero_i64
  assert len(kwds) == 0, "outer_map got unexpected keywords %s" % (kwds.keys())
  return OuterMap(fn = f, args = args, axis = axis)
 
@staged_macro("axis")

src/p/a/parakeet-HEAD/parakeet/lib/adverbs.py   parakeet(Download)
 
 
from .. syntax import (none, zero_i64, 
                       Map, Reduce, Scan, 
                       IndexMap, IndexReduce, 
def allpairs(f, x, y, axis = 0):
  return OuterMap(fn = f, args = (x,y), axis = axis)
 
@staged_macro("axis")
def outer_map(f, *args, **kwds):
    axis = zero_i64
  assert len(kwds) == 0, "outer_map got unexpected keywords %s" % (kwds.keys())
  return OuterMap(fn = f, args = args, axis = axis)
 
@staged_macro("axis")

src/p/a/parakeet-0.23.2/parakeet/analysis/syntax_visitor.py   parakeet(Download)
from .. syntax import (Expr, Assign, ExprStmt, ForLoop, If, Return, While, Comment, ParFor, 
                       TypedFn, UntypedFn,  Closure, ClosureElt, Select,  
                       Attribute, Const, Index, PrimCall, Tuple, Var, 
                       Alloc, Array, Call, Struct, Shape, Strides, Range, Ravel, Transpose,
                       AllocArray, ArrayView, Cast, Slice, TupleProj, TypeValue,  

src/p/a/parakeet-HEAD/parakeet/analysis/syntax_visitor.py   parakeet(Download)
from .. syntax import (Expr, Assign, ExprStmt, ForLoop, If, Return, While, Comment, ParFor, 
                       TypedFn, UntypedFn,  Closure, ClosureElt, Select,  
                       Attribute, Const, Index, PrimCall, Tuple, Var, 
                       Alloc, Array, Call, Struct, Shape, Strides, Range, Ravel, Transpose,
                       AllocArray, ArrayView, Cast, Slice, TupleProj, TypeValue,  

src/p/a/parakeet-0.23.2/parakeet/transforms/simplify.py   parakeet(Download)
from .. ndtypes import ArrayT,  ClosureT, NoneT, ScalarT, TupleT, ImmutableT, NoneType, SliceT, FnT
 
from .. syntax import (AllocArray, Assign, ExprStmt, Expr, 
                       Const, Var, Tuple, TupleProj, Closure, ClosureElt, Cast,
                       Slice, Index, Array, ArrayView, Attribute, Struct, Select, 

src/p/a/parakeet-HEAD/parakeet/transforms/simplify.py   parakeet(Download)
                        SliceT, FnT, FloatT)
 
from .. syntax import (AllocArray, Assign, ExprStmt, Expr, 
                       Const, Var, Tuple, TupleProj, Closure, ClosureElt, Cast,
                       Slice, Index, Array, ArrayView, Attribute, Struct, Select, 

  1 | 2  Next