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

All Samples(25)  |  Call(7)  |  Derive(0)  |  Import(18)

src/p/a/parakeet-0.23.2/parakeet/transforms/simplify_array_operators.py   parakeet(Download)
 
from ..analysis import collect_var_names
from ..builder import build_fn
from ..ndtypes import ArrayT 
from ..syntax import Var, ArrayExpr, Adverb, Range, Const, IndexMap 
        return expr 
      diff = self.sub(prev.stop, prev.start, "niters")
      return IndexMap(fn = expr.fn, shape = diff, start_index = prev.start, type = expr.type) 
    return expr 
 

src/p/a/parakeet-HEAD/parakeet/transforms/simplify_array_operators.py   parakeet(Download)
 
from ..analysis import collect_var_names
from ..builder import build_fn
from ..ndtypes import ArrayT 
from ..syntax import Var, ArrayExpr, Adverb, Range, Const, IndexMap 
        return expr 
      diff = self.sub(prev.stop, prev.start, "niters")
      return IndexMap(fn = expr.fn, shape = diff, start_index = prev.start, type = expr.type) 
    return expr 
 

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, 
 
    combined_shape = self.concat_tuples(shape, remapped_inner_shape, "combined_shape")
    return  IndexMap(fn = self.closure(nested_fn, tuple(remapped_closure_args)),
                     shape = combined_shape,    
                     type = result_type)

src/p/a/parakeet-HEAD/parakeet/transforms/fusion.py   parakeet(Download)
from ..transforms import inline, Transform 
from .. syntax import Var, Const,  Return, TypedFn, DataAdverb, Adverb
from .. syntax import IndexMap, IndexReduce, Map, Reduce, OuterMap 
from ..syntax.helpers import zero_i64, none 
 
          new_fn = self.fn.created_by.apply(new_fn)
        new_fn.created_by = self.fn.created_by 
        rhs = IndexMap(fn = self.closure(new_fn, clos_args), 
                       shape = prev_adverb.shape, 
                       type = rhs.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 imap(fn, shape):
  return IndexMap(shape = shape, fn = fn)
 
 
@macro

src/p/a/parakeet-HEAD/parakeet/lib/adverbs.py   parakeet(Download)
 
 
from .. syntax import (none, zero_i64, 
                       Map, Reduce, Scan, 
                       IndexMap, IndexReduce, 
def imap(fn, shape):
  return IndexMap(shape = shape, fn = fn)
 
 
@macro

src/p/a/parakeet-HEAD/parakeet/frontend/ast_conversion.py   parakeet(Download)
from ..ndtypes import Type
from ..prims import Prim 
from ..syntax import (Expr, 
                      Assign, If, ForLoop, Return,  
                      Var, PrimCall, Cast,  Select, 
      (seq.start is None or seq.start == zero_i64) and  \
      (seq.step is None or seq.step == one_i64):
      return IndexMap(fn = fn, shape = seq.stop)
    else:
      return Map(fn = fn, args=(seq,), axis = zero_i64)

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, 

  1 | 2  Next