2025-02-05 15:15:34 +01:00
<!DOCTYPE html> < html class = "default" lang = "en" data-base = ".." > < head > < meta charset = "utf-8" / > < meta http-equiv = "x-ua-compatible" content = "IE=edge" / > < title > Variable | @vladmandic/face-api - v1.7.15< / title > < meta name = "description" content = "Documentation for @vladmandic/face-api" / > < meta name = "viewport" content = "width=device-width, initial-scale=1" / > < link rel = "stylesheet" href = "../assets/style.css" / > < link rel = "stylesheet" href = "../assets/highlight.css" / > < script defer src = "../assets/main.js" > < / script > < script async src = "../assets/icons.js" id = "tsd-icons-script" > < / script > < script async src = "../assets/search.js" id = "tsd-search-script" > < / script > < script async src = "../assets/navigation.js" id = "tsd-nav-script" > < / script > < script async src = "../assets/hierarchy.js" id = "tsd-hierarchy-script" > < / script > < / head > < body > < script > document . documentElement . dataset . theme = localStorage . getItem ( "tsd-theme" ) || "os" ; document . body . style . display = "none" ; setTimeout ( ( ) => app ? app . showPage ( ) : document . body . style . removeProperty ( "display" ) , 500 ) < / script > < header class = "tsd-page-toolbar" > < div class = "tsd-toolbar-contents container" > < div class = "table-cell" id = "tsd-search" > < div class = "field" > < label for = "tsd-search-field" class = "tsd-widget tsd-toolbar-icon search no-caption" > < svg width = "16" height = "16" viewBox = "0 0 16 16" fill = "none" > < use href = "../assets/icons.svg#icon-search" > < / use > < / svg > < / label > < input type = "text" id = "tsd-search-field" aria-label = "Search" / > < / div > < div class = "field" > < div id = "tsd-toolbar-links" > < / div > < / div > < ul class = "results" > < li class = "state loading" > Preparing search index...< / li > < li class = "state failure" > The search index is not available< / li > < / ul > < a href = "../index.html" class = "title" > @vladmandic/face-api - v1.7.15< / a > < / div > < div class = "table-cell" id = "tsd-widgets" > < a href = "#" class = "tsd-widget tsd-toolbar-icon menu no-caption" data-toggle = "menu" aria-label = "Menu" > < svg width = "16" height = "16" viewBox = "0 0 16 16" fill = "none" > < use href = "../assets/icons.svg#icon-menu" > < / use > < / svg > < / a > < / div > < / div > < / header > < div class = "container container-main" > < div class = "col-content" > < div class = "tsd-page-title" > < ul class = "tsd-breadcrumb" > < li > < a href = "../index.html" > @vladmandic/face-api< / a > < / li > < li > < a href = "../modules/tf.html" > tf< / a > < / li > < li > < a href = "tf.Variable.html" > Variable< / a > < / li > < / ul > < h1 > Class Variable< R> < / h1 > < / div > < section class = "tsd-panel tsd-comment" > < div class = "tsd-comment tsd-typography" > < p > A mutable < code > tf.Tensor< / code > , useful for persisting state, e.g. for training.< / p >
2025-02-05 15:02:06 +01:00
< / div > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc" class = "tsd-anchor" > < / a > Doc< a href = "#doc" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < / section > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "r" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > R< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../enums/tf.Rank.html" class = "tsd-signature-type tsd-kind-enum" > Rank< / a > = < a href = "../enums/tf.Rank.html" class = "tsd-signature-type tsd-kind-enum" > Rank< / a > < / span > < / li > < / ul > < / section > < section class = "tsd-panel tsd-hierarchy" data-refl = "631" > < h4 > Hierarchy (< a href = "../hierarchy.html#tf.Variable" > View Summary< / a > )< / h4 > < ul class = "tsd-hierarchy" > < li class = "tsd-hierarchy-item" > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > > < / span > < ul class = "tsd-hierarchy" > < li class = "tsd-hierarchy-item" > < span class = "tsd-hierarchy-target" > Variable< / span > < / li > < / ul > < / li > < / ul > < / section > < aside class = "tsd-sources" > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:298< / li > < / ul > < / aside > < section class = "tsd-panel-group tsd-index-group" > < section class = "tsd-panel tsd-index-panel" > < details class = "tsd-index-content tsd-accordion" open > < summary class = "tsd-accordion-summary tsd-index-summary" > < h5 class = "tsd-index-heading uppercase" role = "button" aria-expanded = "false" tabIndex = "0" > < svg width = "16" height = "16" viewBox = "0 0 16 16" fill = "none" > < use href = "../assets/icons.svg#icon-chevronSmall" > < / use > < / svg > Index< / h5 > < / summary > < div class = "tsd-accordion-details" > < section class = "tsd-index-section" > < h3 class = "tsd-index-heading" > Constructors< / h3 > < div class = "tsd-index-list" > < a href = "tf.Variable.html#constructor" class = "tsd-index-link" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-512" > < / use > < / svg > < span > constructor< / span > < / a >
< / div > < / section > < section class = "tsd-index-section" > < h3 class = "tsd-index-heading" > Properties< / h3 > < div class = "tsd-index-list" > < a href = "tf.Variable.html#dataid" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > data< wbr / > Id< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#dtype" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > dtype< / span > < / a >
< a href = "tf.Variable.html#id" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > id< / span > < / a >
< a href = "tf.Variable.html#kept" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > kept< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#kerasmask" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > keras< wbr / > Mask?< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#name" class = "tsd-index-link" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > name< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#ranktype" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > rank< wbr / > Type< / span > < / a >
< a href = "tf.Variable.html#scopeid" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > scope< wbr / > Id< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#shape" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > shape< / span > < / a >
< a href = "tf.Variable.html#size" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > size< / span > < / a >
< a href = "tf.Variable.html#strides" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > strides< / span > < / a >
< a href = "tf.Variable.html#trainable" class = "tsd-index-link" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-1024" > < / use > < / svg > < span > trainable< / span > < / a >
2025-02-05 15:02:06 +01:00
< / div > < / section > < section class = "tsd-index-section" > < h3 class = "tsd-index-heading" > Accessors< / h3 > < div class = "tsd-index-list" > < a href = "tf.Variable.html#isdisposed" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-262144" > < / use > < / svg > < span > is< wbr / > Disposed< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#rank" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-262144" > < / use > < / svg > < span > rank< / span > < / a >
< / div > < / section > < section class = "tsd-index-section" > < h3 class = "tsd-index-heading" > Methods< / h3 > < div class = "tsd-index-list" > < a href = "tf.Variable.html#abs" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > abs< / span > < / a >
< a href = "tf.Variable.html#acos" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > acos< / span > < / a >
< a href = "tf.Variable.html#acosh" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > acosh< / span > < / a >
< a href = "tf.Variable.html#add" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > add< / span > < / a >
< a href = "tf.Variable.html#all" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > all< / span > < / a >
< a href = "tf.Variable.html#any" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > any< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#argmax" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > arg< wbr / > Max< / span > < / a >
< a href = "tf.Variable.html#argmin" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > arg< wbr / > Min< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#array" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > array< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#arraysync" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > array< wbr / > Sync< / span > < / a >
< a href = "tf.Variable.html#as1d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as1D< / span > < / a >
< a href = "tf.Variable.html#as2d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as2D< / span > < / a >
< a href = "tf.Variable.html#as3d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as3D< / span > < / a >
< a href = "tf.Variable.html#as4d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as4D< / span > < / a >
< a href = "tf.Variable.html#as5d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as5D< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#asin" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > asin< / span > < / a >
< a href = "tf.Variable.html#asinh" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > asinh< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#asscalar" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as< wbr / > Scalar< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#assign" class = "tsd-index-link" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > assign< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#astype" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > as< wbr / > Type< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#atan" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > atan< / span > < / a >
< a href = "tf.Variable.html#atan2" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > atan2< / span > < / a >
< a href = "tf.Variable.html#atanh" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > atanh< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#avgpool" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > avg< wbr / > Pool< / span > < / a >
< a href = "tf.Variable.html#batchnorm" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > batch< wbr / > Norm< / span > < / a >
< a href = "tf.Variable.html#batchtospacend" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > batch< wbr / > To< wbr / > SpaceND< / span > < / a >
< a href = "tf.Variable.html#broadcastto" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > broadcast< wbr / > To< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#buffer" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > buffer< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#buffersync" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > buffer< wbr / > Sync< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#bytes" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > bytes< / span > < / a >
< a href = "tf.Variable.html#cast" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > cast< / span > < / a >
< a href = "tf.Variable.html#ceil" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > ceil< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#clipbyvalue" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > clip< wbr / > By< wbr / > Value< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#clone" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > clone< / span > < / a >
< a href = "tf.Variable.html#concat" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > concat< / span > < / a >
< a href = "tf.Variable.html#conv1d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > conv1d< / span > < / a >
< a href = "tf.Variable.html#conv2d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > conv2d< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#conv2dtranspose" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > conv2d< wbr / > Transpose< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#cos" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > cos< / span > < / a >
< a href = "tf.Variable.html#cosh" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > cosh< / span > < / a >
< a href = "tf.Variable.html#cumprod" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > cumprod< / span > < / a >
< a href = "tf.Variable.html#cumsum" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > cumsum< / span > < / a >
< a href = "tf.Variable.html#data" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > data< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#datasync" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > data< wbr / > Sync< / span > < / a >
< a href = "tf.Variable.html#datatogpu" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > data< wbr / > ToGPU< / span > < / a >
< a href = "tf.Variable.html#depthtospace" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > depth< wbr / > To< wbr / > Space< / span > < / a >
< a href = "tf.Variable.html#depthwiseconv2d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > depthwise< wbr / > Conv2d< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#dilation2d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > dilation2d< / span > < / a >
< a href = "tf.Variable.html#dispose" class = "tsd-index-link" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > dispose< / span > < / a >
< a href = "tf.Variable.html#div" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > div< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#divnonan" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > div< wbr / > No< wbr / > Nan< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#dot" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > dot< / span > < / a >
< a href = "tf.Variable.html#elu" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > elu< / span > < / a >
< a href = "tf.Variable.html#equal" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > equal< / span > < / a >
< a href = "tf.Variable.html#erf" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > erf< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#euclideannorm" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > euclidean< wbr / > Norm< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#exp" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > exp< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#expanddims" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > expand< wbr / > Dims< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#expm1" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > expm1< / span > < / a >
< a href = "tf.Variable.html#fft" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > fft< / span > < / a >
< a href = "tf.Variable.html#flatten" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > flatten< / span > < / a >
< a href = "tf.Variable.html#floor" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > floor< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#floordiv" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > floor< wbr / > Div< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#gather" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > gather< / span > < / a >
< a href = "tf.Variable.html#greater" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > greater< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#greaterequal" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > greater< wbr / > Equal< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#ifft" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > ifft< / span > < / a >
< a href = "tf.Variable.html#irfft" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > irfft< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#isfinite" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > is< wbr / > Finite< / span > < / a >
< a href = "tf.Variable.html#isinf" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > is< wbr / > Inf< / span > < / a >
< a href = "tf.Variable.html#isnan" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > is< wbr / > NaN< / span > < / a >
< a href = "tf.Variable.html#leakyrelu" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > leaky< wbr / > Relu< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#less" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > less< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#lessequal" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > less< wbr / > Equal< / span > < / a >
< a href = "tf.Variable.html#localresponsenormalization" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > local< wbr / > Response< wbr / > Normalization< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#log" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > log< / span > < / a >
< a href = "tf.Variable.html#log1p" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > log1p< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#logicaland" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > logical< wbr / > And< / span > < / a >
< a href = "tf.Variable.html#logicalnot" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > logical< wbr / > Not< / span > < / a >
< a href = "tf.Variable.html#logicalor" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > logical< wbr / > Or< / span > < / a >
< a href = "tf.Variable.html#logicalxor" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > logical< wbr / > Xor< / span > < / a >
< a href = "tf.Variable.html#logsigmoid" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > log< wbr / > Sigmoid< / span > < / a >
< a href = "tf.Variable.html#logsoftmax" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > log< wbr / > Softmax< / span > < / a >
< a href = "tf.Variable.html#logsumexp" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > log< wbr / > Sum< wbr / > Exp< / span > < / a >
< a href = "tf.Variable.html#matmul" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > mat< wbr / > Mul< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#max" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > max< / span > < / a >
< a href = "tf.Variable.html#maximum" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > maximum< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#maxpool" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > max< wbr / > Pool< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#mean" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > mean< / span > < / a >
< a href = "tf.Variable.html#min" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > min< / span > < / a >
< a href = "tf.Variable.html#minimum" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > minimum< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#mirrorpad" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > mirror< wbr / > Pad< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#mod" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > mod< / span > < / a >
< a href = "tf.Variable.html#mul" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > mul< / span > < / a >
< a href = "tf.Variable.html#neg" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > neg< / span > < / a >
< a href = "tf.Variable.html#norm" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > norm< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#notequal" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > not< wbr / > Equal< / span > < / a >
< a href = "tf.Variable.html#onehot" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > one< wbr / > Hot< / span > < / a >
< a href = "tf.Variable.html#oneslike" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > ones< wbr / > Like< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#pad" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > pad< / span > < / a >
< a href = "tf.Variable.html#pool" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > pool< / span > < / a >
< a href = "tf.Variable.html#pow" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > pow< / span > < / a >
< a href = "tf.Variable.html#prelu" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > prelu< / span > < / a >
< a href = "tf.Variable.html#print" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > print< / span > < / a >
< a href = "tf.Variable.html#prod" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > prod< / span > < / a >
< a href = "tf.Variable.html#reciprocal" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > reciprocal< / span > < / a >
< a href = "tf.Variable.html#relu" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > relu< / span > < / a >
< a href = "tf.Variable.html#relu6" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > relu6< / span > < / a >
< a href = "tf.Variable.html#reshape" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > reshape< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#reshapeas" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > reshape< wbr / > As< / span > < / a >
< a href = "tf.Variable.html#resizebilinear" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > resize< wbr / > Bilinear< / span > < / a >
< a href = "tf.Variable.html#resizenearestneighbor" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > resize< wbr / > Nearest< wbr / > Neighbor< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#reverse" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > reverse< / span > < / a >
< a href = "tf.Variable.html#rfft" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > rfft< / span > < / a >
< a href = "tf.Variable.html#round" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > round< / span > < / a >
< a href = "tf.Variable.html#rsqrt" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > rsqrt< / span > < / a >
< a href = "tf.Variable.html#selu" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > selu< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#separableconv2d" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > separable< wbr / > Conv2d< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#sigmoid" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sigmoid< / span > < / a >
< a href = "tf.Variable.html#sign" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sign< / span > < / a >
< a href = "tf.Variable.html#sin" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sin< / span > < / a >
< a href = "tf.Variable.html#sinh" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sinh< / span > < / a >
< a href = "tf.Variable.html#slice" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > slice< / span > < / a >
< a href = "tf.Variable.html#softmax" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > softmax< / span > < / a >
< a href = "tf.Variable.html#softplus" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > softplus< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#spacetobatchnd" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > space< wbr / > To< wbr / > BatchND< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#split" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > split< / span > < / a >
< a href = "tf.Variable.html#sqrt" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sqrt< / span > < / a >
< a href = "tf.Variable.html#square" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > square< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#squareddifference" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > squared< wbr / > Difference< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#squeeze" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > squeeze< / span > < / a >
< a href = "tf.Variable.html#stack" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > stack< / span > < / a >
< a href = "tf.Variable.html#step" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > step< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#stridedslice" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > strided< wbr / > Slice< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#sub" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sub< / span > < / a >
< a href = "tf.Variable.html#sum" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > sum< / span > < / a >
< a href = "tf.Variable.html#tan" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > tan< / span > < / a >
< a href = "tf.Variable.html#tanh" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > tanh< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#throwifdisposed" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > throw< wbr / > If< wbr / > Disposed< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#tile" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > tile< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#tobool" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > to< wbr / > Bool< / span > < / a >
< a href = "tf.Variable.html#tofloat" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > to< wbr / > Float< / span > < / a >
< a href = "tf.Variable.html#toint" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > to< wbr / > Int< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#topk" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > topk< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#tostring" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > to< wbr / > String< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#transpose" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > transpose< / span > < / a >
< a href = "tf.Variable.html#unique" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > unique< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#unsortedsegmentsum" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > unsorted< wbr / > Segment< wbr / > Sum< / span > < / a >
2024-09-10 17:30:23 +02:00
< a href = "tf.Variable.html#unstack" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > unstack< / span > < / a >
< a href = "tf.Variable.html#variable" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > variable< / span > < / a >
< a href = "tf.Variable.html#where" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > where< / span > < / a >
2025-02-05 15:02:06 +01:00
< a href = "tf.Variable.html#zeroslike" class = "tsd-index-link tsd-is-inherited" > < svg class = "tsd-kind-icon" viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-2048" > < / use > < / svg > < span > zeros< wbr / > Like< / span > < / a >
< / div > < / section > < / div > < / details > < / section > < / section > < details class = "tsd-panel-group tsd-member-group tsd-accordion" open > < summary class = "tsd-accordion-summary" data-key = "section-Constructors" > < h2 > < svg width = "20" height = "20" viewBox = "0 0 24 24" fill = "none" > < use href = "../assets/icons.svg#icon-chevronDown" > < / use > < / svg > Constructors< / h2 > < / summary > < section > < section class = "tsd-panel tsd-member" > < a id = "constructor" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > constructor< / span > < a href = "#constructor" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures" > < li class = "tsd-signature tsd-anchor-link" > < a id = "constructorvariable" class = "tsd-anchor" > < / a > < span class = "tsd-signature-keyword" > new< / span > < span class = "tsd-kind-constructor-signature" > Variable< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../enums/tf.Rank.html" class = "tsd-signature-type tsd-kind-enum" > Rank< / a > < span class = "tsd-signature-symbol" > =< / span > < a href = "../enums/tf.Rank.html" class = "tsd-signature-type tsd-kind-enum" > Rank< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < br / > < span class = "tsd-kind-parameter" > initialValue< / span > < span class = "tsd-signature-symbol" > :< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-kind-parameter" > trainable< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-kind-parameter" > name< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > string< / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-kind-parameter" > tensorId< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a href = "tf.Variable.html" class = "tsd-signature-type tsd-kind-class" > Variable< / a > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > > < / span > < a href = "#constructorvariable" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "constructorvariabler" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > R< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../enums/tf.Rank.html" class = "tsd-signature-type tsd-kind-enum" > Rank< / a > = < a href = "../enums/tf.Rank.html" class = "tsd-signature-type tsd-kind-enum" > Rank< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > initialValue< / span > : < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > > < / span > < / span > < / li > < li > < s
2024-01-17 22:56:53 +01:00
point to the same bucket (e.g. when calling array.reshape()).< / p >
2025-02-05 15:02:06 +01:00
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#dataid" > dataId< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:137< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "dtype" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Readonly< / code > < span > dtype< / span > < a href = "#dtype" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > dtype< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > The data type for the array.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#dtype" > dtype< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:143< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "id" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Readonly< / code > < span > id< / span > < a href = "#id" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > id< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > Unique id of this tensor.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#id" > id< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:132< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "kept" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > kept< / span > < a href = "#kept" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > kept< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > boolean< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > Whether this tensor has been globally kept.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#kept" > kept< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:147< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "kerasmask" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Optional< / code > < span > keras< wbr / > Mask< / span > < a href = "#kerasmask" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > kerasMask< / span > < span class = "tsd-signature-symbol" > ?:< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / div > < div class = "tsd-comment tsd-typography" > < p > The keras mask that some keras layers attach to the tensor< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#kerasmask" > kerasMask< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:151< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member" > < a id = "name" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > name< / span > < a href = "#name" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > name< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > string< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:300< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "ranktype" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Readonly< / code > < span > rank< wbr / > Type< / span > < a href = "#ranktype" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > rankType< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < / div > < div class = "tsd-comment tsd-typography" > < p > The rank type for the array (see < code > Rank< / code > enum).< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#ranktype" > rankType< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:145< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "scopeid" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > scope< wbr / > Id< / span > < a href = "#scopeid" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > scopeId< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > The id of the scope this tensor is being tracked in.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#scopeid" > scopeId< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:149< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "shape" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Readonly< / code > < span > shape< / span > < a href = "#shape" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > shape< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > ShapeMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ]< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > The shape of the tensor.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#shape" > shape< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:139< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "size" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Readonly< / code > < span > size< / span > < a href = "#size" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > size< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > Number of elements in the tensor.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#size" > size< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:141< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "strides" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < code class = "tsd-tag" > Readonly< / code > < span > strides< / span > < a href = "#strides" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > strides< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < / div > < div class = "tsd-comment tsd-typography" > < p > Number of elements to skip in each dimension when indexing. See
< a href = "https://docs.scipy.org/doc/numpy/reference/generated/%5C" > https://docs.scipy.org/doc/numpy/reference/generated/\< / a >
2024-01-17 22:56:53 +01:00
numpy.ndarray.strides.html< / p >
2025-02-05 15:02:06 +01:00
< / div > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#strides" > strides< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:157< / li > < / ul > < / aside > < / section > < section class = "tsd-panel tsd-member" > < a id = "trainable" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > trainable< / span > < a href = "#trainable" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < div class = "tsd-signature" > < span class = "tsd-kind-property" > trainable< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > boolean< / span > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:299< / li > < / ul > < / aside > < / section > < / section > < / details > < details class = "tsd-panel-group tsd-member-group tsd-accordion" open > < summary class = "tsd-accordion-summary" data-key = "section-Accessors" > < h2 > < svg width = "20" height = "20" viewBox = "0 0 24 24" fill = "none" > < use href = "../assets/icons.svg#icon-chevronDown" > < / use > < / svg > Accessors< / h2 > < / summary > < section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "isdisposed" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > is< wbr / > Disposed< / span > < a href = "#isdisposed" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature" id = "isdisposed-1" > < span class = "tsd-signature-keyword" > get< / span > < span class = "tsd-kind-get-signature" > isDisposed< / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > boolean< / span > < / li > < li class = "tsd-description" > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > boolean< / span > < / h4 > < aside class = "tsd-sources" > < p > Inherited from Tensor.isDisposed< / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:243< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "rank" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > rank< / span > < a href = "#rank" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature" id = "rank-1" > < span class = "tsd-signature-keyword" > get< / span > < span class = "tsd-kind-get-signature" > rank< / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < / li > < li class = "tsd-description" > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > number< / span > < / h4 > < aside class = "tsd-sources" > < p > Inherited from Tensor.rank< / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:159< / li > < / ul > < / aside > < / li > < / ul > < / section > < / section > < / details > < details class = "tsd-panel-group tsd-member-group tsd-accordion" open > < summary class = "tsd-accordion-summary" data-key = "section-Methods" > < h2 > < svg width = "20" height = "20" viewBox = "0 0 24 24" fill = "none" > < use href = "../assets/icons.svg#icon-chevronDown" > < / use > < / svg > Methods< / h2 > < / summary > < section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "abs" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > abs< / span > < a href = "#abs" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "abs-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > abs< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Va
2024-01-17 22:56:53 +01:00
asynchronously.< / p >
2025-02-05 15:02:06 +01:00
< / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > ArrayMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-1" class = "tsd-anchor" > < / a > Doc< a href = "#doc-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#array" > array< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:177< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "arraysync" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > array< wbr / > Sync< / span > < a href = "#arraysync" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "arraysync-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > arraySync< / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > ArrayMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ]< / span > < a href = "#arraysync-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < p > Returns the tensor data as a nested array. The transfer of data is done
2024-01-17 22:56:53 +01:00
synchronously.< / p >
2025-02-05 15:02:06 +01:00
< / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > ArrayMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ]< / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-2" class = "tsd-anchor" > < / a > Doc< a href = "#doc-2" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#arraysync" > arraySync< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:184< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "as1d" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > as1D< / span > < a href = "#as1d" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "as1d-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > as1D< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#as1dt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < a href = "../types/tf.Tensor1D.html" class = "tsd-signature-type tsd-kind-type-alias" > Tensor1D< / a > < a href = "#as1d-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "as1dt" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < h4 class = "tsd-returns-title" > Returns < a href = "../types/tf.Tensor1D.html" class = "tsd-signature-type tsd-kind-type-alias" > Tensor1D< / a > < / h4 > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#as1d" > as1D< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/as1d.d.ts:21< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "as2d" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > as2D< / span > < a href = "#as2d" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "as2d-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > as2D< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#as2dt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > rows< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd
2024-01-17 22:56:53 +01:00
the same shape and dtype as the old < code > tf.Tensor< / code > .< / p >
2025-02-05 15:02:06 +01:00
< / div > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > newValue< / span > : < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > > < / span > < / span > < div class = "tsd-comment tsd-typography" > < p > New tensor to be assigned to this variable.< / p >
< / div > < div class = "tsd-comment tsd-typography" > < / div > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-3" class = "tsd-anchor" > < / a > Doc< a href = "#doc-3" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:310< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "astype" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > as< wbr / > Type< / span > < a href = "#astype" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "astype-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > asType< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#astypet" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > this< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#astypet" > T< / a > < span class = "tsd-signature-symbol" > ,< / span > < span class = "tsd-kind-parameter" > dtype< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#astypet" > T< / a > < a href = "#astype-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "astypet" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > this< / span > : < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#astypet" > T< / a > < / span > < / li > < li > < span > < span class = "tsd-kind-parameter" > dtype< / span > : < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#astypet" > T< / a > < / h4 > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#astype" > asType< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/as_type.d.ts:21< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "atan" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > atan< / span > < a href = "#atan" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anch
< / div > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "bufferd" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > D< / span > < span class = "tsd-signature-keyword" > extends < / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > = < span class = "tsd-signature-type" > " float32" < / span > < / span > < / li > < / ul > < / section > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > TensorBuffer< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ,< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#bufferd" > D< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-4" class = "tsd-anchor" > < / a > Doc< a href = "#doc-4" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#buffer" > buffer< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:165< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "buffersync" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > buffer< wbr / > Sync< / span > < a href = "#buffersync" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "buffersync-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > bufferSync< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#buffersyncd" > D< / a > < span class = "tsd-signature-keyword" > extends< / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > =< / span > < span class = "tsd-signature-type" > " float32" < / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > TensorBuffer< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ,< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#buffersyncd" > D< / a > < span class = "tsd-signature-symbol" > > < / span > < a href = "#buffersync-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < p > Returns a < code > tf.TensorBuffer< / code > that holds the underlying data.< / p >
< / div > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "buffersyncd" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > D< / span > < span class = "tsd-signature-keyword" > extends < / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > = < span class = "tsd-signature-type" > " float32" < / span > < / span > < / li > < / ul > < / section > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > TensorBuffer< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#constructorvariabler" > R< / a > < span class = "tsd-signature-symbol" > ,< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#buffersyncd" > D< / a > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-5" class = "tsd-anchor" > < / a > Doc< a href = "#doc-5" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#buffersync" > bufferSync< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:170< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "bytes" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > bytes< / span > < a href = "#bytes" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "bytes-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > bytes< / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Uint8Array< / span > < span class = "tsd-signature-symbol" > |< / span > < span class = "tsd-signature-type" > Uint8Array< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > > < / span > < a href = "#bytes-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < p > Returns the underlying bytes of the tensor's data.< / p >
< / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > Uint8Array< / span > < span class = "tsd-signature-symbol" > |< / span > < span class = "tsd-signature-type" > Uint8Array< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div class = "tsd-comment tsd-typography" > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#bytes" > bytes< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:235< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "cast" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > cast< / span > < a href = "#cast" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "cast-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > cast< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#castt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > dtype< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#castt" > T< / a > < a href = "#cast-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "castt" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > dtype< / span > : < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#castt" > T< / a > < / h4 > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#cast" > cast< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/cast.d.ts:21< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "ceil" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > ceil< / span > < a href = "#ceil" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "ceil-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > ceil< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#ceilt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-ki
< / div > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "clonet" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > this< / span > : < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#clonet" > T< / a > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#clonet" > T< / a > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-6" class = "tsd-anchor" > < / a > Doc< a href = "#doc-6" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#clone" > clone< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:258< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "concat" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > concat< / span > < a href = "#concat" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "concat-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > concat< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#concatt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > tensors< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#concatt" > T< / a > < span class = "tsd-signature-symbol" > |< / span > (< a href = "../types/tf.TensorLike.html" class = "tsd-signature-type tsd-kind-type-alias" > TensorLike< / a > < span class = "tsd-signature-symbol" > |< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#concatt" > T< / a > )< span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > ,< / span > < span class = "tsd-kind-parameter" > axis< / span > < span class = "tsd-signature-symbol" > ?:< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#concatt" > T< / a > < a href = "#concat-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "concatt" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > tensors< /spa
2024-01-17 22:56:53 +01:00
promise of < code > TypedArray< / code > that resolves when the computation has finished.< / p >
2025-02-05 15:02:06 +01:00
< / div > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "datad" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > D< / span > < span class = "tsd-signature-keyword" > extends < / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > = < span class = "tsd-signature-type" > NumericDataType< / span > < / span > < / li > < / ul > < / section > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > Promise< / span > < span class = "tsd-signature-symbol" > < < / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#datad" > D< / a > < span class = "tsd-signature-symbol" > ]< / span > < span class = "tsd-signature-symbol" > > < / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-7" class = "tsd-anchor" > < / a > Doc< a href = "#doc-7" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#data" > data< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:191< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "datasync" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > data< wbr / > Sync< / span > < a href = "#datasync" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "datasync-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > dataSync< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#datasyncd" > D< / a > < span class = "tsd-signature-keyword" > extends< / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > =< / span > < span class = "tsd-signature-type" > NumericDataType< / span > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > ()< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#datasyncd" > D< / a > < span class = "tsd-signature-symbol" > ]< / span > < a href = "#datasync-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < p > Synchronously downloads the values from the < code > tf.Tensor< / code > . This blocks the
2024-01-17 22:56:53 +01:00
UI thread until the values are ready, which can cause performance issues.< / p >
2025-02-05 15:02:06 +01:00
< / div > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "datasyncd" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > D< / span > < span class = "tsd-signature-keyword" > extends < / span > < span class = "tsd-signature-keyword" > keyof< / span > < span class = "tsd-signature-type" > DataTypeMap< / span > = < span class = "tsd-signature-type" > NumericDataType< / span > < / span > < / li > < / ul > < / section > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > DataTypeMap< / span > < span class = "tsd-signature-symbol" > [< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#datasyncd" > D< / a > < span class = "tsd-signature-symbol" > ]< / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-8" class = "tsd-anchor" > < / a > Doc< a href = "#doc-8" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#datasync" > dataSync< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:233< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "datatogpu" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > data< wbr / > ToGPU< / span > < a href = "#datatogpu" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "datatogpu-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > dataToGPU< / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > options< / span > < span class = "tsd-signature-symbol" > ?:< / span > < span class = "tsd-signature-type" > DataToGPUWebGLOption< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > GPUData< / span > < a href = "#datatogpu-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < div class = "tsd-comment tsd-typography" > < p > Copy the tensor's data to a new GPU resource. Comparing to the < code > dataSync()< / code >
2024-01-17 22:56:53 +01:00
and < code > data()< / code > , this method prevents data from being downloaded to CPU.< / p >
< p > For WebGL backend, the data will be stored on a densely packed texture.
This means that the texture will use the RGBA channels to store value.< / p >
< p > For WebGPU backend, the data will be stored on a buffer. There is no
parameter, so can not use a user-defined size to create the buffer.< / p >
2024-09-10 17:30:23 +02:00
< / div > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < code class = "tsd-tag" > Optional< / code > < span class = "tsd-kind-parameter" > options< / span > : < span class = "tsd-signature-type" > DataToGPUWebGLOption< / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > GPUData< / span > < / h4 > < p > For WebGL backend, a GPUData contains the new texture and
its information.
{
tensorRef: The tensor that is associated with this texture,
texture: WebGLTexture,
texShape: [number, number] // [height, width]
}< / p >
< pre > < code > For WebGPU backend, a GPUData contains the new buffer.
{
tensorRef: The tensor that is associated with this buffer,
buffer: GPUBuffer,
}
Remember to dispose the GPUData after it is used by
`res.tensorRef.dispose()`.
< / code > < / pre >
2025-02-05 15:02:06 +01:00
< div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-9" class = "tsd-anchor" > < / a > Doc< a href = "#doc-9" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#datatogpu" > dataToGPU< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:226< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "depthtospace" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > depth< wbr / > To< wbr / > Space< / span > < a href = "#depthtospace" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "depthtospace-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > depthToSpace< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#depthtospacet" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../types/tf.Tensor4D.html" class = "tsd-signature-type tsd-kind-type-alias" > Tensor4D< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < br / > < span class = "tsd-kind-parameter" > blockSize< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-kind-parameter" > dataFormat< / span > < span class = "tsd-signature-symbol" > :< / span > < span class = "tsd-signature-type" > " NHWC" < / span > < span class = "tsd-signature-symbol" > |< / span > < span class = "tsd-signature-type" > " NCHW" < / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#depthtospacet" > T< / a > < a href = "#depthtospace-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "depthtospacet" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../types/tf.Tensor4D.html" class = "tsd-signature-type tsd-kind-type-alias" > Tensor4D< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > blockSize< / span > : < span class = "tsd-signature-type" > number< / span > < / span > < / li > < li > < span > < span class = "tsd-kind-parameter" > dataFormat< / span > : < span class = "tsd-signature-type" > " NHWC" < / span > < span class = "tsd-signature-symbol" > |< / span > < span class = "tsd-signature-type" > " NCHW" < / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#depthtospacet" > T< / a > < / h4 > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#depthtospace" > depthToSpace< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/depth_to_space.d.ts:5< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "depthwiseconv2d" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > depthwise< wbr / > Conv2d< / span > < a href = "#depthwiseconv2d" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "depth
< / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-10" class = "tsd-anchor" > < / a > Doc< a href = "#doc-10" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Overrides < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#dispose" > dispose< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:311< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "div" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > div< / span > < a href = "#div" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "div-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > div< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#divt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > b< / span > < span class = "tsd-signature-symbol" > :< / span > < a href = "../types/tf.TensorLike.html" class = "tsd-signature-type tsd-kind-type-alias" > TensorLike< / a > < span class = "tsd-signature-symbol" > |< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#divt" > T< / a > < a href = "#div-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "divt" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > b< / span > : < a href = "../types/tf.TensorLike.html" class = "tsd-signature-type tsd-kind-type-alias" > TensorLike< / a > < span class = "tsd-signature-symbol" > |< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#divt" > T< / a > < / h4 > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#div" > div< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/div.d.ts:21< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "divnonan" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > div< wbr / > No< wbr / > Nan< / span > < a href = "#divnonan" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../asset
2024-09-10 17:30:23 +02:00
< / div > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < code class = "tsd-tag" > Optional< / code > < span class = "tsd-kind-parameter" > verbose< / span > : < span class = "tsd-signature-type" > boolean< / span > < / span > < div class = "tsd-comment tsd-typography" > < p > Whether to print verbose information about the tensor,
including dtype and size.< / p >
2025-02-05 15:02:06 +01:00
< / div > < div class = "tsd-comment tsd-typography" > < / div > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > void< / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-11" class = "tsd-anchor" > < / a > Doc< a href = "#doc-11" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#print" > print< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:253< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "prod" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > prod< / span > < a href = "#prod" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "prod-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > prod< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#prodt" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < br / > < span class = "tsd-kind-parameter" > this< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#prodt" > T< / a > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-kind-parameter" > axis< / span > < span class = "tsd-signature-symbol" > ?:< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > |< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-kind-parameter" > keepDims< / span > < span class = "tsd-signature-symbol" > ?:< / span > < span class = "tsd-signature-type" > boolean< / span > < span class = "tsd-signature-symbol" > ,< / span > < br / > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#prodt" > T< / a > < a href = "#prod-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "prodt" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < span class = "tsd-kind-parameter" > this< / span > : < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#prodt" > T< / a > < / span > < / li > < li > < span > < code class = "tsd-tag" > Optional< / code > < span class = "tsd-kind-parameter" > axis< / span > : < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > |< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < / span > < / li > < li > < span > < code class = "tsd-tag" > Optional< / code > < span class = "tsd-kind-parameter" > keepDims< / span > : < span class = "tsd-signature-type" > boolean< / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.h
2025-02-05 15:15:34 +01:00
< / div > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < code class = "tsd-tag" > Optional< / code > < span class = "tsd-kind-parameter" > verbose< / span > : < span class = "tsd-signature-type" > boolean< / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < span class = "tsd-signature-type" > string< / span > < / h4 > < div class = "tsd-comment tsd-typography" > < div class = "tsd-tag-doc" > < h4 class = "tsd-anchor-link" > < a id = "doc-12" class = "tsd-anchor" > < / a > Doc< a href = "#doc-12" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h4 > < / div > < / div > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#tostring" > toString< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/tensor.d.ts:264< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "transpose" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > transpose< / span > < a href = "#transpose" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-link" > < a id = "transpose-1" class = "tsd-anchor" > < / a > < span class = "tsd-kind-call-signature" > transpose< / span > < span class = "tsd-signature-symbol" > < < / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#transposet" > T< / a > < span class = "tsd-signature-keyword" > extends< / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < span class = "tsd-signature-symbol" > > < / span > < span class = "tsd-signature-symbol" > (< / span > < span class = "tsd-kind-parameter" > perm< / span > < span class = "tsd-signature-symbol" > ?:< / span > < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < span class = "tsd-signature-symbol" > )< / span > < span class = "tsd-signature-symbol" > :< / span > < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#transposet" > T< / a > < a href = "#transpose-1" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / li > < li class = "tsd-description" > < section class = "tsd-panel" > < h4 > Type Parameters< / h4 > < ul class = "tsd-type-parameter-list" > < li > < span > < a id = "transposet" class = "tsd-anchor" > < / a > < span class = "tsd-kind-type-parameter" > T< / span > < span class = "tsd-signature-keyword" > extends < / span > < a href = "../modules/tf.html" class = "tsd-signature-type tsd-kind-namespace" > tf< / a > < span class = "tsd-signature-symbol" > .< / span > < a href = "tf.Tensor-1.html" class = "tsd-signature-type tsd-kind-class" > Tensor< / a > < / span > < / li > < / ul > < / section > < div class = "tsd-parameters" > < h4 class = "tsd-parameters-title" > Parameters< / h4 > < ul class = "tsd-parameter-list" > < li > < span > < code class = "tsd-tag" > Optional< / code > < span class = "tsd-kind-parameter" > perm< / span > : < span class = "tsd-signature-type" > number< / span > < span class = "tsd-signature-symbol" > []< / span > < / span > < / li > < / ul > < / div > < h4 class = "tsd-returns-title" > Returns < a class = "tsd-signature-type tsd-kind-type-parameter" href = "tf.Variable.html#transposet" > T< / a > < / h4 > < aside class = "tsd-sources" > < p > Inherited from < a href = "tf.Tensor-1.html" > Tensor< / a > .< a href = "tf.Tensor-1.html#transpose" > transpose< / a > < / p > < ul > < li > Defined in node_modules/.pnpm/@tensorflow+tfjs-core@4.22.0/node_modules/@tensorflow/tfjs-core/dist/public/chained_ops/transpose.d.ts:21< / li > < / ul > < / aside > < / li > < / ul > < / section > < section class = "tsd-panel tsd-member tsd-is-inherited" > < a id = "unique" class = "tsd-anchor" > < / a > < h3 class = "tsd-anchor-link" > < span > unique< / span > < a href = "#unique" aria-label = "Permalink" class = "tsd-anchor-icon" > < svg viewBox = "0 0 24 24" > < use href = "../assets/icons.svg#icon-anchor" > < / use > < / svg > < / a > < / h3 > < ul class = "tsd-signatures tsd-is-inherited" > < li class = "tsd-signature tsd-anchor-li