您好,欢迎光临本网站![请登录][注册会员]  
文件名称: TensorFlow Graph Optimizations.pdf
  所属分类: 机器学习
  开发工具:
  文件大小: 1mb
  下载次数: 0
  上传时间: 2019-07-06
  提 供 者: cheng*****
 详细说明:详细地阐述了TensorFlow上执行图优化算法,对于深入了解TensorFlow框架很有意义,为各种DAG执行引擎的设计提供技术指导!Open, standard software for general machine learning TTensorFlow Great for Deep Learning in particular http://tensorflow.org/ First released Nov 2015 and Apache 2.0 license https://github.com/tensorflow/tensorflow Powers many Google products TensorFlow Graph concepts TensorFlow(v1.x) programs generate a Data Flow(directed, multi-) Grapl o Device independent intermediate program representation o TensorFlow v2x uses a mix of imperative(Eager) execution mode and graphs Functions Graph nodes represent operations "Ops"(Add, MatMul, Conv2D,. Abstract device-, execution backend, and language independent AP o Implemented by Op Kernels written in C++, specialized on Graph edges represent data" flowing between ops o Tensors (ref-counted, n-dimensional array buffers in device memory o Control dependencies: A->B means A must finish before B can run o Resource handles to state(e.g. variables, input data pipelines Goog e Graph example: The Inception Architecture(2014) 国了围 量量量 圄冒圄 晋福 Going Deeper with Convolutions Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru erhan vincent vanhoucke Andrew rabinovich Goog e Arxⅳv2014,cVPR2015 Output probabilities Graph example: The Transformer Softmax Add& norm Feed Forward Add norm Concat Add Norm Multi-Head Feed Attention Forward Scaled Dot-Product Attention h Add Norm Add norm Linear Linear Linear Masked Multi-Head Multi-Head Attention Attention K Q Positional Positional Encoding Encoding Attention Is All You Need (arXiv 2017) Output Embedding Embedding Ashish vaswani. noam shazeer Niki Parmar. Jakob uts Outputs Uszkoreit Llion Jones. Aidan n gomez. lukasz Kaiser (shifted right) Illia polosukhin Grappler Goog gle Grappler: Grappling with TF Graphs Grappler: Default graph optimization system in the TF runtime Re-writes graphs to improve out-of-the-box Tensor Flow performance o Provides a plugin infrastructure to register custom optimizers/rewriters Main goals o Automatically improve TF performance through graph simplifications high-level optimizations that benefit most target HW architectures (CPU/GPU/TPU/mobile etc.) Reduce device peak memory usage to enable larger models to run o Improve hardware utilization by optimizing the mapping of graph nodes to compute resources Provides cost models to drive optimization and help diagnose model performance Goog e Grappler: TensorFlow Context Python Swift Java C++ Grappler Graph XLA Compiler HLO TOCO TensorFlow. js TE runtime LLO LLVM IR executor FLIte TPU GPU/CPU Mobile Javascript GPU/CPU Goog e Embedded WebGl Why transformations at the graph level? Pros: Many optimizations can be easier to discover and express as high-level graph transformations Example: Matmul(Transpose( x), y)=> Matmul(x,y, transpose x=True) Graph is backend independent (tF runtime, XLA, TensorRT, TensorFlow js o Interoperable with Tensor Flow supported languages(protocol buffer format o Optimizations can be applied at runtime or offline using our standalone tool o Lots of existing models(TF Hub, Google production models) available for learning o Pragmatic: Helps the most existing Tensor Flow users get better "out-of-the-box"performance Cons: o Rewrites can be tricky to implement correctly, because of loosely defined graph semantics In-place ops, side-effects, control flow, control dependencies Protocol buffer dependence increases binary size o Currently requires extra graph format conversions in TF runtime Goog e
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: tensorflow图优化
 输入关键字,在本站1000多万海量源码库中尽情搜索: