COMPOSABLE C++Composable types 3. Objects and patterns 4. Composability at compile time 5. Hierarchies and computation ## COMPOSABLE? What does "composable" mean? Composable, reusable, extensible, flexible extension • run computations over hierarchies ## COMPUTATION AND TRAVERSAL When structures are flat, we're already good at separating computation and traversal. auto total_length(const vector& operation passed in). ## HIERARCHICAL COMPUTATION When structures are hierarchical, we're much less good at separating computation and traversal. Consider how to sum the lengths in a0 码力 | 124 页 | 8.28 MB | 1 年前3
Programming in Lean
Release 3.4.2Defining Functions 6 2.3 Defining New Types 8 2.4 Records and Structures 10 2.5 Mathematics and Computation 12 3 Basic Programming 15 3.1 Evaluating Expressions 15 3.2 Recursive Definitions 17 independent of any sort of ambient state of computation. There is no notion of storing a result in memory or changing the value of a global variable; computation is just evaluation of expressions. This paradigm be explicitly bounded, though, of course, we can consider the result of iterating an arbitrary computation n times for any given natural number n. Lean provides flexible mechanisms for structural and well-founded0 码力 | 51 页 | 220.07 KB | 2 年前3
Data Is All You Need for Fusionjpg) A Simple Computation $$ A=\alpha(x\times y^{\mathrm{T}})+\beta A $$ A Simple Computation \[\begin{aligned}A=\alpha(x\times y^{\mathrm{T}})+\beta A\\ \boxed{ ## A Simple Computation Scalar $$ A $$ ## A Simple Computation $$ A = \alpha(x \times y^\mathrm{T}) + \beta A $$ ## A Simple Computation $$ A = \alpha(x \times y^\mathrm{T}) + \beta A $$ ## A Simple Computation $$ \begin{align [Image](/uploads/documents/5/f/a/e/5faeee231a2711671514ff574648f1f0/p21_1.jpg) AArch64 ## A Simple Computation $$ A=\alpha(x\times y^{\mathrm{T}})+\beta A $$ #include, a Domain-Specific quantization-aware training for MoE expert weights and the indexer QK path to reduce memory and computation. Fifth, for the training framework, we extend the autograd framework with tensor-level checkpointing0 码力 | 58 页 | 4.27 MB | 1 月前3
Deciphering C++ Coroutinesto suspend a computation spanning multiple functions, we need to suspend them all one by one ☐ Stackless ☑ We can only suspend one function at a time If we want to suspend a computation spanning multiple outer_function(); int main() { Asyncr = outer_function(); // ... r.resume_computation(); Result result = r.get_result(); } Asyncouter_function(); int main() { Async Asyncr = outer_function(); // ... r.resume_computation(); Result result = r.get_result(); } 0 码力 | 156 页 | 1.79 MB | 1 年前3
PyTorch Tutorialtest new ideas • Automatically compute gradients • Run it all efficiently on GPU to speed up computation ## V arious Frameworks ## • Various Deep Learning Frameworks  ## • Preview of Numpy & PyTorch & Tensorflow ## Computation Graph  Numpy import includes a lot of loss functions. - It allows building networks whose structure is dependent on computation itself. - NLP: account for variable length sentences. Instead of padding the sentence to a fixed0 码力 | 38 页 | 4.09 MB | 2 年前3
Haskell 2010 Language Reportlanguage, all Haskell types include $ \perp $ . That is, a value of any type may be bound to a computation that, when demanded, results in an error. When evaluated, errors cause immediate program termination pattern is matched against the value, and if the match fails or diverges, so does the overall computation. 3. Matching the wildcard pattern _ against any value always succeeds, and no binding is done computed twice, once at each of two different overloadings. If the programmer does actually wish the computation to be repeated, an explicit type signature may be added: let { len :: Num a => a; len = genericLength0 码力 | 329 页 | 1.43 MB | 2 年前3
The Idris Tutorial Version 1.0.1sequence actions, feeding the output of one computation into the input of the next. IO is an abstract type, however, so we can't access the result of a computation directly. Instead, we sequence operations -> f b ## Monads and do-notation The Monad interface allows us to encapsulate binding and computation, and is the basis of do-notation introduced in Section “do” notation (page 13). It extends Applicative — matching intermediate values Very often, we need to match on the result of an intermediate computation. Idris provides a construct for this, the with rule, inspired by views in Epigram $ ^{1} $ , which0 码力 | 223 页 | 1.21 MB | 2 年前3
The Idris Tutorial Version 1.1.0sequence actions, feeding the output of one computation into the input of the next. IO is an abstract type, however, so we can't access the result of a computation directly. Instead, we sequence operations -> f b ## Monads and do-notation The Monad interface allows us to encapsulate binding and computation, and is the basis of do-notation introduced in Section “do” notation (page 13). It extends Applicative — matching intermediate values Very often, we need to match on the result of an intermediate computation. Idris provides a construct for this, the with rule, inspired by views in Epigram $ ^{1} $ , which0 码力 | 223 页 | 1.21 MB | 2 年前3
The Idris Tutorial Version 0.99.2sequence actions, feeding the output of one computation into the input of the next. IO is an abstract type, however, so we can't access the result of a computation directly. Instead, we sequence operations -> f b ## Monads and do-notation The Monad interface allows us to encapsulate binding and computation, and is the basis of do-notation introduced in Section "do" notation (page 13). It extends — matching intermediate values Very often, we need to match on the result of an intermediate computation. Idris provides a construct for this, the with rule, inspired by views in Epigram $ ^{1} $ , which0 码力 | 224 页 | 1.22 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
composabilitycomposable typescomputationreturn typeshierarchiesLean编程语言归纳构造演算单子输入输出函数定义矩阵乘法数据融合输入A输入B硬件DeepSeek-V4Compressed Sparse Attention (CSA)Heavily Compressed Attention (HCA)hybrid attentionMixture-of-Experts (MoE)C++ CoroutinesAsynchronous Control Flowsenders/receiversC++26Best PracticesPyTorchTensorsAutogradDatasetModelsHaskell 2010模块系统类型系统命名空间函数式编程Idris依赖类型副作用处理Effects库纯函数副作用矢量类型依赖类型系统交互式环境编译器运行时系统













