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

All Samples(10)  |  Call(2)  |  Derive(0)  |  Import(8)

src/p/a/parakeet-0.23.2/parakeet/type_inference/rewrite_typed.py   parakeet(Download)
                       NoneT, SliceT, ScalarT,  
                       make_tuple_type, make_array_type, lower_rank)
from ..syntax import (Assign, Tuple, Var, Cast, Return, Index, Map, 
                      ConstArrayLike, Const)
from ..syntax.helpers import get_types, zero_i64, none, const 
        arr_slice = self.slice_along_axis(expr.args[0], expr.axis, zero_i64)
        init_type = make_array_type(elt_type = expr.init.type, rank = arr_slice.type.rank)
        expr.init = ConstArrayLike(array = arr_slice, 
                                   value = expr.init, 
                                   type = init_type)

src/p/a/parakeet-HEAD/parakeet/type_inference/rewrite_typed.py   parakeet(Download)
)
 
from ..syntax import (
  Assign, Tuple, Var, Return, Index, Map, ConstArrayLike, Const, Cast
)
        arr_slice = self.slice_along_axis(args[0], expr.axis, zero_i64)
        init_type = make_array_type(elt_type = expr.init.type, rank = arr_slice.type.rank)
        init = ConstArrayLike(array = arr_slice, 
                                   value = expr.init, 
                                   type = init_type)

src/p/a/parakeet-0.23.2/parakeet/analysis/find_local_arrays.py   parakeet(Download)
from .. ndtypes import ArrayT, PtrT 
from .. syntax import (Var, Alloc, ArrayView, Array, Struct, AllocArray, 
                       Map, IndexMap, OuterMap, Scan, IndexScan, 
                       ConstArray, ConstArrayLike
                       )

src/p/a/parakeet-HEAD/parakeet/analysis/find_local_arrays.py   parakeet(Download)
from .. ndtypes import ArrayT, PtrT 
from .. syntax import (Var, Alloc, ArrayView, Array, Struct, AllocArray, 
                       Map, IndexMap, OuterMap, Scan, IndexScan, 
                       ConstArray, ConstArrayLike
                       )

src/p/a/parakeet-0.23.2/parakeet/lib/array_constructors.py   parakeet(Download)
from .. ndtypes import ( make_array_type,  combine_type_list, repeat_tuple,  
                         ArrayT, TupleT,  Int64, ScalarT) 
from .. syntax import (Range, Cast, AllocArray, TupleProj, Array, 
                       ConstArray, ConstArrayLike, Index, Shape)
 

src/p/a/parakeet-HEAD/parakeet/lib/array_constructors.py   parakeet(Download)
from .. ndtypes import ( make_array_type,  combine_type_list, repeat_tuple,  
                         ArrayT, TupleT,  Int64, ScalarT) 
from .. syntax import (Range, Cast, AllocArray, TupleProj, Array, 
                       ConstArray, ConstArrayLike, Index, Shape)
 

src/p/a/parakeet-0.23.2/parakeet/analysis/index_elim_analysis.py   parakeet(Download)
from dsltools import Node 
 
from .. ndtypes import Float32, Float64, Int32, Int64
from .. syntax import Var, Range, ConstArray, ConstArrayLike, IndexMap
from collect_vars import collect_var_names 

src/p/a/parakeet-HEAD/parakeet/analysis/index_elim_analysis.py   parakeet(Download)
from dsltools import Node 
 
from .. ndtypes import Float32, Float64, Int32, Int64
from .. syntax import Var, Range, ConstArray, ConstArrayLike, IndexMap
from collect_vars import collect_var_names