A dynamically loadable XLA plugin proposal Avijit Chakraborty, Intel

Motivation • XLA backends must currently be built with TensorFlow • Steep learning curve • Upstreaming plugins developed by various contributors may take up significant resources from core TensorFlow team • Changes in the “plugin” code (though unrelated to TensorFlow code) need to up upstreamed

• We have made minimal modifications to XLA to • Load XLA backends at runtime • Co-exists with traditional statically linked plugin backends

A dynamically loaded XLA Backend • Just a normal dynamic shared object library, loaded at run time (using dlopen) • The plugin is written using c++ and located outside of TensorFlow source tree • Depends on include files from TF installation (i.e., from Python site packages/tensorflow/include) • Links with libtensorflow_framework.so

• The plugin is placed in a well known location

• For example TF installation/plugins directory • May have an optional configuration file (co-located)

• This idea is very similar to TensorFlow “Adding a New Op”

TensorFlow changes • TensorFlow will have a plugin “adapter” that will connect with one or more plugin DSO libraries • The adapter will be initialized statically and will discover the plugin(s) • Load the plugin (.so), configure it, and query necessary data • If successful, register the plugin device with various TF registries • Platform, Compiler, Transfer Manager, Device • Connect the corresponding implementation components from the plugin DSO

• At run time, user scripts requests computation placement on this plugin device • Will follow the usual TensorFlow computation placement and execution

TensorFlow code changes • Need to modify the BUILD scripts

• Add additional header files (xla) to be included with the usual “include” target • Add additional library objects to the libtensorflow_framework.so • Add the additional directories to be packaged with Python wheel

• Need to implement the plugin “adapter” code • Compiler/plugin/ • Code is modeled from the existing XLA plugin code

• Some refactoring to separate out the static registration parts and functional parts

• Timeframe

• We already have written the code to test out this concept. Can submit the code for PR very soon – in the next few days. • Have included an example plugin that uses the HloEvaluator to run simple computations

A dynamically loadable XLA plugin proposal -

For example TF installation/plugins directory. • May have an optional configuration file (co-located). • This idea is very similar to TensorFlow “Adding a New Op” ...

211KB Sizes 2 Downloads 147 Views

Recommend Documents

SASE-Submitting-a-Proposal
Log into your account at sase.org – green button “sign in” in the top right-hand corner of the homepage: ... Once you are logged in, you will see the green button “submit a paper” in the top right-hand corner of any page on the ... Conferen

Creating a Modern PhoneGap Plugin - GitHub
Social Plugins: Email, X SocialSharing. Audio Plugins: DBMeter, Native Audio, Media Picker. Misc: Barcode Scanner, In App Purchase, Google Maps, Vuforia (AR), Microsoft ACE. (native controls), Tesseract (OCR, iOS). Photo by skeeze (https://pixabay.co

A Modest Proposal
already devoured most of the parents, seem to have the best title to the children. ... generally tough and lean, like that of our school-boys, by continual exercise, and ... work, and consequently pine away from want of nourishment, to a degree, that

A Modest Proposal
well of the public, as to have his statue set up for a preserver of the nation. .... as fast as can be reasonably expected. And as to the young .... rent without money or trade, the want of common sustenance, with neither house nor clothes to cover.

a project proposal
of a Bachelor of Science (B.Sc Hons) degree in Computer Science and Engineering,. Obafemi Awolowo ... 4.4.2 The probability of dropping packet. 48 .... Over the past few years, researchers have come out with several congestion avoidance.

A Research Proposal -
To determine how advertisement exposure response functions differ between established brands and market newcomers. Submitted To. Prof Sanjeev Verma.

openWeather plugin for openLuup - GitHub
Nov 14, 2016 - Install from the AltUI App Store the “openWeather” app. 2. Select the “Variables” tab of the newly created “openWeather” device and edit the.

pdf chrome plugin
Sign in. Loading… Whoops! There was a problem loading more pages. Retrying... Whoops! There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf chrome plugin. p

plugin win photo.pdf
Win 2 free developer licenses for elegant themes 39 new social share. Win a pro subscription to seo squirrly, wordpress seo plugin /. seoandy. Minecraft plugin ...

jquery pdf plugin
Jquery pdf plugin. Page 1 of 1. jquery pdf plugin. jquery pdf plugin. Open. Extract. Open with. Sign In. Main menu. Displaying jquery pdf plugin. Page 1 of 1.

2001 QR322: a dynamically unstable Neptune Trojan? - arXiv
2 show a highly simplified illustration of the stability of the .... negligible effect on its dynamical evolution, a result supported by previous studies ... to those of objects within the classical Edgeworth-Kuiper belt (dynamically cold orbits with

Search game for a moving target with dynamically generated ... - Irisa
Jul 16, 2009 - agement and data fusion issues[6]. .... practice, we will take R = R(4) or R = R(A,$). As- .... but the conditionaI marginals are sufficient in practice.

DarkSkyWeather plugin for openLuup - GitHub
Nov 26, 2016 - A valid API developer key from DarkSky (please check their website for terms and ... Install from the AltUI App Store the “DarkSkyWeather” app ... This program is free software: you can redistribute it and/or modify it under the ..

SEO Plugin Wordpress.pdf
new​ ​WordPress​ ​site​ ​into​ ​a​ ​powerful​ ​membership​ ​site. Page 3 of 7. SEO Plugin Wordpress.pdf. SEO Plugin Wordpress.pdf. Open. Extract.

Plugin-Orb for Applications in a Pervasive Computing ...
Unfortunately, classic middleware platforms do not appear able to cope with such a ... In recent years, the adoption of middleware systems such as Web Services ...

import-buzz-a-wordpress-casual-plugin-for-the ...
... the apps below to open or edit this item. import-buzz-a-wordpress-casual-plugin-for-the-treatme ... nce-scribbler-looking-for-hire-with-1499533594667.pdf.

Content Buzz, A Wordpress Product Designer Plugin ...
... That Lets YouLaunchAFully. Page 2 of 2. it-is-so-as-to-you-solely-take-happiness-zoom-on-to-ma ... tefact-engineer-plugin-for-affiliate-1499591324786.pdf.

A Search-Based Approach for Dynamically Re ...
vided with a complete operating system, a rea- ... on the Symbian OS or the Windows Pocket PC op- .... ios, that is a subset of the complete application, the.

Search game for a moving target with dynamically generated ... - Irisa
Jul 16, 2009 - egy is determined and then the target strategy. We ... big. An extensive definition is not possible. However, for algorithmic reason, it will be ...

FanLens: A Visual Toolkit for Dynamically Exploring the ...
Figure 11 (a) shows the coloring with no color mapping speci- fied; Figure 11 (b) .... is the sum of the following attributes: RPG (Rebounds Per Game), ... 18.0 < PPG ≤ 25 strong. 10.0 < PPG ≤ 18.0 regular. 5.0 < PPG ≤ 10.0 low. PPG ≤ 5.0.

A Hierarchical Framework for Realizing Dynamically ...
where. • Ai and bi are constant which depend only on the i-th .... Bi-RRT in the configuration-time space of an end-effector. ..... software developed by CEA-LIST.

Content Buzz, A Upload Plugin Wordpress For Affiliates
VnuLab ReviewHere Are 10 WithGreatest SatisfactionAffiliate MarketingTools And Plugins Adsanity Is AnAd. Management Plugin For Wordpress . Wp Rss ...