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

All Samples(92)  |  Call(36)  |  Derive(0)  |  Import(56)

src/p/a/parakeet-0.23.2/parakeet/frontend/decorators.py   parakeet(Download)
 
from .. import names 
 
from .. syntax import (Expr, Var, Const, Return, UntypedFn, FormalArgs, DelayUntilTyped,  
                       const, is_python_constant)
            "Unexpected type for static/staged value: %s : %s" % \
            (value, type(value))
        keyword_vars[static_name] = const(value)
 
 

src/p/a/parakeet-HEAD/parakeet/frontend/decorators.py   parakeet(Download)
 
from .. import names 
 
from .. syntax import (Expr, Var, Const, Return, UntypedFn, FormalArgs, DelayUntilTyped,  
                       const, is_python_constant)
            "Unexpected type for static/staged value: %s : %s" % \
            (value, type(value))
        keyword_vars[static_name] = const(value)
 
 

src/p/a/parakeet-0.23.2/parakeet/shape_inference/shape_codegen.py   parakeet(Download)
from dsltools import Traversal 
 
from ..syntax import const  
from ..ndtypes import ArrayT, ClosureT, ScalarT, TupleT 
from shape import Closure, Scalar, Var, AnyScalar, any_scalar, computable_dim
  def visit_Const(self, v):
    return const(v.value)
 
  def visit_Shape(self, v):
    assert len(v.dims) > 0, "Encountered empty shape"

src/p/a/parakeet-HEAD/parakeet/shape_inference/shape_codegen.py   parakeet(Download)
from dsltools import Traversal 
 
from ..syntax import const  
from ..ndtypes import ArrayT, ClosureT, ScalarT, TupleT 
from shape import Closure, Scalar, Var, AnyScalar, any_scalar, computable_dim
  def visit_Const(self, v):
    return const(v.value)
 
  def visit_Shape(self, v):
    assert len(v.dims) > 0, "Encountered empty shape"