Jinja2 Documentation Release 2.10
Jinja2 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 年前3Hello 算法 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 年前32_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 年前32 使用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 年前32 张孝峰 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 年前3Python AdminUI
FastAPI instead of Flask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 创建表单 7 2.1 List of Form Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ii Python AdminUI 使用 Python 制作专业的 Web 前端界面 本 Python 包适用于想要制作简单的前端界面,但却不想处理 HTML, CSS, React, Angular, Webpack 和其 他 Javascript 前端代码的情况。你可以直接用 Python 完成网页、表单、图标和仪表盘界面。 一些应用场景:数据项目;运维工具和脚本;简单 IT 系统和 轻松制作表单和详情页 • 折线图和条状图 • 多级菜单 • 带有分页的数据表 • 适配小屏幕和移动设备 • 不需要使用 HTML, CSS 或者 JS 目录 1 Python AdminUI 2 目录 CHAPTER 1 安装和快速入门 使用 pip 安装包: pip install adminui 为您的项目创建一个 python 文件,例如 example.py: from adminui0 码力 | 67 页 | 653.37 KB | 1 年前3Flask Documentation (1.1.x)
Big . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167 2 API Reference 169 2.1 API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Jinja documentation • Werkzeug documentation CONTENTS 1 Flask Documentation (1.1.x), Release 1.1.4 2 CONTENTS CHAPTER ONE USER’S GUIDE This part of the documentation, which is mostly prose, begins scripting (XSS). Unless you delib- erately mark insecure HTML as secure, Flask and the underlying Jinja2 template engine have you covered. But there are many more ways to cause security problems. The documentation0 码力 | 291 页 | 1.25 MB | 1 年前3Flask Documentation (1.1.x)
scripting (XSS). Unless you deliberately mark insecure HTML as secure, Flask and the underlying Jinja2 template engine have you covered. But there are many more ways to cause security problems. The documentation using a modern version of Python, you can continue on to the next section. If you’re using Python 2, see Install virtualenv first. Create an environment Create a project folder and a venv folder within: venv venv If you needed to install virtualenv because you are using Python 2, use the following command instead: $ python2 -m virtualenv venv On Windows: > \Python27\Scripts\virtualenv.exe venv Activate0 码力 | 428 页 | 895.98 KB | 1 年前3Django 1.11.x Documentation
. . . . . . . . . . . . . . . . . . . . . 2 1.4 The model layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.5 The view layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.6 The template layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.7 Forms . . . . . . . . . . . . . . . . Django open-source project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2 Getting started 7 2.1 Django at a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 1878 页 | 6.40 MB | 1 年前3Django 1.11.x Documentation
development 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 when removing model fields Data Migrations Squashing migrations Serializing values Supporting Python 2 and 3 Supporting multiple Django versions Managing files Using files in models The File object File 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 码力 | 2747 页 | 2.67 MB | 1 年前3
共 602 条
- 1
- 2
- 3
- 4
- 5
- 6
- 61