Backends Nodes implemented

This commit is contained in:
Luis Fernando Molina committed 2021-02-11 16:58:45 +01:00
1 parent 09e4d26ceb
commit 17c9c076c0
9 files changed
+273 -3

No files matched your search

@@ -855,6 +855,9 @@ function newSuperalgosDocsDocumentPage() {
for (let i = 0; i < appSchemaDocument.menuItems.length; i++) {
let menuItem = appSchemaDocument.menuItems[i]
let collectionImage = getIcon()
if (collectionImage === undefined) {
continue
}
let imageElement = collectionImage.cloneNode()
imageElement.className = "docs-collapsible-image"
@@ -882,6 +885,9 @@ function newSuperalgosDocsDocumentPage() {
for (let i = 0; i < appSchemaDocument.childrenNodesProperties.length; i++) {
let childrenNodesProperty = appSchemaDocument.childrenNodesProperties[i]
let collectionImage = getIcon()
if (collectionImage === undefined) {
continue
}
let imageElement = collectionImage.cloneNode()
imageElement.className = "docs-collapsible-image"
@@ -971,6 +977,9 @@ function newSuperalgosDocsDocumentPage() {
let dummyImage = imageArray[i]
let parentElement = dummyImage.parentNode
let collectionImage = UI.projects.superalgos.spaces.designSpace.getIconByProjectAndName('Superalgos', 'configuration')
if (collectionImage === undefined) {
continue
}
let imageElement = collectionImage.cloneNode()
imageElement.className = "docs-collapsible-image"
+173 -3
View File
@@ -4,8 +4,8 @@
"menuItems": [
{
"action": "Add UI Object",
"label": "Add TensorFlow",
"relatedUiObject": "TensorFlow",
"label": "Add Machine Learning",
"relatedUiObject": "Machine Learning",
"actionFunction": "payload.executeAction"
},
{
@@ -35,7 +35,7 @@
"icon": "tensorflow"
},
{
"type": "TensorFlow",
"type": "Machine Learning",
"menuItems": [
{
"action": "Add UI Object",
@@ -69,6 +69,38 @@
{
"type": "TensorFlow Library",
"menuItems": [
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "backend",
"label": "Add WebGL Backend",
"relatedUiObject": "WebGL Backend",
"actionFunction": "payload.executeAction"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "backend",
"label": "Add NodeJS Backend",
"relatedUiObject": "NodeJS Backend",
"actionFunction": "payload.executeAction"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "backend",
"label": "Add WASM Backend",
"relatedUiObject": "WASM Backend",
"actionFunction": "payload.executeAction"
},
{
"action": "Add UI Object",
"disableIfPropertyIsDefined": true,
"propertyToCheckFor": "backend",
"label": "Add CPU Backend",
"relatedUiObject": "CPU Backend",
"actionFunction": "payload.executeAction"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
@@ -85,6 +117,144 @@
"compatibleTypes": "->Learning System->"
},
"propertyNameAtParent": "machineLearningLibrary",
"childrenNodesProperties": [
{
"name": "backend",
"type": "node",
"childType": "WebGL Backend"
},
{
"name": "backend",
"type": "node",
"childType": "NodeJS Backend"
},
{
"name": "backend",
"type": "node",
"childType": "WASM Backend"
},
{
"name": "backend",
"type": "node",
"childType": "CPU Backend"
}
],
"icon": "tensorflow"
},
{
"type": "WebGL Backend",
"menuItems": [
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"editors": {
"config": true
},
"initialValues": {
"config": "{ \n \"codeName\": \"webgl\"\n}"
},
"addLeftIcons": true,
"level": 3,
"attachingRules": {
"compatibleTypes": "->TensorFlow Library->"
},
"propertyNameAtParent": "backend",
"childrenNodesProperties": [
],
"icon": "tensorflow"
},
{
"type": "NodeJS Backend",
"menuItems": [
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"editors": {
"config": true
},
"initialValues": {
"config": "{ \n \"codeName\": \"node\"\n}"
},
"addLeftIcons": true,
"level": 3,
"attachingRules": {
"compatibleTypes": "->TensorFlow Library->"
},
"propertyNameAtParent": "backend",
"childrenNodesProperties": [
],
"icon": "tensorflow"
},
{
"type": "WASM Backend",
"menuItems": [
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"editors": {
"config": true
},
"initialValues": {
"config": "{ \n \"codeName\": \"wasm\"\n}"
},
"addLeftIcons": true,
"level": 3,
"attachingRules": {
"compatibleTypes": "->TensorFlow Library->"
},
"propertyNameAtParent": "backend",
"childrenNodesProperties": [
],
"icon": "tensorflow"
},
{
"type": "CPU Backend",
"menuItems": [
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete-entity",
"iconPathOff": "delete-entity",
"actionFunction": "payload.executeAction"
}
],
"editors": {
"config": true
},
"initialValues": {
"config": "{ \n \"codeName\": \"cpu\"\n}"
},
"addLeftIcons": true,
"level": 3,
"attachingRules": {
"compatibleTypes": "->TensorFlow Library->"
},
"propertyNameAtParent": "backend",
"childrenNodesProperties": [
],
"icon": "tensorflow"
}
]
@@ -0,0 +1,13 @@
{
"type": "Backend",
"definition": {
"text": "TensorFlow.js support multiple different backends that implement tensor storage and mathematical operations. At any given time, only one backend is active. Most of the time, TensorFlow.js will automatically choose the best backend for you given the current Environment. ",
"updated": 1613058525297
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Then you can use doscs.save to save your changes and app.contribute to send it to the main repository."
}
]
}
@@ -0,0 +1,13 @@
{
"type": "Execution Environmet",
"definition": {
"text": "When a TensorFlow.js program is executed, the specific configuration is called the execution environment. The Execution Environment is comprised of a single global backend as well as a set of flags that control fine-grained features of TensorFlow.js.",
"updated": 1613058650461
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode. Then you can use doscs.save to save your changes and app.contribute to send it to the main repository."
}
]
}
@@ -0,0 +1,13 @@
{
"type": "CPU Backend",
"definition": {
"text": "The CPU Backend,'cpu', is the least performant backend, however it is the simplest. Operations are all implemented in vanilla JavaScript, which makes them less parallelizable.",
"updated": 1613059028403
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and select the pencil button to enter edit mode."
}
]
}
@@ -0,0 +1,13 @@
{
"type": "Machine Learning",
"definition": {
"text": "A program or system that builds (trains) a predictive model from input data. The system uses the learned model to make useful predictions from new (never-before-seen) data drawn from the same distribution as the one used to train the model. Machine learning also refers to the field of study concerned with these programs or systems.",
"updated": 1613055672003
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and select the pencil button to enter edit mode."
}
]
}
@@ -0,0 +1,13 @@
{
"type": "NodeJS Backend",
"definition": {
"text": "In the TensorFlow Node.js backend, 'node', the TensorFlow C API is used to accelerate operations. This will use the machine's available hardware acceleration, like CUDA, if available.",
"updated": 1613058717641
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and select the pencil button to enter edit mode."
}
]
}
@@ -0,0 +1,13 @@
{
"type": "WASM Backend",
"definition": {
"text": "TensorFlow.js provides a WebAssembly backend (wasm), which offers CPU acceleration and can be used as an alternative to the vanilla JavaScript CPU (cpu) and WebGL accelerated (webgl) backends.",
"updated": 1613058813729
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and select the pencil button to enter edit mode."
}
]
}
@@ -0,0 +1,13 @@
{
"type": "WebGL Backend",
"definition": {
"text": "The WebGL Backend,'webgl', is currently the most powerful Backend for the browser. This backend is up to 100x faster than the vanilla CPU backend. Tensors are stored as WebGL textures and mathematical operations are implemented in WebGL shaders.",
"updated": 1613058352372
},
"paragraphs": [
{
"style": "Text",
"text": "Left click and select the pencil button to enter edit mode."
}
]
}