blob: e93a142b39568aa882abad40bcb97ffb516813e7 [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[55],{122:function(e,n,t){"use strict";t.r(n),t.d(n,"frontMatter",(function(){return i})),t.d(n,"metadata",(function(){return c})),t.d(n,"toc",(function(){return s})),t.d(n,"default",(function(){return l}));var r=t(3),o=t(7),a=(t(0),t(194)),i={title:"Tensorboard"},c={unversionedId:"userDocs/others/tensorboard",id:"version-0.6.0/userDocs/others/tensorboard",isDocsHomePage:!1,title:"Tensorboard",description:"\x3c!--",source:"@site/versioned_docs/version-0.6.0/userDocs/others/tensorboard.md",slug:"/userDocs/others/tensorboard",permalink:"/docs/userDocs/others/tensorboard",editUrl:"https://github.com/apache/submarine/edit/master/website/versioned_docs/version-0.6.0/userDocs/others/tensorboard.md",version:"0.6.0",sidebar:"docs",previous:{title:"MLflow UI",permalink:"/docs/userDocs/others/mlflow"},next:{title:"Running Submarine on YARN",permalink:"/docs/adminDocs/yarn/README"}},s=[{value:"Write to LogDirs by the environment variable",id:"write-to-logdirs-by-the-environment-variable",children:[{value:"Environment variable",id:"environment-variable",children:[]},{value:"Example",id:"example",children:[]}]},{value:"Connect to the tensorboard webpage",id:"connect-to-the-tensorboard-webpage",children:[]}],b={toc:s};function l(e){var n=e.components,i=Object(o.a)(e,["components"]);return Object(a.b)("wrapper",Object(r.a)({},b,i,{components:n,mdxType:"MDXLayout"}),Object(a.b)("h2",{id:"write-to-logdirs-by-the-environment-variable"},"Write to LogDirs by the environment variable"),Object(a.b)("h3",{id:"environment-variable"},"Environment variable"),Object(a.b)("ul",null,Object(a.b)("li",{parentName:"ul"},Object(a.b)("inlineCode",{parentName:"li"},"SUBMARINE_TENSORBOARD_LOG_DIR"),": Exist in every experiment container. You just need to direct your logs to ",Object(a.b)("inlineCode",{parentName:"li"},"$(SUBMARINE_TENSORBOARD_LOG_DIR)")," (",Object(a.b)("strong",{parentName:"li"},"NOTICE: it is ",Object(a.b)("inlineCode",{parentName:"strong"},"()")," not ",Object(a.b)("inlineCode",{parentName:"strong"},"{}")),"), and you can inspect the process on the tensorboard webpage.")),Object(a.b)("h3",{id:"example"},"Example"),Object(a.b)("pre",null,Object(a.b)("code",{parentName:"pre"},'{\n "meta": {\n "name": "tensorflow-tensorboard-dist-mnist",\n "namespace": "default",\n "framework": "TensorFlow",\n "cmd": "python /var/tf_mnist/mnist_with_summaries.py --log_dir=$(SUBMARINE_TENSORBOARD_LOG_DIR) --learning_rate=0.01 --batch_size=20",\n "envVars": {\n "ENV_1": "ENV1"\n }\n },\n "environment": {\n "image": "apache/submarine:tf-mnist-with-summaries-1.0"\n },\n "spec": {\n "Worker": {\n "replicas": 1,\n "resources": "cpu=1,memory=512M"\n }\n }\n}\n\n')),Object(a.b)("h2",{id:"connect-to-the-tensorboard-webpage"},"Connect to the tensorboard webpage"),Object(a.b)("ol",null,Object(a.b)("li",{parentName:"ol"},"Open the experiment page in the workbench, and Click the ",Object(a.b)("inlineCode",{parentName:"li"},"TensorBoard")," button.")),Object(a.b)("p",null,Object(a.b)("img",{src:t(214).default})),Object(a.b)("ol",{start:2},Object(a.b)("li",{parentName:"ol"},"Inspect the process on tensorboard page.")),Object(a.b)("p",null,Object(a.b)("img",{src:t(215).default})))}l.isMDXComponent=!0},194:function(e,n,t){"use strict";t.d(n,"a",(function(){return p})),t.d(n,"b",(function(){return m}));var r=t(0),o=t.n(r);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function c(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?i(Object(t),!0).forEach((function(n){a(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function s(e,n){if(null==e)return{};var t,r,o=function(e,n){if(null==e)return{};var t,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||(o[t]=e[t]);return o}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)t=a[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var b=o.a.createContext({}),l=function(e){var n=o.a.useContext(b),t=n;return e&&(t="function"==typeof e?e(n):c(c({},n),e)),t},p=function(e){var n=l(e.components);return o.a.createElement(b.Provider,{value:n},e.children)},u={inlineCode:"code",wrapper:function(e){var n=e.children;return o.a.createElement(o.a.Fragment,{},n)}},d=o.a.forwardRef((function(e,n){var t=e.components,r=e.mdxType,a=e.originalType,i=e.parentName,b=s(e,["components","mdxType","originalType","parentName"]),p=l(t),d=r,m=p["".concat(i,".").concat(d)]||p[d]||u[d]||a;return t?o.a.createElement(m,c(c({ref:n},b),{},{components:t})):o.a.createElement(m,c({ref:n},b))}));function m(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=t.length,i=new Array(a);i[0]=d;var c={};for(var s in n)hasOwnProperty.call(n,s)&&(c[s]=n[s]);c.originalType=e,c.mdxType="string"==typeof e?e:r,i[1]=c;for(var b=2;b<a;b++)i[b]=t[b];return o.a.createElement.apply(null,i)}return o.a.createElement.apply(null,t)}d.displayName="MDXCreateElement"},214:function(e,n,t){"use strict";t.r(n),n.default=t.p+"assets/images/tensorboard-experiment-page-bf5d5aad633d80ef059ce4b7e4d91db3.png"},215:function(e,n,t){"use strict";t.r(n),n.default=t.p+"assets/images/tensorboard-webpage-f8b9c5ceeb7b5ef535939ea22f680d96.png"}}]);