MCPcopy Create free account

hub / github.com/0b01/tensorscript / functions

Functions219 in github.com/0b01/tensorscript

↓ 1 callersMethodbuild_int_lit
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:546
↓ 1 callersMethodbuild_node_decl
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:466
↓ 1 callersMethodbuild_pipes
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:379
↓ 1 callersMethodbuild_stmt
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:177
↓ 1 callersMethodbuild_stmts
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:231
↓ 1 callersMethodbuild_tuple
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:101
↓ 1 callersMethodbuild_use_stmt
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:576
↓ 1 callersMethodbuild_view_fn
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:267
↓ 1 callersMethodbuild_weights_assign
(&self, body: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:333
↓ 1 callersMethodbuild_weights_decl
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:311
↓ 1 callersMethodcollect_decl
(&mut self, decl: &TyDecl)
trsc/src/typing/constraint.rs:83
↓ 1 callersMethodcollect_decl
(&mut self, decl: &TyDecl)
trsc/src/codegen/pytorch.rs:402
↓ 1 callersMethodcollect_fn_app
(&mut self, fn_app: &TyFnApp, var_name: Option<String>, is_stmt: bool)
trsc/src/codegen/pytorch.rs:224
↓ 1 callersMethodcollect_fn_decl
(&mut self, decl: &TyFnDecl)
trsc/src/typing/constraint.rs:118
↓ 1 callersMethodcollect_graph_decl
(&mut self, decl: &TyGraphDecl)
trsc/src/typing/constraint.rs:95
↓ 1 callersMethodcollect_node_decl
(&mut self, decl: &TyNodeDecl)
trsc/src/typing/constraint.rs:133
↓ 1 callersMethodcollect_use_stmt
(&mut self, _decl: &TyUseStmt)
trsc/src/typing/constraint.rs:170
↓ 1 callersMethodcollect_weights_assign
(&mut self, w_a: &TyWeightsAssign)
trsc/src/typing/constraint.rs:174
↓ 1 callersMethodcollect_weights_decl
(&mut self, decl: &TyWeightsDecl)
trsc/src/typing/constraint.rs:149
↓ 1 callersMethodcompose
(&mut self, mut other: Substitution)
trsc/src/typing/unifier.rs:239
↓ 1 callersMethodexample
(self, x)
trsc/tests/output/mnist.py:32
↓ 1 callersFunctiongen_decl
(fn_decl: &FnDecl)
trsc_core_derive/src/lib.rs:78
↓ 1 callersFunctiongen_ty_sigs
(decls: &[FnDecl])
trsc_core_derive/src/lib.rs:69
↓ 1 callersMethodgenerate_class_head
(&mut self)
trsc/src/codegen/pytorch.rs:267
↓ 1 callersMethodgenerate_fn_decl
(&mut self, func: &TyFnDecl)
trsc/src/codegen/pytorch.rs:276
↓ 1 callersMethodgenerate_imports
(&mut self)
trsc/src/codegen/pytorch.rs:373
↓ 1 callersMethodgenerate_init_fn
(&mut self, init_fn: &TyFnDecl)
trsc/src/codegen/pytorch.rs:301
↓ 1 callersMethodgenerate_modules
(&mut self)
trsc/src/codegen/pytorch.rs:364
↓ 1 callersFunctionget_fn_decls
(path: &str, ty_sigs: &BTreeMap<&str, String>)
trsc_core_derive/src/lib.rs:60
↓ 1 callersFunctionget_fns
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:15
↓ 1 callersFunctionget_is_stateful
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:4
↓ 1 callersFunctionget_matches
()
trsc/src/main.rs:89
↓ 1 callersFunctionget_path
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:34
↓ 1 callersFunctionimpl_op
(ast: &syn::DeriveInput)
trsc_core_derive/src/lib.rs:30
↓ 1 callersMethodimport
(&self, path_name: &str, mod_name: &str, tenv: &mut TypeEnv)
trsc/src/core/mod.rs:79
↓ 1 callersMethodimport_prelude
(&mut self)
trsc/src/typing/type_env.rs:415
↓ 1 callersFunctionlex
(decl: &str)
trsc_core_derive/src/parser.rs:129
↓ 1 callersFunctionoccurs
(tvar: TypeId, ty: &Type)
trsc/src/typing/unifier.rs:202
↓ 1 callersFunctionparse_decl
(path: &str, name: &str, decl: &str)
trsc_core_derive/src/parser.rs:61
↓ 1 callersMethodparse_str
(&self, source: &str)
trsc/src/parsing/ast_builder.rs:31
↓ 1 callersMethodreplace_type
replace an alias in scope
trsc/src/typing/type_env.rs:238
↓ 1 callersMethodresolve
output same shape as input
trsc/src/core/lin.rs:18
↓ 1 callersMethodresolve_init
(&self, mod_name: &ModName, alias: &str)
trsc/src/typing/type_env.rs:147
↓ 1 callersMethodresolve_type_inner
inside the module or global scope, iterate over block scope and find the last defn of the alias which may be shadowed
trsc/src/typing/type_env.rs:161
↓ 1 callersMethodset_fns
(&mut self, fns: &Vec<TyFnDecl>)
trsc/src/codegen/pytorch.rs:71
↓ 1 callersMethodset_inits
(&mut self, inits: &Vec<TyWeightsAssign>)
trsc/src/codegen/pytorch.rs:99
↓ 1 callersFunctionsubs_decl
(decl: &TyDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:47
↓ 1 callersFunctionsubs_fn_app
(fn_app: &typed_term::TyFnApp, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:104
↓ 1 callersFunctionsubs_fn_decl
(decl: &TyFnDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:67
↓ 1 callersFunctionsubs_graph_decl
(decl: &TyGraphDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:58
↓ 1 callersFunctionsubs_node_decl
(decl: &TyNodeDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:75
↓ 1 callersFunctionsubs_use_stmt
(decl: &TyUseStmt, _tenv: &mut Substitution)
trsc/src/typing/inferred_ast.rs:93
↓ 1 callersFunctionsubs_weights_assign
(w_a: &TyWeightsAssign, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:97
↓ 1 callersFunctionsubs_weights_decl
(decl: &TyWeightsDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:83
↓ 1 callersFunctionsubstitute_tvar
replace tvar with replacement in ty
trsc/src/typing/unifier.rs:255
↓ 1 callersMethodunify_one
(&mut self, eq: Equals)
trsc/src/typing/unifier.rs:40
↓ 1 callersMethodupsert_module
if current module does not exist, create and insert it, nop otherwise
trsc/src/typing/type_env.rs:182
Method__init__
(self)
trsc/tests/output/gan.py:10
Method__init__
(self)
trsc/tests/output/xor.py:10
Method__init__
(self)
trsc/tests/output/mnist.py:10
Method__init__
(self)
misc/xor.py:10
Method__init__
(self)
misc/tf_fizzbuzz.py:12
Methodas_float
(&self)
trsc/src/typing/typed_term.rs:32
Methodas_num
(&self)
trsc/src/typing/typed_term.rs:40
Methodas_str
(&self)
trsc/src/typing/typed_term.rs:85
Methodbody
(self, i, _)
misc/tf_fizzbuzz.py:27
Functionderive
(input: TokenStream)
trsc_core_derive/src/lib.rs:16
Methodempty
()
trsc/src/typing/unifier.rs:249
Methodeq
(&self, other: &Type)
trsc/src/typing/types.rs:32
Methodfmt
(&self, f: &mut Formatter)
trsc/src/typing/types.rs:285
Methodfmt
(&self, f: &mut Formatter)
trsc/src/typing/type_env.rs:39
Methodfmt
(&self, f: &mut Formatter)
trsc/src/parsing/term.rs:219
Methodforward
(self, x)
trsc/tests/output/gan.py:15
Methodforward
(self, x)
trsc/tests/output/gan.py:37
Methodforward
(self, x)
trsc/tests/output/xor.py:14
Methodforward
(self, x)
trsc/tests/output/mnist.py:19
Methodforward
(self, x)
misc/xor.py:14
Methodfresh_span
()
trsc/src/span.rs:17
Methodfrom
(_error: ::std::fmt::Error)
trsc/src/codegen/pytorch.rs:434
Methodfrom_str
(s: &str)
trsc_core_derive/src/parser.rs:14
Methodgen_fn_app
(&self, name: &str, args: &[TyFnAppArg])
trsc/src/core/conv.rs:124
Methodgen_fn_app
(&self, name: &str, _args: &[TyFnAppArg])
trsc/src/core/mod.rs:37
Methodgen_fn_app
(&self, name: &str, args: &[TyFnAppArg])
trsc/src/core/nonlin.rs:39
Methodgen_fn_app
(&self, name: &str, args: &[TyFnAppArg])
trsc/src/core/reg.rs:41
Functionget_op_name
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:30
Methodhash
(&self, state: &mut H)
trsc/src/typing/types.rs:67
Functionmain
()
trsc/src/main.rs:107
Methodnew
(c: ByteSpan)
trsc/src/span.rs:11
Methodnew
()
trsc/src/core/mod.rs:51
Methodnew
()
trsc/src/typing/type_env.rs:55
Methodnew
(emitter: Rc<RefCell<Emitter>>, tenv: Rc<RefCell<TypeEnv>>)
trsc/src/typing/annotate.rs:22
Methodnew
(emitter: Rc<RefCell<Emitter>>, tenv: Rc<RefCell<TypeEnv>>)
trsc/src/typing/unifier.rs:19
Methodnew
(emitter: Rc<RefCell<Emitter>>, tenv: Rc<RefCell<TypeEnv>>)
trsc/src/typing/constraint.rs:25
Methodnew
(code_map: CodeMap, print_ast: bool)
trsc/src/errors/emitter.rs:16
Methodnew
(emitter: Rc<RefCell<Emitter>>, cspan: CSpan)
trsc/src/parsing/ast_builder.rs:24
Methodnew
(tenv: Rc<RefCell<TypeEnv>>, ty: Type, name: &str, core: Rc<RefCell<Core>>)
trsc/src/codegen/pytorch.rs:43
Methodpytorch_name
(&self)
trsc/src/core/conv.rs:120
Methodpytorch_name
(&self)
trsc/src/core/lin.rs:91
Methodpytorch_name
(&self)
trsc/src/core/nonlin.rs:36
Methodpytorch_name
(&self)
trsc/src/core/prelude.rs:74
← previousnext →101–200 of 219, ranked by callers