Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0b01/tensorscript
/ functions
Functions
219 in github.com/0b01/tensorscript
⨍
Functions
219
◇
Types & classes
73
↓ 1 callers
Method
build_int_lit
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:546
↓ 1 callers
Method
build_node_decl
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:466
↓ 1 callers
Method
build_pipes
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:379
↓ 1 callers
Method
build_stmt
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:177
↓ 1 callers
Method
build_stmts
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:231
↓ 1 callers
Method
build_tuple
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:101
↓ 1 callers
Method
build_use_stmt
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:576
↓ 1 callers
Method
build_view_fn
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:267
↓ 1 callers
Method
build_weights_assign
(&self, body: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:333
↓ 1 callers
Method
build_weights_decl
(&self, pair: Pair<Rule>)
trsc/src/parsing/ast_builder.rs:311
↓ 1 callers
Method
collect_decl
(&mut self, decl: &TyDecl)
trsc/src/typing/constraint.rs:83
↓ 1 callers
Method
collect_decl
(&mut self, decl: &TyDecl)
trsc/src/codegen/pytorch.rs:402
↓ 1 callers
Method
collect_fn_app
(&mut self, fn_app: &TyFnApp, var_name: Option<String>, is_stmt: bool)
trsc/src/codegen/pytorch.rs:224
↓ 1 callers
Method
collect_fn_decl
(&mut self, decl: &TyFnDecl)
trsc/src/typing/constraint.rs:118
↓ 1 callers
Method
collect_graph_decl
(&mut self, decl: &TyGraphDecl)
trsc/src/typing/constraint.rs:95
↓ 1 callers
Method
collect_node_decl
(&mut self, decl: &TyNodeDecl)
trsc/src/typing/constraint.rs:133
↓ 1 callers
Method
collect_use_stmt
(&mut self, _decl: &TyUseStmt)
trsc/src/typing/constraint.rs:170
↓ 1 callers
Method
collect_weights_assign
(&mut self, w_a: &TyWeightsAssign)
trsc/src/typing/constraint.rs:174
↓ 1 callers
Method
collect_weights_decl
(&mut self, decl: &TyWeightsDecl)
trsc/src/typing/constraint.rs:149
↓ 1 callers
Method
compose
(&mut self, mut other: Substitution)
trsc/src/typing/unifier.rs:239
↓ 1 callers
Method
example
(self, x)
trsc/tests/output/mnist.py:32
↓ 1 callers
Function
gen_decl
(fn_decl: &FnDecl)
trsc_core_derive/src/lib.rs:78
↓ 1 callers
Function
gen_ty_sigs
(decls: &[FnDecl])
trsc_core_derive/src/lib.rs:69
↓ 1 callers
Method
generate_class_head
(&mut self)
trsc/src/codegen/pytorch.rs:267
↓ 1 callers
Method
generate_fn_decl
(&mut self, func: &TyFnDecl)
trsc/src/codegen/pytorch.rs:276
↓ 1 callers
Method
generate_imports
(&mut self)
trsc/src/codegen/pytorch.rs:373
↓ 1 callers
Method
generate_init_fn
(&mut self, init_fn: &TyFnDecl)
trsc/src/codegen/pytorch.rs:301
↓ 1 callers
Method
generate_modules
(&mut self)
trsc/src/codegen/pytorch.rs:364
↓ 1 callers
Function
get_fn_decls
(path: &str, ty_sigs: &BTreeMap<&str, String>)
trsc_core_derive/src/lib.rs:60
↓ 1 callers
Function
get_fns
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:15
↓ 1 callers
Function
get_is_stateful
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:4
↓ 1 callers
Function
get_matches
()
trsc/src/main.rs:89
↓ 1 callers
Function
get_path
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:34
↓ 1 callers
Function
impl_op
(ast: &syn::DeriveInput)
trsc_core_derive/src/lib.rs:30
↓ 1 callers
Method
import
(&self, path_name: &str, mod_name: &str, tenv: &mut TypeEnv)
trsc/src/core/mod.rs:79
↓ 1 callers
Method
import_prelude
(&mut self)
trsc/src/typing/type_env.rs:415
↓ 1 callers
Function
lex
(decl: &str)
trsc_core_derive/src/parser.rs:129
↓ 1 callers
Function
occurs
(tvar: TypeId, ty: &Type)
trsc/src/typing/unifier.rs:202
↓ 1 callers
Function
parse_decl
(path: &str, name: &str, decl: &str)
trsc_core_derive/src/parser.rs:61
↓ 1 callers
Method
parse_str
(&self, source: &str)
trsc/src/parsing/ast_builder.rs:31
↓ 1 callers
Method
replace_type
replace an alias in scope
trsc/src/typing/type_env.rs:238
↓ 1 callers
Method
resolve
output same shape as input
trsc/src/core/lin.rs:18
↓ 1 callers
Method
resolve_init
(&self, mod_name: &ModName, alias: &str)
trsc/src/typing/type_env.rs:147
↓ 1 callers
Method
resolve_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 callers
Method
set_fns
(&mut self, fns: &Vec<TyFnDecl>)
trsc/src/codegen/pytorch.rs:71
↓ 1 callers
Method
set_inits
(&mut self, inits: &Vec<TyWeightsAssign>)
trsc/src/codegen/pytorch.rs:99
↓ 1 callers
Function
subs_decl
(decl: &TyDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:47
↓ 1 callers
Function
subs_fn_app
(fn_app: &typed_term::TyFnApp, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:104
↓ 1 callers
Function
subs_fn_decl
(decl: &TyFnDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:67
↓ 1 callers
Function
subs_graph_decl
(decl: &TyGraphDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:58
↓ 1 callers
Function
subs_node_decl
(decl: &TyNodeDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:75
↓ 1 callers
Function
subs_use_stmt
(decl: &TyUseStmt, _tenv: &mut Substitution)
trsc/src/typing/inferred_ast.rs:93
↓ 1 callers
Function
subs_weights_assign
(w_a: &TyWeightsAssign, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:97
↓ 1 callers
Function
subs_weights_decl
(decl: &TyWeightsDecl, s: &mut Substitution)
trsc/src/typing/inferred_ast.rs:83
↓ 1 callers
Function
substitute_tvar
replace tvar with replacement in ty
trsc/src/typing/unifier.rs:255
↓ 1 callers
Method
unify_one
(&mut self, eq: Equals)
trsc/src/typing/unifier.rs:40
↓ 1 callers
Method
upsert_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
Method
as_float
(&self)
trsc/src/typing/typed_term.rs:32
Method
as_num
(&self)
trsc/src/typing/typed_term.rs:40
Method
as_str
(&self)
trsc/src/typing/typed_term.rs:85
Method
body
(self, i, _)
misc/tf_fizzbuzz.py:27
Function
derive
(input: TokenStream)
trsc_core_derive/src/lib.rs:16
Method
empty
()
trsc/src/typing/unifier.rs:249
Method
eq
(&self, other: &Type)
trsc/src/typing/types.rs:32
Method
fmt
(&self, f: &mut Formatter)
trsc/src/typing/types.rs:285
Method
fmt
(&self, f: &mut Formatter)
trsc/src/typing/type_env.rs:39
Method
fmt
(&self, f: &mut Formatter)
trsc/src/parsing/term.rs:219
Method
forward
(self, x)
trsc/tests/output/gan.py:15
Method
forward
(self, x)
trsc/tests/output/gan.py:37
Method
forward
(self, x)
trsc/tests/output/xor.py:14
Method
forward
(self, x)
trsc/tests/output/mnist.py:19
Method
forward
(self, x)
misc/xor.py:14
Method
fresh_span
()
trsc/src/span.rs:17
Method
from
(_error: ::std::fmt::Error)
trsc/src/codegen/pytorch.rs:434
Method
from_str
(s: &str)
trsc_core_derive/src/parser.rs:14
Method
gen_fn_app
(&self, name: &str, args: &[TyFnAppArg])
trsc/src/core/conv.rs:124
Method
gen_fn_app
(&self, name: &str, _args: &[TyFnAppArg])
trsc/src/core/mod.rs:37
Method
gen_fn_app
(&self, name: &str, args: &[TyFnAppArg])
trsc/src/core/nonlin.rs:39
Method
gen_fn_app
(&self, name: &str, args: &[TyFnAppArg])
trsc/src/core/reg.rs:41
Function
get_op_name
(attrs: &[syn::Attribute])
trsc_core_derive/src/attrs.rs:30
Method
hash
(&self, state: &mut H)
trsc/src/typing/types.rs:67
Function
main
()
trsc/src/main.rs:107
Method
new
(c: ByteSpan)
trsc/src/span.rs:11
Method
new
()
trsc/src/core/mod.rs:51
Method
new
()
trsc/src/typing/type_env.rs:55
Method
new
(emitter: Rc<RefCell<Emitter>>, tenv: Rc<RefCell<TypeEnv>>)
trsc/src/typing/annotate.rs:22
Method
new
(emitter: Rc<RefCell<Emitter>>, tenv: Rc<RefCell<TypeEnv>>)
trsc/src/typing/unifier.rs:19
Method
new
(emitter: Rc<RefCell<Emitter>>, tenv: Rc<RefCell<TypeEnv>>)
trsc/src/typing/constraint.rs:25
Method
new
(code_map: CodeMap, print_ast: bool)
trsc/src/errors/emitter.rs:16
Method
new
(emitter: Rc<RefCell<Emitter>>, cspan: CSpan)
trsc/src/parsing/ast_builder.rs:24
Method
new
(tenv: Rc<RefCell<TypeEnv>>, ty: Type, name: &str, core: Rc<RefCell<Core>>)
trsc/src/codegen/pytorch.rs:43
Method
pytorch_name
(&self)
trsc/src/core/conv.rs:120
Method
pytorch_name
(&self)
trsc/src/core/lin.rs:91
Method
pytorch_name
(&self)
trsc/src/core/nonlin.rs:36
Method
pytorch_name
(&self)
trsc/src/core/prelude.rs:74
← previous
next →
101–200 of 219, ranked by callers