当前位置:网站首页>Tensorflow new document publishing: add CLP, dtensor The most advanced model is ready!
Tensorflow new document publishing: add CLP, dtensor The most advanced model is ready!
2022-06-09 10:35:00 【CSDN information】

Arrangement | Phoebe Coordinating editor | Du min
Produce | CSDN(ID:CSDNnews)
In recent days, ,TensorFlow Many exciting new documents have been posted on the official website , Include model repair 、 Model parallelism and TensorFlow Lite(https://www.tensorflow.org/lite) and TensorFlow Model Garden(https://github.com/tensorflow/models) Update . Let's see what new things you can harvest !

Model repair : Counterfactual Logit pairing (CLP)
TensorFlow The AI team of has added a new model repair technology , As part of its model repair Library .TensorFlow The model repair library provides training techniques to intervene in the model , Such as changing the model itself by introducing or changing the model objectives . The first model repair technology initially introduced :MinDiff, It minimizes performance differences between two slices . And this new technology is counterfactual Logit pairing (CLP,Counterfactual Logit Pairing). This technique ensures that when sensitive attributes referenced in an example are deleted or replaced , The prediction of the model will not change . for example , In a toxicity classifier , Such as " I am a man " and " I am a lesbian " Such examples should be equal , Will not be classified as toxic .
Basic tutorial :https://www.tensorflow.org/responsible_ai/model_remediation/counterfactual/guide/counterfactual_usage_steps
Keras course :https://www.tensorflow.org/responsible_ai/model_remediation/counterfactual/guide/counterfactual_keras
API Reference resources :https://www.tensorflow.org/responsible_ai/model_remediation/api_docs/python/model_remediation/counterfactual

Model parallel :DTensor
DTensor Provides a global programming model , Allows developers to manipulate tensors on a global scale , Manage the distribution across devices at the same time .DTensor Through a named “ Single program multiple data ”(SPMD) Extended programs , Distribute the program and tensioner according to the slice instruction .
By decoupling the entire application from the sharding instructions ,DTensor Can be on a single device 、 Multiple devices 、 Even running the same application on multiple clients , While preserving its global semantics . If you remember TensorFlow1.0 Medium Mesh TensorFlow,DTensor Can solve Mesh Can solve the same problem : The training model may be larger than the single core .
TensorFlow 2.9 Will always be built at night DTensor stay tensorflow.org Go public . Even though DTensor It's experimental , But you are welcome to try .
DTensor guide :https://www.tensorflow.org/guide/dtensor_overview
DTensor Keras course :https://www.tensorflow.org/tutorials/distribute/dtensor_keras_tutorial
API Reference resources :https://www.tensorflow.org/api_docs/python/tf/keras/dtensor

TensorFlow Lite New functions
TensorFlow Lite The website has made some major changes , Including getting started documentation .
Build the way for developers to grow
First ,TensorFlow Now press platform (Android,iOS And other equipment ) To provide a learning guide for developers , It makes it easier for developers to run on the corresponding devices TensorFlow Model .TensorFlow Not only for Android Users have added new learning roadmap and quick start guide , Earlier ,Google Play In service TensorFlow Lite The new beta version of has also added a guide . These quick start guides include Kotlin and Java Examples in , And the example code is upgraded to CameraX.
Model maker
TensorFlow Lite Model Maker The library simplifies training with custom datasets TensorFlow Lite The process of modeling . It uses transfer learning to reduce the amount of training data required and reduce training time , Seven common tasks are preset , Including image classification , Object detection and text search .
TensorFlow Added a new tutorial for text search (https://www.tensorflow.org/lite/models/modify/model_maker/text_searcher). This type of model allows you to accept a text query , And search the most relevant items in the text data set , Such as web database . On mobile devices , You can use it for automatic reply or semantic file search .
Besides ,TensorFlow Also released a complete Python Library reference (https://www.tensorflow.org/lite/api_docs/python/tflite_model_maker).
TensorFlow Lite Model page
Finding the right model for use cases can sometimes be maddening .TensorFlow Write more about how to choose the right model for your task (https://www.tensorflow.org/lite/models), And the factors that need to be considered in making this decision . You can also find model links to common use cases here .

TensorFlow Model Garden: State of the art models are ready
TensorFlow Model Garden(https://www.tensorflow.org/guide/model_garden) For visual and naturallanguageprocessing (NLP) Provides many of the most advanced machine learning (ML) Model implementation , And workflow tools , Allows you to quickly configure and run these models on standard datasets .Model Garden Covers both visual and textual tasks , And one called Orbit Flexible training cycle library . The model is equipped with pre built configuration to train to the most advanced level , And many useful specialized operations .
TensorFlow Will start recording your use of Model Garden All kinds of great undertakings , The first stop from this should be to understand Model Garden Overview of 、 The list of available models and the image classification tutorial begin .
Model Garden Overview of :https://www.tensorflow.org/guide/model_garden
List of available models :https://github.com/tensorflow/models/tree/master/official
Image classification tutorial :https://www.tensorflow.org/tutorials/images/classification_with_model_garden

Other exciting new changes
Besides , Google and CSIRO cooperation , utilize TensorFlow The code base will strengthen the monitoring of harmful species on the Great Barrier Reef . adopt Kaggle competition , Machine learning developer collaboration training ML Model , To identify outbreaks of spiny crown starfish that degrade coral reef ecosystems . To protect the offspring of the Great Barrier Reef .
Another new change is about TensorFlow Compressed new tutorial (https://www.tensorflow.org/tutorials/generative/data_compression), It uses neural networks for lossy compression . This example uses something like an automatic encoder to compress and decompress MNIST.

Picture source TensorFlow Official website
In the above update , What surprises you ? Welcome to communicate with you ~
Reference material :https://blog.tensorflow.org/2022/06/new-documentation-on-tensorfloworg.html
— Recommended reading —
《 New programmers 001-004》 Fully listed
Welcome to scan the QR code below or click to subscribe now
You can enjoy e-books and exquisite paper books .
* Students of Turing class of Peking University won the first place in the global undergraduate competition , Tackling key problems EDA“ thetime ” Technical problems !
* Musk desire “ let go ”, Termination of acquisition Twitter
*M2 The chip came out in a big way ,iOS 16 Ruqierzhi ! Apple this year WWDC22 Haven't you seen it yet ?One key, three links 「 Share 」「 give the thumbs-up 」「 Looking at 」
100 million technical people
边栏推荐
- 随时随地可访问的 IT 资源构成
- 106. construct binary tree from middle order and post order traversal sequence
- Iscc2022 challenge arena Misc
- 华泰证券是安全的吗
- Query permission information from database
- 关于在线帮助中心你需要思考以下几个问题
- fabric-ca介紹,安裝,使用
- InfoQ geek media's 15th anniversary solicitation 𞓜 migration of Eureka to Nacos: dual registration and dual subscription model
- 当你孤独,抑郁,焦虑的时候......请记得,还有风雨
- go-zero 微服务实战系列(二、服务拆分)
猜你喜欢
![[optics] double slit interference with GUI Based on MATLAB simulation light](/img/9a/0c33e71111b878e48ef3a1cc77ab3c.png)
[optics] double slit interference with GUI Based on MATLAB simulation light

leetcode.36 --- 有效的数独
![[genius_platform software platform development] lesson 36: definition of maximum value macro of built-in data type](/img/f1/ca57934507bb0758b8bb0a52606a10.jpg)
[genius_platform software platform development] lesson 36: definition of maximum value macro of built-in data type

叁拾捌- JS 在 Canvas 上尝试分形图形 (二) 尝试造山画山 以及 角度几何基础

叁拾柒- JS 在 Canvas 上尝试分形图形 (一) 画了一个普通箱子图

不加班的测试开发工程师不是好程序员?可能不是一只笨鸟,但一直在先飞......

leetcode. 36 --- effective Sudoku

Some instructions in dict intersect with the difference sum in set, and increase or decrease elements

【PHP】代码复用特殊类Trait的简要说明和相关举例

dict中的部分指令与set中的差和交集与增减元素
随机推荐
刷脸认证如何实现人脸又快又准完成校验?
1324. print word vertically - Li Kou Shuangbai code
Blazor University (27)路由 —— 检测导航事件
【PHP】代码复用特殊类Trait的简要说明和相关举例
Après une perte de 300 millions de dollars, IBM a annoncé sa sortie de Russie!
基于配置的权限控制
关于在线帮助中心你需要思考以下几个问题
投稿开奖丨轻量应用服务器征文活动(4月)奖励公布
go strconv包
今日停更
Webassembly 2022 survey coming
Cyclic neural network theory -- [torch learning notes]
Terrain learning summary (6) -- terrain practice based on Alibaba cloud platform
【水果识别】基于形态学实现水果识别含Matlab源码
CSRF Cross Station Request Forgery
程序员高考卷曝光,你能得多少分?
Custom permission verification method
16. sum of the nearest three numbers - quick sort plus double pointer method
Authentication successful processor
Interaction between C language and Lua (practice 2)