Best practices for building Kubernetes Operators
Best practices for building Kubernetes Operators Patryk WasielewskiAbout me ● DevOps Consultant at Amazon Web Services (AWS) ● 6 years professional experience as DevOps / SRE / Developer ● Cloud-native playerAgenda ● Controllers, Operators? What are Those? ● Validation & Defaulting ● Finalizers ● Local Clusters and testing units ● Loose thoughts? ● Useful linksControllers, Operators? What are those?CRDsCRDs was introduced in 2016 by the CoreOS ● Operators are software extensions that use custom resources to manage applications and their components ● Using Operators enables us to view an application as a0 码力 | 36 页 | 2.19 MB | 5 月前3LITERALS SAFELY for Types that Behave as though Built-in - Pablo Halpern - CppCon 2021
Safely Until They Die – Alisdair Meredith & Nina Ranns, Thursday 10:30am ■ Embracing `noexcept` Operators and Specifiers Safely – John Lakos, Thursday 3:15pm 10/26/21 Pablo Halpern, 2021 (CC BY 4.0) aren't UDLs just syntactic sugar? ■ You betcha! ■ So is operator overloading. ■ So are infix operators in general! – a+b is just syntactic sugar for plus(a, b) ■ Syntactic sugar is about readability; 17Namespaces for literals ■ UDL operators are looked up using ordinary name lookup, no namespace qualifiers allowed. ■ To avoid collisions between similar UDL suffixes, UDL operators are usually put in their0 码力 | 66 页 | 1.47 MB | 5 月前3GraphBLAS: Building a C++ Matrix API for Graph Algorithms
function for each scalar type - GraphBLAS supports a wide variety of scalar types and binary operators - Combinatorial explosion 47 float* a_ptr = get_matrix(...); cblas_sgemm(..., m, n, k, 1.0f, function for each scalar type - GraphBLAS supports a wide variety of scalar types and binary operators - Combinatorial explosion[DISTRIBUTION STATEMENT A] This material has been approved for public function for each scalar type - GraphBLAS supports a wide variety of scalar types and binary operators - Combinatorial explosion[DISTRIBUTION STATEMENT A] This material has been approved for public0 码力 | 172 页 | 7.40 MB | 5 月前3julia 1.10.10
Operations and Elementary Functions 26 5.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.2 Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.3 Bitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.5 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.6 Numeric Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1692 页 | 6.34 MB | 3 月前3Julia 1.10.9
Operations and Elementary Functions 26 5.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 5.2 Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.3 Bitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 5.5 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.6 Numeric Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1692 页 | 6.34 MB | 3 月前3TVM Meetup: Quantization
Dialect • Design • Operators • Results on Intel Cascade Lake© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Quantized Operators in Framework • New operators like TF quantized_conv2d quantized_conv2d • Underlying calculations are different than FP32 conv2d • Sometimes operators are aggressively fused • TFLite fuses quantized_conv2d, bias, relu and requantize 𝑟𝑒𝑎𝑙_𝑣𝑎𝑙𝑢𝑒 = 𝒔𝒄𝒂𝒍𝒆 Web Services, Inc. or its Affiliates. All rights reserved. How to Support Framework Quantized Operators? Option 1 – Completely add new ops from scratch • New Relay passes and TVM schedules required0 码力 | 19 页 | 489.50 KB | 5 月前3Julia 1.11.4
Operations and Elementary Functions 30 6.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.2 Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.3 Bitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6.5 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 6.6 Numeric Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.5 Documentation
Operations and Elementary Functions 30 6.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.2 Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.3 Bitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6.5 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 6.6 Numeric Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2007 页 | 6.73 MB | 3 月前3Julia 1.11.6 Release Notes
Operations and Elementary Functions 30 6.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.2 Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.3 Bitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.4 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6.5 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 6.6 Numeric Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2007 页 | 6.73 MB | 3 月前3julia 1.13.0 DEV
Operations and Elementary Functions 30 6.1 Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 6.2 Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6.4 Bitwise Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 6.5 Updating operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 6.6 Vectorized "dot" operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 6.7 Numeric Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 2058 页 | 7.45 MB | 3 月前3
共 151 条
- 1
- 2
- 3
- 4
- 5
- 6
- 16