Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ functions
Functions
6,022 in github.com/tensorflow/tfjs
⨍
Functions
6,022
◇
Types & classes
1,932
↳
Endpoints
2
Method
read
(dataId: DataId)
tfjs-node/src/nodejs_kernel_backend.ts:218
Method
read
(dataId: DataId)
tfjs-backend-webgl/src/backend_webgl.ts:320
Method
read
(dataId: DataId)
tfjs-backend-wasm/src/backend_wasm.ts:114
Method
readDataGPUToCPU
(width: number, height: number, offset: number)
tfjs-backend-webgpu/src/backend_webgpu.ts:439
Method
readSync
(dataId: DataId)
tfjs-core/src/backends/backend.ts:34
Method
readSync
(dataId: object)
tfjs-core/src/backends/backend.ts:116
Method
readToGPU
* Read tensor to a new GPUBuffer. * @param dataId The source tensor.
tfjs-backend-webgpu/src/backend_webgpu.ts:596
Method
readToGPU
(dataId: DataId, options?: DataToGPUOptions)
tfjs-core/src/engine.ts:1229
Method
readToGPU
(dataId: object, options?: DataToGPUOptions)
tfjs-core/src/backends/backend.ts:119
Method
readToGPU
* Read tensor to a new texture that is densely packed for ease of use. * @param dataId The source tensor. * @param options * customTexSha
tfjs-backend-webgl/src/backend_webgl.ts:429
Function
read_weights
Load weight values according to a TensorFlow.js weights manifest. Args: weights_manifest: A TensorFlow.js-format weights manifest (a JSON array
tfjs-converter/python/tensorflowjs/read_weights.py:35
Function
ready
()
tfjs-core/src/globals.ts:302
Function
real_
* Returns the real part of a complex (or real) tensor. * * Given a tensor input, this operation returns a tensor of type float that is * the real p
tfjs-core/src/ops/real.ts:41
Function
recall
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/metrics.ts:75
Function
recall
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/exports_metrics.ts:204
Function
reciprocal_
* Computes reciprocal of x element-wise: `1 / x` * * ```js * const x = tf.tensor1d([0, 1, 2]); * * x.reciprocal().print(); // or tf.reciprocal(x
tfjs-core/src/ops/reciprocal.ts:39
Function
recordDropoutTrainingArgHook
(inputs: Tensor|Tensor[], kwargs: Kwargs)
tfjs-layers/src/engine/training_test.ts:1753
Function
recordKwargsHook
(inputs: Tensor|Tensor[], kwargs: {})
tfjs-layers/src/engine/container_test.ts:669
Method
refCount
Return refCount of a `TensorData`.
tfjs-backend-cpu/src/backend_cpu.ts:97
Method
refCount
Return refCount of a `TensorData`.
tfjs-backend-webgpu/src/backend_webgpu.ts:244
Method
refCount
(dataId: DataId)
tfjs-core/src/backends/backend.ts:101
Method
refCount
Return refCount of a `TensorData`.
tfjs-node/src/nodejs_kernel_backend.ts:257
Method
refCount
Return refCount of a `TensorData`.
tfjs-backend-webgl/src/backend_webgl.ts:230
Method
refCount
Return refCount of a `TensorData`.
tfjs-backend-wasm/src/backend_wasm.ts:161
Function
registerCallbackConstructor
( verbosityLevel: number, callbackConstructor: BaseCallbackConstructor)
tfjs-layers/src/exports.ts:165
Function
registerLoadRouter
(loudRouter: IORouter)
tfjs-core/src/io/router_registry.ts:106
Function
registerMonitor
(promise: Promise<T>)
tfjs-core/src/io/progress.ts:39
Function
registerSaveRouter
(loudRouter: IORouter)
tfjs-core/src/io/router_registry.ts:104
Method
registeredVariables
()
tfjs-core/src/engine.ts:1257
Function
relu6_
* Computes rectified linear 6 element-wise: `min(max(x, 0), 6)`. * * ```js * const x = tf.tensor1d([-1, 2, -3, 8]); * * x.relu6().print(); // or
tfjs-core/src/ops/relu6.ts:40
Function
relu_
* Computes rectified linear element-wise: `max(x, 0)`. * * ```js * const x = tf.tensor1d([-1, 2, -3, 4]); * * x.relu().print(); // or tf.relu(x)
tfjs-core/src/ops/relu.ts:40
Function
removeCustomProps
(step: CustomCloudbuildStep)
scripts/generate_cloudbuild.ts:39
Function
removeModel
* Remove a model specified by URL from a registered storage medium. * * ```js * // First create and save a model. * const model = tf.sequential();
tfjs-core/src/io/model_management.ts:245
Method
removeModel
(path: string)
tfjs-core/src/io/indexed_db.ts:315
Method
removeModel
(path: string)
tfjs-core/src/io/local_storage.ts:380
Function
rename_constants
Update all constants name by adding a prefix. Args: node_list: NodeDef list to update. prefix: string to add to the constant name. Return
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py:108
Method
render
* Helper function to render the component to the DOM. * * Note that although the visor has a parent element, it rendered via absolute * posit
tfjs-vis/src/components/visor.tsx:70
Method
render
()
tfjs-vis/src/components/tabs.tsx:31
Method
render
()
tfjs-vis/src/components/surface.tsx:57
Method
render
* Render the component
tfjs-react-native/src/camera/camera_stream.tsx:348
Method
render
()
tfjs-react-native/integration_rn59/App.tsx:195
Method
render
()
tfjs-react-native/integration_rn59/components/diagnostic.tsx:34
Method
render
()
tfjs-react-native/integration_rn59/components/tfjs_unit_test_runner.tsx:218
Method
render
()
tfjs-react-native/integration_rn59/components/run.tsx:69
Method
render
()
tfjs-react-native/integration_rn59/components/mobilenet_demo.tsx:119
Method
render
()
tfjs-react-native/integration_rn59/components/webcam/webcam_demo.tsx:268
Method
render
()
tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx:228
Method
renderFunc
()
tfjs-react-native/src/camera/camera_stream.tsx:321
Method
renderLoop
()
tfjs-react-native/src/camera/camera_stream.tsx:248
Function
repeat
* Repeats this dataset `count` times. * * NOTE: If this dataset is a function of global state (e.g. a random number * generator), then differ
tfjs-data/src/dataset.ts:341
Function
repeat
(x: Tensor, n: number)
tfjs-layers/src/backend/tfjs_backend.ts:103
Function
repeatVector
(args: RepeatVectorLayerArgs)
tfjs-layers/src/exports_layers.ts:610
Function
repeatedTry
( checkFn: () => boolean, delayFn = (counter: number) => 0, maxCounter?: number, scheduleFn?: (fun
tfjs-core/src/util_base.ts:290
Function
replacer
(key: string, value: any)
tfjs-converter/tools/pb2json_converter.ts:23
Function
rerouteLog
(message?: any, ...optionalParams: any[])
tfjs-layers/src/model_summary_test.ts:96
Function
rerun
(rowNum)
tfjs-backend-webgpu/perf/tune.js:332
Function
rescaling
(args?: RescalingArgs)
tfjs-layers/src/exports_layers.ts:1733
Method
reset
()
tfjs-core/src/environment.ts:155
Function
resetMaxTextureSize
()
tfjs-backend-webgl/src/webgl_util.ts:522
Function
resetMaxTexturesInShader
()
tfjs-backend-webgl/src/webgl_util.ts:525
Function
resetStates
* Reset the state of all stateful constituent layers (if any). * * Examples of stateful layers include RNN layers whose `stateful` property *
tfjs-layers/src/engine/container.ts:1368
Function
resetStates
* Reset the states of the layer. * * This method of the base Layer class is essentially a no-op. * Subclasses that are stateful (e.g., statef
tfjs-layers/src/engine/topology.ts:732
Method
resetStates
(states?: Tensor|Tensor[], training = false)
tfjs-layers/src/layers/convolutional_recurrent.ts:201
Method
resetStates
(states?: Tensor|Tensor[])
tfjs-layers/src/layers/wrappers.ts:492
Function
resetSystemFetch
()
tfjs-core/src/platforms/platform_node.ts:30
Method
reshapeAs
(x: T)
tfjs-core/src/public/chained_ops/reshape_as.ts:24
Function
reshape_
* Reshapes a `tf.Tensor` to a given shape. * * Given an input tensor, returns a new tensor with the same values as the * input tensor with shape `s
tfjs-core/src/ops/reshape.ts:54
Function
resizeBilinear
(args: { inputs: ResizeBilinearInputs, backend: WebGPUBackend, attrs: ResizeBilinearAttrs })
tfjs-backend-webgpu/src/kernels/ResizeBilinear.ts:23
Function
resizeBilinear
(args: { inputs: ResizeBilinearInputs, backend: MathBackendWebGL, attrs: ResizeBilinearAttrs })
tfjs-backend-webgl/src/kernels/ResizeBilinear.ts:24
Function
resizeBilinear
(args: { backend: BackendWasm, inputs: ResizeBilinearInputs, attrs: ResizeBilinearAttrs })
tfjs-backend-wasm/src/kernels/ResizeBilinear.ts:44
Function
resizeBilinearGrad
(args: { inputs: ResizeBilinearGradInputs, backend: MathBackendCPU, attrs: ResizeBilinearGradAttrs })
tfjs-backend-cpu/src/kernels/ResizeBilinearGrad.ts:23
Function
resizeBilinearGrad
(args: { inputs: ResizeBilinearGradInputs, backend: WebGPUBackend, attrs: ResizeBilinearGradAttrs })
tfjs-backend-webgpu/src/kernels/ResizeBilinearGrad.ts:23
Function
resizeBilinearGrad
(args: { inputs: ResizeBilinearGradInputs, backend: MathBackendWebGL, attrs: ResizeBilinearGradAttrs })
tfjs-backend-webgl/src/kernels/ResizeBilinearGrad.ts:23
Function
resizeBilinearGrad
(args: { backend: BackendWasm; inputs: ResizeBilinearGradInputs; attrs: ResizeBilinearGradAttrs; })
tfjs-backend-wasm/src/kernels/ResizeBilinearGrad.ts:41
Function
resizeBilinear_
* Bilinear resize a single 3D image or a batch of 3D images to a new shape. * * @param images The images, of rank 4 or rank 3, of shape * `[bat
tfjs-core/src/ops/image/resize_bilinear.ts:47
Function
resizeNearestNeighbor
(args: { inputs: ResizeNearestNeighborInputs, backend: WebGPUBackend, attrs: ResizeNearestNeighborAttrs
tfjs-backend-webgpu/src/kernels/ResizeNearestNeighbor.ts:23
Function
resizeNearestNeighbor
(args: { inputs: ResizeNearestNeighborInputs, backend: MathBackendWebGL, attrs: ResizeNearestNeighborAtt
tfjs-backend-webgl/src/kernels/ResizeNearestNeighbor.ts:24
Function
resizeNearestNeighbor
(args: { backend: BackendWasm; inputs: ResizeNearestNeighborInputs; attrs: ResizeNearestNeighborAttrs; }
tfjs-backend-wasm/src/kernels/ResizeNearestNeighbor.ts:64
Function
resizeNearestNeighborGrad
(args: { inputs: ResizeNearestNeighborGradInputs, backend: MathBackendCPU, attrs: ResizeNearestNeighborG
tfjs-backend-cpu/src/kernels/ResizeNearestNeighborGrad.ts:23
Function
resizeNearestNeighborGrad
(args: { inputs: ResizeNearestNeighborGradInputs, backend: WebGPUBackend, attrs: ResizeNearestNeighborGr
tfjs-backend-webgpu/src/kernels/ResizeNearestNeighborGrad.ts:23
Function
resizeNearestNeighborGrad
(args: { inputs: ResizeNearestNeighborGradInputs, backend: MathBackendWebGL, attrs: ResizeNearestNeighbo
tfjs-backend-webgl/src/kernels/ResizeNearestNeighborGrad.ts:23
Function
resizeNearestNeighborGrad
(args: { backend: BackendWasm; inputs: ResizeNearestNeighborGradInputs; attrs: ResizeNearestNeighborGradAt
tfjs-backend-wasm/src/kernels/ResizeNearestNeighborGrad.ts:41
Function
resizeNearestNeighbor_
* NearestNeighbor resize a batch of 3D images to a new shape. * * @param images The images, of rank 4 or rank 3, of shape * `[batch, height, wi
tfjs-core/src/ops/image/resize_nearest_neighbor.ts:48
Function
resizing
(args?: ResizingArgs)
tfjs-layers/src/exports_layers.ts:1792
Function
resolveFully
* Draw items from the stream until it is exhausted. * * This can be useful when the stream has side effects but no output. In * that case, c
tfjs-data/src/iterators/lazy_iterator.ts:212
Function
resolveWhile
* Draw items from the stream until it is exhausted, or a predicate fails. * * This can be useful when the stream has side effects but no output.
tfjs-data/src/iterators/lazy_iterator.ts:226
Method
resourceManager
* Set `ResourceManager` shared by executors of a model. * @param resourceManager: `ResourceManager` of the `GraphModel`.
tfjs-converter/src/executor/graph_executor.ts:76
Function
resource_initializer
()
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:632
Function
revComparator
(a: number, b: number)
tfjs-core/src/backends/non_max_suppression_util_test.ts:88
Function
reverse
( args: {inputs: ReverseInputs, backend: WebGPUBackend, attrs: ReverseAttrs})
tfjs-backend-webgpu/src/kernels/Reverse.ts:26
Function
reverse
(args: { inputs: ReverseInputs, backend: MathBackendWebGL, attrs: ReverseAttrs })
tfjs-backend-webgl/src/kernels/Reverse.ts:26
Function
reverse
( args: {inputs: ReverseInputs, backend: BackendWasm, attrs: ReverseAttrs})
tfjs-backend-wasm/src/kernels/Reverse.ts:40
Function
reverse1d_
* Reverses a `tf.Tensor1D`. * * @param x The input tensor.
tfjs-core/src/ops/reverse_1d.ts:30
Function
reverse2d_
* Reverses a `tf.Tensor2D` along a specified axis. * * @param x The input tensor. * @param axis The set of dimensions to reverse. Must be in the *
tfjs-core/src/ops/reverse_2d.ts:32
Function
reverse3d_
* Reverses a `tf.Tensor3D` along a specified axis. * * @param x The input tensor. * @param axis The set of dimensions to reverse. Must be in the *
tfjs-core/src/ops/reverse_3d.ts:32
Function
reverse4d_
* Reverses a `tf.Tensor4D` along a specified axis. * * @param x The input tensor. * @param axis The set of dimensions to reverse. Must be in the *
tfjs-core/src/ops/reverse_4d.ts:32
Function
reverseNumberCompare
(a: number, b: number)
tfjs-layers/src/utils/generic_utils.ts:314
Function
reverse_
* Reverses a `tf.Tensor` along a specified axis. * * Also available are stricter rank-specific methods that assert that `x` is * of the given rank:
tfjs-core/src/ops/reverse.ts:59
Function
rfft_
* Real value input fast Fourier transform. * * Computes the 1-dimensional discrete Fourier transform over the * inner-most dimension of the real in
tfjs-core/src/ops/spectral/rfft.ts:48
Function
rgbToGrayscale_
* Converts images from RGB format to grayscale. * * @param image A RGB tensor to convert. The `image`'s last dimension must * be size 3 with at
tfjs-core/src/ops/image/rgb_to_grayscale.ts:36
← previous
next →
5,201–5,300 of 6,022, ranked by callers