MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

Methodread
(dataId: DataId)
tfjs-node/src/nodejs_kernel_backend.ts:218
Methodread
(dataId: DataId)
tfjs-backend-webgl/src/backend_webgl.ts:320
Methodread
(dataId: DataId)
tfjs-backend-wasm/src/backend_wasm.ts:114
MethodreadDataGPUToCPU
(width: number, height: number, offset: number)
tfjs-backend-webgpu/src/backend_webgpu.ts:439
MethodreadSync
(dataId: DataId)
tfjs-core/src/backends/backend.ts:34
MethodreadSync
(dataId: object)
tfjs-core/src/backends/backend.ts:116
MethodreadToGPU
* Read tensor to a new GPUBuffer. * @param dataId The source tensor.
tfjs-backend-webgpu/src/backend_webgpu.ts:596
MethodreadToGPU
(dataId: DataId, options?: DataToGPUOptions)
tfjs-core/src/engine.ts:1229
MethodreadToGPU
(dataId: object, options?: DataToGPUOptions)
tfjs-core/src/backends/backend.ts:119
MethodreadToGPU
* 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
Functionread_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
Functionready
()
tfjs-core/src/globals.ts:302
Functionreal_
* 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
Functionrecall
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/metrics.ts:75
Functionrecall
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/exports_metrics.ts:204
Functionreciprocal_
* 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
FunctionrecordDropoutTrainingArgHook
(inputs: Tensor|Tensor[], kwargs: Kwargs)
tfjs-layers/src/engine/training_test.ts:1753
FunctionrecordKwargsHook
(inputs: Tensor|Tensor[], kwargs: {})
tfjs-layers/src/engine/container_test.ts:669
MethodrefCount
Return refCount of a `TensorData`.
tfjs-backend-cpu/src/backend_cpu.ts:97
MethodrefCount
Return refCount of a `TensorData`.
tfjs-backend-webgpu/src/backend_webgpu.ts:244
MethodrefCount
(dataId: DataId)
tfjs-core/src/backends/backend.ts:101
MethodrefCount
Return refCount of a `TensorData`.
tfjs-node/src/nodejs_kernel_backend.ts:257
MethodrefCount
Return refCount of a `TensorData`.
tfjs-backend-webgl/src/backend_webgl.ts:230
MethodrefCount
Return refCount of a `TensorData`.
tfjs-backend-wasm/src/backend_wasm.ts:161
FunctionregisterCallbackConstructor
( verbosityLevel: number, callbackConstructor: BaseCallbackConstructor)
tfjs-layers/src/exports.ts:165
FunctionregisterLoadRouter
(loudRouter: IORouter)
tfjs-core/src/io/router_registry.ts:106
FunctionregisterMonitor
(promise: Promise<T>)
tfjs-core/src/io/progress.ts:39
FunctionregisterSaveRouter
(loudRouter: IORouter)
tfjs-core/src/io/router_registry.ts:104
MethodregisteredVariables
()
tfjs-core/src/engine.ts:1257
Functionrelu6_
* 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
Functionrelu_
* 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
FunctionremoveCustomProps
(step: CustomCloudbuildStep)
scripts/generate_cloudbuild.ts:39
FunctionremoveModel
* 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
MethodremoveModel
(path: string)
tfjs-core/src/io/indexed_db.ts:315
MethodremoveModel
(path: string)
tfjs-core/src/io/local_storage.ts:380
Functionrename_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
Methodrender
* 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
Methodrender
()
tfjs-vis/src/components/tabs.tsx:31
Methodrender
()
tfjs-vis/src/components/surface.tsx:57
Methodrender
* Render the component
tfjs-react-native/src/camera/camera_stream.tsx:348
Methodrender
()
tfjs-react-native/integration_rn59/App.tsx:195
Methodrender
()
tfjs-react-native/integration_rn59/components/diagnostic.tsx:34
Methodrender
()
tfjs-react-native/integration_rn59/components/tfjs_unit_test_runner.tsx:218
Methodrender
()
tfjs-react-native/integration_rn59/components/run.tsx:69
Methodrender
()
tfjs-react-native/integration_rn59/components/mobilenet_demo.tsx:119
Methodrender
()
tfjs-react-native/integration_rn59/components/webcam/webcam_demo.tsx:268
Methodrender
()
tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx:228
MethodrenderFunc
()
tfjs-react-native/src/camera/camera_stream.tsx:321
MethodrenderLoop
()
tfjs-react-native/src/camera/camera_stream.tsx:248
Functionrepeat
* 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
Functionrepeat
(x: Tensor, n: number)
tfjs-layers/src/backend/tfjs_backend.ts:103
FunctionrepeatVector
(args: RepeatVectorLayerArgs)
tfjs-layers/src/exports_layers.ts:610
FunctionrepeatedTry
( checkFn: () => boolean, delayFn = (counter: number) => 0, maxCounter?: number, scheduleFn?: (fun
tfjs-core/src/util_base.ts:290
Functionreplacer
(key: string, value: any)
tfjs-converter/tools/pb2json_converter.ts:23
FunctionrerouteLog
(message?: any, ...optionalParams: any[])
tfjs-layers/src/model_summary_test.ts:96
Functionrerun
(rowNum)
tfjs-backend-webgpu/perf/tune.js:332
Functionrescaling
(args?: RescalingArgs)
tfjs-layers/src/exports_layers.ts:1733
Methodreset
()
tfjs-core/src/environment.ts:155
FunctionresetMaxTextureSize
()
tfjs-backend-webgl/src/webgl_util.ts:522
FunctionresetMaxTexturesInShader
()
tfjs-backend-webgl/src/webgl_util.ts:525
FunctionresetStates
* 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
FunctionresetStates
* 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
MethodresetStates
(states?: Tensor|Tensor[], training = false)
tfjs-layers/src/layers/convolutional_recurrent.ts:201
MethodresetStates
(states?: Tensor|Tensor[])
tfjs-layers/src/layers/wrappers.ts:492
FunctionresetSystemFetch
()
tfjs-core/src/platforms/platform_node.ts:30
MethodreshapeAs
(x: T)
tfjs-core/src/public/chained_ops/reshape_as.ts:24
Functionreshape_
* 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
FunctionresizeBilinear
(args: { inputs: ResizeBilinearInputs, backend: WebGPUBackend, attrs: ResizeBilinearAttrs })
tfjs-backend-webgpu/src/kernels/ResizeBilinear.ts:23
FunctionresizeBilinear
(args: { inputs: ResizeBilinearInputs, backend: MathBackendWebGL, attrs: ResizeBilinearAttrs })
tfjs-backend-webgl/src/kernels/ResizeBilinear.ts:24
FunctionresizeBilinear
(args: { backend: BackendWasm, inputs: ResizeBilinearInputs, attrs: ResizeBilinearAttrs })
tfjs-backend-wasm/src/kernels/ResizeBilinear.ts:44
FunctionresizeBilinearGrad
(args: { inputs: ResizeBilinearGradInputs, backend: MathBackendCPU, attrs: ResizeBilinearGradAttrs })
tfjs-backend-cpu/src/kernels/ResizeBilinearGrad.ts:23
FunctionresizeBilinearGrad
(args: { inputs: ResizeBilinearGradInputs, backend: WebGPUBackend, attrs: ResizeBilinearGradAttrs })
tfjs-backend-webgpu/src/kernels/ResizeBilinearGrad.ts:23
FunctionresizeBilinearGrad
(args: { inputs: ResizeBilinearGradInputs, backend: MathBackendWebGL, attrs: ResizeBilinearGradAttrs })
tfjs-backend-webgl/src/kernels/ResizeBilinearGrad.ts:23
FunctionresizeBilinearGrad
(args: { backend: BackendWasm; inputs: ResizeBilinearGradInputs; attrs: ResizeBilinearGradAttrs; })
tfjs-backend-wasm/src/kernels/ResizeBilinearGrad.ts:41
FunctionresizeBilinear_
* 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
FunctionresizeNearestNeighbor
(args: { inputs: ResizeNearestNeighborInputs, backend: WebGPUBackend, attrs: ResizeNearestNeighborAttrs
tfjs-backend-webgpu/src/kernels/ResizeNearestNeighbor.ts:23
FunctionresizeNearestNeighbor
(args: { inputs: ResizeNearestNeighborInputs, backend: MathBackendWebGL, attrs: ResizeNearestNeighborAtt
tfjs-backend-webgl/src/kernels/ResizeNearestNeighbor.ts:24
FunctionresizeNearestNeighbor
(args: { backend: BackendWasm; inputs: ResizeNearestNeighborInputs; attrs: ResizeNearestNeighborAttrs; }
tfjs-backend-wasm/src/kernels/ResizeNearestNeighbor.ts:64
FunctionresizeNearestNeighborGrad
(args: { inputs: ResizeNearestNeighborGradInputs, backend: MathBackendCPU, attrs: ResizeNearestNeighborG
tfjs-backend-cpu/src/kernels/ResizeNearestNeighborGrad.ts:23
FunctionresizeNearestNeighborGrad
(args: { inputs: ResizeNearestNeighborGradInputs, backend: WebGPUBackend, attrs: ResizeNearestNeighborGr
tfjs-backend-webgpu/src/kernels/ResizeNearestNeighborGrad.ts:23
FunctionresizeNearestNeighborGrad
(args: { inputs: ResizeNearestNeighborGradInputs, backend: MathBackendWebGL, attrs: ResizeNearestNeighbo
tfjs-backend-webgl/src/kernels/ResizeNearestNeighborGrad.ts:23
FunctionresizeNearestNeighborGrad
(args: { backend: BackendWasm; inputs: ResizeNearestNeighborGradInputs; attrs: ResizeNearestNeighborGradAt
tfjs-backend-wasm/src/kernels/ResizeNearestNeighborGrad.ts:41
FunctionresizeNearestNeighbor_
* 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
Functionresizing
(args?: ResizingArgs)
tfjs-layers/src/exports_layers.ts:1792
FunctionresolveFully
* 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
FunctionresolveWhile
* 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
MethodresourceManager
* Set `ResourceManager` shared by executors of a model. * @param resourceManager: `ResourceManager` of the `GraphModel`.
tfjs-converter/src/executor/graph_executor.ts:76
Functionresource_initializer
()
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:632
FunctionrevComparator
(a: number, b: number)
tfjs-core/src/backends/non_max_suppression_util_test.ts:88
Functionreverse
( args: {inputs: ReverseInputs, backend: WebGPUBackend, attrs: ReverseAttrs})
tfjs-backend-webgpu/src/kernels/Reverse.ts:26
Functionreverse
(args: { inputs: ReverseInputs, backend: MathBackendWebGL, attrs: ReverseAttrs })
tfjs-backend-webgl/src/kernels/Reverse.ts:26
Functionreverse
( args: {inputs: ReverseInputs, backend: BackendWasm, attrs: ReverseAttrs})
tfjs-backend-wasm/src/kernels/Reverse.ts:40
Functionreverse1d_
* Reverses a `tf.Tensor1D`. * * @param x The input tensor.
tfjs-core/src/ops/reverse_1d.ts:30
Functionreverse2d_
* 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
Functionreverse3d_
* 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
Functionreverse4d_
* 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
FunctionreverseNumberCompare
(a: number, b: number)
tfjs-layers/src/utils/generic_utils.ts:314
Functionreverse_
* 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
Functionrfft_
* 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
FunctionrgbToGrayscale_
* 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
← previousnext →5,201–5,300 of 6,022, ranked by callers