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

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

src/p/a/parakeet-0.23.2/parakeet/frontend/ast_conversion.py   parakeet(Download)
                      SourceInfo)
 
from ..syntax.helpers import (none, true, false, one_i64, zero_i64, zero_i24,  
                              is_python_constant, const)
from ..syntax.wrappers import build_untyped_prim_fn, build_untyped_expr_fn, build_untyped_cast_fn
def value_to_syntax(v):
  if isinstance(v, Expr):
    return v 
  elif is_python_constant(v):
    return const(v)

src/p/a/parakeet-HEAD/parakeet/frontend/ast_conversion.py   parakeet(Download)
                      SourceInfo)
 
from ..syntax.helpers import (none, true, false, one_i64, zero_i64, zero_i24,  
                              is_python_constant, const)
from ..syntax.wrappers import build_untyped_prim_fn, build_untyped_expr_fn, build_untyped_cast_fn
def value_to_syntax(v):
  if isinstance(v, Expr):
    return v 
  elif is_python_constant(v):
    return const(v)

src/p/a/parakeet-0.23.2/parakeet/type_inference/rewrite_typed.py   parakeet(Download)
from ..syntax import (Assign, Tuple, Var, Cast, Return, Index, Map, 
                      ConstArrayLike, Const)
from ..syntax.helpers import get_types, zero_i64, none, const 
from ..transforms import Transform 
 
      elt_dims = [self.shape(first_elt, i) for i in xrange(array_t.rank - 1)]
      n = len(expr.elts)
      outer_dim = const(n)
      all_dims = (outer_dim,) + tuple(elt_dims)
      array = self.alloc_array(elt_t, all_dims, "array_literal")

src/p/a/parakeet-HEAD/parakeet/type_inference/rewrite_typed.py   parakeet(Download)
  Assign, Tuple, Var, Return, Index, Map, ConstArrayLike, Const, Cast
)
from ..syntax.helpers import get_types, zero_i64, none, const 
from ..transforms import Transform 
 
      elt_dims = [self.shape(first_elt, i) for i in xrange(array_t.rank - 1)]
      n = len(expr.elts)
      outer_dim = const(n)
      all_dims = (outer_dim,) + tuple(elt_dims)
      array = self.alloc_array(elt_t, all_dims, "array_literal")

src/p/a/parakeet-0.23.2/parakeet/transforms/offset_propagation.py   parakeet(Download)
from .. import prims 
from .. analysis.offset_analysis import OffsetAnalysis
from .. syntax import Var, Const 
from .. syntax.helpers import true, false, const
from transform import Transform 

src/p/a/parakeet-HEAD/parakeet/transforms/offset_propagation.py   parakeet(Download)
from .. import prims 
from .. analysis.offset_analysis import OffsetAnalysis
from .. syntax import Var, Const 
from .. syntax.helpers import true, false, const
from transform import Transform 

src/p/a/parakeet-0.23.2/parakeet/value_specialization/value_specialization.py   parakeet(Download)
import numpy as np 
from numpy import ndarray 
 
from .. import syntax 
from .. syntax.helpers import const 

src/p/a/parakeet-HEAD/parakeet/value_specialization/value_specialization.py   parakeet(Download)
import numpy as np 
from numpy import ndarray 
 
from .. import syntax 
from .. syntax.helpers import const