MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

MethodlistModels
()
tfjs-core/src/io/indexed_db.ts:278
MethodlistModels
()
tfjs-core/src/io/local_storage.ts:366
Functionlist_dir
List the files inside a dir where path is relative to tensorflowjs/. Args: path: a string path to a resource directory relative to tensorflowjs
tfjs-converter/python/tensorflowjs/resource_loader.py:40
Methodload
* Load a model from local storage. * * See the documentation to `browserLocalStorage` for details on the saved * artifacts. * * @return
tfjs-react-native/src/bundle_resource_io.ts:53
Methodload
()
tfjs-core/src/io/indexed_db.ts:112
Methodload
()
tfjs-core/src/io/browser_files.ts:138
Methodload
* Load a model from local storage. * * See the documentation to `browserLocalStorage` for details on the saved * artifacts. * * @return
tfjs-core/src/io/local_storage.ts:238
FunctionloadImageClassification
(modelUrl: string)
tfjs-automl/src/img_classification.ts:67
FunctionloadObjectDetection
(modelUrl: string)
tfjs-automl/src/object_detection.ts:105
MethodloadOptionsData
()
tfjs-core/src/io/router_registry_test.ts:129
FunctionloadSavedModel
( path: string, tags = ['serve'], signature = 'serving_default')
tfjs-node/src/saved_model.ts:393
FunctionloadTFDFModelSync
(modelSource: TFDFLoadHandlerSync)
tfjs-tfdf/src/tfdf_model.ts:193
FunctionloadTFJS
(localBuild)
e2e/benchmarks/local-benchmark/loader.js:45
FunctionloadTFLiteModel
( model: string|ArrayBuffer, options?: TFLiteWebModelRunnerOptions)
tfjs-tflite/src/tflite_model.ts:319
FunctionloadTFLiteModel
(modelPath, options)
e2e/benchmarks/local-benchmark/tflite_worker.js:28
FunctionloadWeights
* Loads all layer weights from a JSON object. * * Porting Note: HDF5 weight files cannot be directly loaded in JavaScript / * TypeScript. T
tfjs-layers/src/engine/container.ts:605
Functionload_keras_keras_model
Load a Keras Model from TensorFlow.js-format artifacts from file system Args: config_json_path: Path to the TensorFlow.js-format JSON file that
tfjs-converter/python/tensorflowjs/converters/keras_tfjs_loader.py:304
Functionload_keras_model
Load a Keras Model from TensorFlow.js-format artifacts from file system Args: config_json_path: Path to the TensorFlow.js-format JSON file that
tfjs-converter/python/tensorflowjs/converters/keras_tfjs_loader.py:237
FunctionlocToIndex
( locs: number[], rank: number, strides: number[])
tfjs-core/src/util_base.ts:696
FunctionlocalGraphModelRunner
()
tfjs-react-native/integration_rn59/components/ml.ts:90
FunctionlocalModelRunner
()
tfjs-react-native/integration_rn59/components/ml.ts:72
FunctionlocalResponseNormalizationBackprop_
( x: T, y: T, dy: T, depthRadius = 5, bias = 1, alpha = 1, beta = 0.5)
tfjs-core/src/ops/local_response_normalization_backprop.ts:26
FunctionlocalResponseNormalization_
* Normalizes the activation of a local neighborhood across or within * channels. * * @param x The input tensor. The 4-D input tensor is treated as
tfjs-core/src/ops/local_response_normalization.ts:45
FunctionlocalShardedGraphModelRunner
()
tfjs-react-native/integration_rn59/components/ml.ts:109
FunctionlocalStorageRouter
(url: string)
tfjs-core/src/io/router_registry_test.ts:27
MethodlocateFile
(path: string, prefix: string)
tfjs-backend-wasm/wasm-out/tfjs-backend-wasm.d.ts:34
MethodlocateFile
(path: string, prefix: string)
tfjs-backend-wasm/wasm-out/tfjs-backend-wasm-threaded-simd.d.ts:29
Functionlog1p_
* Computes natural logarithm of the input `tf.Tensor` plus one * element-wise: `ln(1 + x)` * * ```js * const x = tf.tensor1d([1, 2, Math.E - 1]);
tfjs-core/src/ops/log1p.ts:40
MethodlogKernelProfile
(kernelProfile: KernelProfile)
tfjs-core/src/profiler.ts:81
FunctionlogLoss_
* Computes the log loss between two tensors. * * @param labels The ground truth output tensor, same dimensions as * 'predictions'. * @param pre
tfjs-core/src/ops/losses/log_loss.ts:49
FunctionlogSigmoid_
* Computes log sigmoid of the input `tf.Tensor` element-wise: * `logSigmoid(x)`. For numerical stability, we use `-tf.softplus(-x)`. * * ```js * c
tfjs-core/src/ops/log_sigmoid.ts:42
FunctionlogSoftmax_
* Computes the log softmax. * * ```js * const a = tf.tensor1d([1, 2, 3]); * * a.logSoftmax().print(); // or tf.logSoftmax(a) * ``` * * ```js
tfjs-core/src/ops/log_softmax.ts:55
FunctionlogSumExp_
* Computes the log(sum(exp(elements across the reduction dimensions))). * * Reduces the input along the dimensions given in `axis`. Unless `keepDims
tfjs-core/src/ops/log_sum_exp.ts:62
Functionlog_
* Computes natural logarithm of the input `tf.Tensor` element-wise: `ln(x)` * * ```js * const x = tf.tensor1d([1, 2, Math.E]); * * x.log().print(
tfjs-core/src/ops/log.ts:39
Functionlogcosh
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/losses.ts:99
FunctionlogicalAnd_
* Returns the truth value of `a AND b` element-wise. Supports broadcasting. * * ```js * const a = tf.tensor1d([false, false, true, true], 'bool');
tfjs-core/src/ops/logical_and.ts:42
FunctionlogicalNot_
* Returns the truth value of `NOT x` element-wise. * * ```js * const a = tf.tensor1d([false, true], 'bool'); * * a.logicalNot().print(); * ```
tfjs-core/src/ops/logical_not.ts:39
FunctionlogicalOr_
* Returns the truth value of `a OR b` element-wise. Supports broadcasting. * * ```js * const a = tf.tensor1d([false, false, true, true], 'bool');
tfjs-core/src/ops/logical_or.ts:41
FunctionlogicalXor_
* Returns the truth value of `a XOR b` element-wise. Supports broadcasting. * * ```js * const a = tf.tensor1d([false, false, true, true], 'bool');
tfjs-core/src/ops/logical_xor.ts:43
Methodlookup
* Look up the encoded outputs of given tokens.
tfjs-layers/src/layers/nlp/tokenizers_utils.ts:150
Methodlookup
(input)
e2e/integration_tests/convert_predict.py:447
Methodlookup
(input)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:141
Methodloop
()
tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx:88
MethodloopCondition
(mask: boolean[])
tfjs-layers/src/layers/nlp/tokenizers.ts:448
Functionlosses
()
tfjs-layers/src/engine/topology.ts:650
Functionlosses
()
tfjs-layers/src/layers/wrappers.ts:103
FunctionlowerBound
( sortedSequence: Tensor|TensorLike, values: Tensor|TensorLike)
tfjs-core/src/ops/lower_bound.ts:69
Functionlrn
( args: {inputs: LRNInputs, backend: WebGPUBackend, attrs: LRNAttrs})
tfjs-backend-webgpu/src/kernels/LRN.ts:23
Functionlrn
(args: {inputs: LRNInputs, backend: MathBackendWebGL, attrs: LRNAttrs})
tfjs-backend-webgl/src/kernels/LRN.ts:25
Functionlrn
(args: { inputs: LRNInputs, attrs: LRNAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/LRN.ts:38
FunctionlrnGrad
( args: {inputs: LRNGradInputs, backend: WebGPUBackend, attrs: LRNGradAttrs})
tfjs-backend-webgpu/src/kernels/LRNGrad.ts:23
FunctionlrnGrad
(args: { inputs: LRNGradInputs, backend: MathBackendWebGL, attrs: LRNGradAttrs })
tfjs-backend-webgl/src/kernels/LRNGrad.ts:23
FunctionlrnGrad
(args: { inputs: LRNGradInputs, attrs: LRNGradAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/LRNGrad.ts:40
Functionlstm
(args: LSTMLayerArgs)
tfjs-layers/src/exports_layers.ts:1251
Functionlstm1
(data: Tensor2D, c: Tensor2D, h: Tensor2D)
tfjs-core/src/ops/multi_rnn_cell_test.ts:47
Functionlstm2
(data: Tensor2D, c: Tensor2D, h: Tensor2D)
tfjs-core/src/ops/multi_rnn_cell_test.ts:49
FunctionlstmCell
(args: LSTMCellLayerArgs)
tfjs-layers/src/exports_layers.ts:1300
Functionmain
(_)
tfjs-converter/python/tensorflowjs/converters/generate_test_model.py:44
FunctionmakeCompatableWithFirestore
* This function makes the result object returned from benchmark app aligned * with target firestore collection's schema. * * @param result Individu
e2e/benchmarks/browserstack-benchmark/firestore.js:96
FunctionmakeContainer
()
tfjs-layers/src/engine/container_test.ts:140
MethodmakeGenerateFunction
* Create or return the compiled generation function.
tfjs-layers/src/layers/nlp/models/generative_task.ts:59
FunctionmakeIterator
()
tfjs-data/src/readers_test.ts:81
FunctionmakeIterator
()
tfjs-data/src/dataset_test.ts:222
FunctionmakeShader
( inputsInfo: InputInfo[], outputShape: ShapeInfo, program: ProgramParams)
tfjs-backend-webgl/src/shader_compiler.ts:50
FunctionmakeShaderKey
( program: WebGPUProgram, inputsData: InputInfo[], output: TensorInfo)
tfjs-backend-webgpu/src/webgpu_program.ts:350
FunctionmakeShaderKey
( program: GPGPUProgram, inputs: TensorData[], output: TensorData)
tfjs-backend-webgl/src/gpgpu_math.ts:405
MethodmakeVariable
( initialValue: Tensor, trainable = true, name?: string, dtype?: DataType)
tfjs-core/src/engine.ts:856
FunctionmakeZerosNestedTypedArray
( shape: number[], dtype: D)
tfjs-core/src/util_base.ts:664
Functionmap
* Maps this stream through a 1-to-1 transform. * * @param transform A function mapping a stream element to a transformed * element. *
tfjs-data/src/iterators/lazy_iterator.ts:273
FunctionmapAsync
* Maps this dataset through an async 1-to-1 transform. * * ```js * const a = * tf.data.array([1, 2, 3]).mapAsync(x => new Promise(functio
tfjs-data/src/dataset.ts:295
FunctionmapAsync
* Maps this stream through an async 1-to-1 transform. * * @param transform A function mapping a stream element to a `Promise` for a * trans
tfjs-data/src/iterators/lazy_iterator.ts:285
Functionmap_layers_to_quantization_dtype
Maps node names to their quantization dtypes. Given a quantization_dtype_map which maps dtypes `uint8`, `uint16`, `float16` to node patterns, e.g
tfjs-converter/python/tensorflowjs/quantization.py:33
Functionmape
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/exports_metrics.ts:284
FunctionmaskToAxes
(mask: number)
tfjs-core/src/ops/slice_util.ts:105
Functionmasking
(args?: MaskingArgs)
tfjs-layers/src/exports_layers.ts:1702
FunctionmatMul_
* Computes the dot product of two matrices, A * B. These must be matrices. * * ```js * const a = tf.tensor2d([1, 2], [1, 2]); * const b = tf.tenso
tfjs-core/src/ops/mat_mul.ts:44
Methodmatmul_addV2
(x)
tfjs-converter/python/tensorflowjs/converters/normalize_bias_add_test.py:95
FunctionmaxNorm
(args: MaxNormArgs)
tfjs-layers/src/exports_constraints.ts:26
FunctionmaxPool
( args: {inputs: MaxPoolInputs, backend: WebGPUBackend, attrs: MaxPoolAttrs})
tfjs-backend-webgpu/src/kernels/MaxPool.ts:22
FunctionmaxPool
(args: { inputs: MaxPoolInputs, backend: MathBackendWebGL, attrs: MaxPoolAttrs })
tfjs-backend-webgl/src/kernels/MaxPool.ts:24
FunctionmaxPool
( args: {inputs: MaxPoolInputs, backend: BackendWasm, attrs: MaxPoolAttrs})
tfjs-backend-wasm/src/kernels/MaxPool.ts:51
FunctionmaxPool3D
(args: { inputs: MaxPool3DInputs, backend: MathBackendCPU, attrs: MaxPool3DAttrs })
tfjs-backend-cpu/src/kernels/MaxPool3D.ts:24
FunctionmaxPool3D
(args: { inputs: MaxPool3DInputs, attrs: MaxPool3DAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/MaxPool3D.ts:58
FunctionmaxPool3DGrad
(args: { inputs: MaxPool3DGradInputs, backend: MathBackendCPU, attrs: MaxPool3DGradAttrs })
tfjs-backend-cpu/src/kernels/MaxPool3DGrad.ts:24
FunctionmaxPool3DGrad
(args: { inputs: MaxPool3DGradInputs, backend: WebGPUBackend, attrs: MaxPool3DGradAttrs })
tfjs-backend-webgpu/src/kernels/MaxPool3DGrad.ts:24
FunctionmaxPool3DGrad
(args: { inputs: MaxPool3DGradInputs, backend: MathBackendWebGL, attrs: MaxPool3DGradAttrs })
tfjs-backend-webgl/src/kernels/MaxPool3DGrad.ts:23
FunctionmaxPool3DGrad
(args: { inputs: MaxPool3DGradInputs, attrs: MaxPool3DGradAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/MaxPool3DGrad.ts:59
FunctionmaxPool3d
(args: { inputs: MaxPool3DInputs, backend: WebGPUBackend, attrs: MaxPool3DAttrs })
tfjs-backend-webgpu/src/kernels/MaxPool3D.ts:22
FunctionmaxPool3d
(args: { inputs: MaxPool3DInputs, backend: MathBackendWebGL, attrs: MaxPool3DAttrs })
tfjs-backend-webgl/src/kernels/MaxPool3D.ts:22
FunctionmaxPool3dGrad_
* Computes the backprop of a 3d max pool. * * @param dy The dy error, of rank 5 of shape * [batchSize, depth, height, width, channels]. * assu
tfjs-core/src/ops/max_pool_3d_grad.ts:53
FunctionmaxPool3d_
* Computes the 3D max pooling. * * ```js * const x = tf.tensor5d([1, 2, 3, 4, 5, 6, 7, 8], [1, 2, 2, 2, 1]); * const result = tf.maxPool3d(x, 2, 1
tfjs-core/src/ops/max_pool_3d.ts:66
FunctionmaxPoolGrad
(args: { inputs: MaxPoolGradInputs, backend: WebGPUBackend, attrs: MaxPoolGradAttrs })
tfjs-backend-webgpu/src/kernels/MaxPoolGrad.ts:25
FunctionmaxPoolGrad
(args: { inputs: MaxPoolGradInputs, backend: MathBackendWebGL, attrs: MaxPoolGradAttrs })
tfjs-backend-webgl/src/kernels/MaxPoolGrad.ts:24
FunctionmaxPoolGrad
(args: { inputs: MaxPoolGradInputs, attrs: MaxPoolGradAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/MaxPoolGrad.ts:52
FunctionmaxPoolGrad_
* Computes the backprop of a 2D max pool. * * @param dy The dy error, of rank 4 or rank 3 of shape * [batchSize, height, width, channels]. If r
tfjs-core/src/ops/max_pool_grad.ts:51
FunctionmaxPoolWithArgmax
(args: { inputs: MaxPoolWithArgmaxInputs, attrs: MaxPoolWithArgmaxAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/MaxPoolWithArgmax.ts:24
FunctionmaxPoolWithArgmax
(args: { inputs: MaxPoolWithArgmaxInputs, attrs: MaxPoolWithArgmaxAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/MaxPoolWithArgmax.ts:56
FunctionmaxPoolWithArgmax_
* Computes the 2D max pooling of an image with Argmax index. * The indices in argmax are flattened, so that a maximum value at position `[b, * y, x,
tfjs-core/src/ops/max_pool_with_argmax.ts:61
FunctionmaxPool_
* Computes the 2D max pooling of an image. * * @param x The input tensor, of rank 4 or rank 3 of shape * `[batch, height, width, inChannels]`.
tfjs-core/src/ops/max_pool.ts:56
FunctionmaxPooling1d
(args: Pooling1DLayerArgs)
tfjs-layers/src/exports_layers.ts:1096
← previousnext →4,801–4,900 of 6,022, ranked by callers