Jinja2 Documentation Release 2.10Jinja2 Documentation Release 2.10 November 08, 2017 Contents I Jinja2 Documentation 1 1 Introduction 3 2 API 7 3 Sandbox 39 4 Native Python Types 45 5 Template Designer Documentation 47 6 Extensions Changelog 125 i ii Part I JINJA2 DOCUMENTATION 1 2 CHAPTER 1 Introduction This is the documentation for the Jinja2 general purpose templating language. Jinja2 is a library for Python that is designed home with Jinja2. It’s both designer and developer friendly by sticking to Python’s principles and adding functionality useful for tem- plating environments. 1.1 Prerequisites Jinja2 works with Python0 码力 | 148 页 | 475.08 KB | 1 年前3
Hello 算法 1.0.0b2 Python版Hello 算法 Python 语言版 靳宇栋(Krahets) Release 1.0.0b2 2023‑03‑30 序 两年前,我在力扣上分享了《剑指 Offer》系列题解,受到了很多小伙伴的喜爱与支持。在此期间,我也回复 了许多读者的评论问题,遇到最多的问题是“如何入门学习算法”。我渐渐也对这个问题好奇了起来。 两眼一抹黑地刷题应该是最受欢迎的方式,简单粗暴且有效。然而,刷题就如同玩“扫雷”游戏,自学能力强 qualifier1024, Cathay‑Chen, Guanngxu, xBLACKICEx, what‑is‑me, L‑Super, Slone123c, mgisr, longranger2, xiongsp, WSL0809, Wonderdch, a16su, hpstory, JeffersonHuang, xjr7670, MolDuM, XC‑Zero, DullSword, 1.3. 小结 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2. 复杂度分析 12 2.1. 算法效率评估 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 码力 | 186 页 | 15.69 MB | 1 年前3
2_FPGA助力Python加速计算_陈志勇FPGA 助力 Python 加速计算 陈志勇 高级技术市场经理 安富利电子科技 2019年9月21日, 上海 2 Ø Python 语言:易学易读易用、可扩展性、可移植性等。 Ø Python 开发工具:库丰富、效率高、调试方便 Ø Python 的应用: 人工智能、数据分析等 Ø Python 的生态环境:软件平台、硬件平台、方案合作伙伴等 Ø 用 Python 如何开发嵌入式产品?如何实现 Engines High Speed Connectivity Video Codec 8K4K (15fps) 4K2K (60fps) High Speed Peripherals Key Interfaces Graphics Processor ARM Mali-400MP2 Memory Subsystem High Bandwidth Low Latency Ø 是一种从 C -> 借用硬件设计的思路 高层次综合工具 (Vivado HLS) 11 赛灵思 openCV 库:xFopencv - HW Accelerated OpenCV Functions Level 1 Level 2 Level 3 Absolute difference Channel combine Box Scale/Resize Histogram of Oriented Gradients (HOG)0 码力 | 33 页 | 8.99 MB | 1 年前3
2 使用Python训练和部署低精度模型 张校捷Int8 (TPU, tf.bfloat16) (tf.float32) (GPU, tf.float16) 低精度浮点数的优点 1.节约内存/显存的使用(FP16为原来的1/2,int8为原来的1/4) 2.特殊的硬件专门用于低精度浮点数的计算加速(TensorCore) Model Speedup BERT Q&A 3.3X speedup GNMT 1.7X speedup NCF speedup FP16浮点数(E5M10)的表示范围 FP16模型的训练方法 Int8模型的推断过程 2 TensorFlow的FP16模型 实数的16-bit半精度浮点数和8-bit定点数表示 使用低精度的意义 TensorCores适用条件 1. 卷积:K(输入通道),C(输出通道) 2. 通用矩阵乘法(GEMM):MxK,KxN,(M,N,K) FP16: 大小为8x Int8: 大小为16x layers.Conv2D(32, (3,3), 1, "same", dtype=tf.float16) ret_fp16 = conv1(input_fp16) ret = tf.cast(ret_fp16, dtype=tf.float32) s = tf.Session() s.run(tf.global_variables_initializer()) r1, r2 = s.run([ret0 码力 | 24 页 | 981.45 KB | 1 年前3
2 张孝峰 Python与云 AWS的Python原生应用浅析开始实现 1989/12 v0.9.0 1991/2 v1.0.0 1994/1 v2.0 2000/10 v2.5 2006/9 v2.6 2008/10 v3.0 2008/12 v2.7 2010/7 v3.7 2018/6 AWS发展时间线 2019/10 开始实现 1989/12 v0.9.0 1991/2 v1.0.0 1994/1 v2.0 2000/10 2008/12 v2.7 2010/7 v3.7 2018/6 贝索斯开始思考 微服务 2000 Amazon S3 2006/3 Amazon SQS 2006/7 Amazon EC2 2006/8 开始研发 2004 AWS Lambda 2014/11 2019/10 22个区域 165项服务 Python被称为“瑞士军刀” • Web开发 • AI / 机器学习 运行在AWS上 Source: Nucleus Research, November 2018 自由切换环境 - TensorFlow 切换到Python3上的TensorFlow和Keras 2 启动 iPython 终端 运行 TensorFlow 程序 已切换环境 自由切换环境 - PyTorch 具有 CUDA 10 和 MKL-DNN 的 Python 3 上的 PyTorch0 码力 | 42 页 | 8.12 MB | 1 年前3
PyConChina2022-北京-用Python给Kubernetes写个自定义控制器-张晋涛用 Python 给 Kubernetes 写个控制器 主讲人: 张晋涛 个人介绍 Apache APISIX PMC Kubernetes Ingress NGINX maintainer Microsoft MVP 『 K8S 生态周报』发起人和维护者 GitHub:tao12345666333 Mail: zhangjintao@apache.org Agenda Agenda Kubernetes 中请求处理流程 什么是准入控制器 用 Python 实现准入控制器 与其他方案对比 Kubernetes 架构 kube-apiserver Kubernetes 集群的核心组件 处理集群内外的所有请求 Kubernetes 请求处理流程 API Handler 匹配处理链路( /apis ) 认证 / 授权 Mutating 关操作的代码逻辑或者组件 (静态)准入控制器: Kubernetes 代码中携带,不可动 态调整的 动态准入控制器:利用 Kubernetes 提供的 MutatingAdmissionWebhook 和 ValidatingAdmissionWebhook 扩展点,由用户自行开发 的组件,接收 HTTP 回调。 为什么需要准入控制器 Kubernetes 中一系列复杂的校验 / 事务逻辑0 码力 | 17 页 | 1.76 MB | 1 年前3
Django 4.2.x Documentationdevelopment server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin How to use Django’s CSRF protection Using CSRF protection with AJAX Using CSRF protection in Jinja2 templates Using the decorator method Handling rejected requests Using CSRF protection with caching Testing place to start! From scratch: Overview | Installation Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5:0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 2.2.x Documentationdevelopment server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin place to start! From scratch: Overview | Installation Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5: glance Quick install guide Writing your first Django app, part 1 Writing your first Django app, part 2 Writing your first Django app, part 3 Writing your first Django app, part 4 Writing your first Django0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 4.1.x Documentationdevelopment server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin How to use Django’s CSRF protection Using CSRF protection with AJAX Using CSRF protection in Jinja2 templates Using the decorator method Handling rejected requests Using CSRF protection with caching place to start! From scratch: Overview | Installation Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5:0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x Documentationdevelopment server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup Creating models Activating models Playing with the API Introducing the Django Admin place to start! From scratch: Overview | Installation Tutorial: Part 1: Requests and responses | Part 2: Models and the admin site | Part 3: Views and templates | Part 4: Forms and generic views | Part 5: glance Quick install guide Writing your first Django app, part 1 Writing your first Django app, part 2 Writing your first Django app, part 3 Writing your first Django app, part 4 Writing your first Django0 码力 | 3184 页 | 3.14 MB | 1 年前3
共 603 条
- 1
- 2
- 3
- 4
- 5
- 6
- 61













