MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

Functioncast_
* Casts a `tf.Tensor` to a new dtype. * * ```js * const x = tf.tensor1d([1.5, 2.5, 3]); * tf.cast(x, 'int32').print(); * ``` * @param x The inpu
tfjs-core/src/ops/cast.ts:40
FunctioncategoricalAccuracy
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/metrics.ts:32
FunctioncategoricalAccuracy
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/exports_metrics.ts:111
FunctioncategoricalCrossentropy
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/exports_metrics.ts:126
FunctioncategoricalHinge
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/losses.ts:83
FunctioncategoryEncoding
(args: CategoryEncodingArgs)
tfjs-layers/src/exports_layers.ts:1839
Functionceil_
* Computes ceiling of input `tf.Tensor` element-wise: `ceil(x)` * * ```js * const x = tf.tensor1d([.6, 1.1, -3.3]); * * x.ceil().print(); // or
tfjs-core/src/ops/ceil.ts:39
FunctioncenterCrop
(args?: CenterCropArgs)
tfjs-layers/src/exports_layers.ts:1766
Methodcheck
(shard: BufferShard)
tfjs-core/src/io/composite_array_buffer.ts:170
FunctioncheckArrayTypeAndLength
( x: any, expectedType: string, minLength = 0, maxLength = Infinity)
tfjs-layers/src/utils/generic_utils.ts:423
MethodcheckCompileCompletionAsync
()
tfjs-backend-webgl/src/backend_webgl.ts:1228
FunctioncheckConversionForErrors
( vals: DataTypeMap[D]|number[], dtype: D)
tfjs-core/src/util_base.ts:456
FunctioncheckEinsumDimSizes
( nDims: number, idDims: number[][], tensors: Tensor[])
tfjs-core/src/backends/einsum_util.ts:146
Functionclamp
(min: number, x: number, max: number)
tfjs-core/src/util_base.ts:91
MethodclassName
@nocollapse
tfjs-core/src/optimizers/adam_optimizer.ts:37
MethodclassName
@nocollapse
tfjs-core/src/optimizers/rmsprop_optimizer.ts:35
MethodclassName
@nocollapse
tfjs-core/src/optimizers/adamax_optimizer.ts:36
MethodclassName
@nocollapse
tfjs-core/src/optimizers/adadelta_optimizer.ts:34
MethodclassName
()
tfjs-core/src/optimizers/momentum_optimizer.ts:35
MethodclassName
@nocollapse
tfjs-core/src/optimizers/adagrad_optimizer.ts:34
MethodclassName
@nocollapse
tfjs-core/src/optimizers/sgd_optimizer.ts:32
Methodclassify
(input: string)
tfjs-tflite/src/tflite_task_library_client/bert_nl_classifier.ts:57
Methodclassify
(input: string)
tfjs-tflite/src/tflite_task_library_client/nl_classifier.ts:72
Methodclassify
(input: ImageData|HTMLImageElement|HTMLCanvasElement| HTMLVideoElement)
tfjs-tflite/src/tflite_task_library_client/image_classifier.ts:73
Methodclassify
(input: ImageInput, options?: ImageClassificationOptions)
tfjs-automl/src/img_classification.ts:42
FunctioncleanUp
()
e2e/benchmarks/local-benchmark/tflite_worker.js:36
MethodcleanUp
()
tfjs-tflite/src/tflite_task_library_client/common.ts:68
Functioncleanup_graph_def
Clean up the graph def by removing the skipped nodes and clean up the nodes with inputs that have been removed. Args: input_graph_def: Grap
tfjs-converter/python/tensorflowjs/converters/graph_rewrite_util.py:81
MethodclearAndClose
* Dispose the tensors and idTensor and clear the tensor list.
tfjs-converter/src/executor/tensor_list.ts:84
MethodclearAndClose
* Dispose the tensors and idTensor and mark the TensoryArray as closed.
tfjs-converter/src/executor/tensor_array.ts:55
FunctionclearCallHook
* Clear call hook. * This is currently used for testing only.
tfjs-layers/src/engine/topology.ts:874
FunctionclearWebGLContext
(webGLVersion: number)
tfjs-backend-webgl/src/canvas_util.ts:32
Functionclip
(args: { inputs: ClipByValueInputs, backend: BackendWasm, attrs: ClipByValueAttrs })
tfjs-backend-wasm/src/kernels/ClipByValue.ts:33
FunctionclipByValue
(args: { inputs: ClipByValueInputs, backend: WebGPUBackend, attrs: ClipByValueAttrs })
tfjs-backend-webgpu/src/kernels/ClipByValue.ts:25
FunctionclipByValue_
* Clips values element-wise. `max(min(x, clipValueMax), clipValueMin)` * * ```js * const x = tf.tensor1d([-1, 2, -3, 4]); * * x.clipByValue(-2, 3
tfjs-core/src/ops/clip_by_value.ts:43
Methodclone
* Returns a copy of the tensor. See `tf.clone` for details. * @doc {heading: 'Tensors', subheading: 'Classes'}
tfjs-core/src/tensor.ts:481
FunctioncloneIfTensor
(item: any)
tfjs-data/src/util/deep_clone.ts:27
Functionclone_
* Creates a new tensor with the same values and shape as the specified * tensor. * * ```js * const x = tf.tensor([1, 2]); * * x.clone().print();
tfjs-core/src/ops/clone.ts:41
Methodclose
()
tfjs-vis/src/components/visor.tsx:103
Methodclosed
()
tfjs-converter/src/executor/tensor_array.ts:48
FunctioncollectGatherOpShapeInfo
( x: TensorInfo, indices: TensorInfo, axis: number, batchDims: number)
tfjs-core/src/ops/segment_util.ts:74
FunctioncolumnMajorBatch
* Groups elements into batches, represented in column-major form. * * We can think of the elements of this iterator as 'rows' (even if they are
tfjs-data/src/iterators/lazy_iterator.ts:387
FunctioncombineRaggedTensorToTensorShapes
( raggedRank: number, shape: number[], valueShape: number[])
tfjs-core/src/ops/ragged_to_dense_util.ts:27
FunctioncommonMobileNetPredictFunc
()
e2e/benchmarks/model_config.js:82
FunctioncompareFunction
(a: Layer, b: Layer)
tfjs-layers/src/engine/container_test.ts:217
Methodcompile
(args: ModelCompileArgs)
tfjs-layers/src/layers/nlp/models/generative_task.ts:42
FunctioncompileProgram
(device: GPUDevice, program: WebGPUProgram, inputsData: InputInfo[], output: TensorInfo, parallelCompilat
tfjs-backend-webgpu/src/webgpu_program.ts:62
FunctioncompileProgram
( gpgpu: GPGPUContext, program: GPGPUProgram, inputs: TensorData[], output: TensorData)
tfjs-backend-webgl/src/gpgpu_math.ts:84
FunctioncomplexAbs
(args: {inputs: ComplexAbsInputs, backend: MathBackendCPU})
tfjs-backend-cpu/src/kernels/ComplexAbs.ts:23
FunctioncomplexAbs
( args: {inputs: ComplexAbsInputs, backend: WebGPUBackend})
tfjs-backend-webgpu/src/kernels/ComplexAbs.ts:35
FunctioncomplexAbs
( args: {inputs: ComplexAbsInputs, backend: MathBackendWebGL})
tfjs-backend-webgl/src/kernels/ComplexAbs.ts:35
FunctioncomplexWithEvenIndex
(complex: Float32Array)
tfjs-core/src/backends/complex_util.ts:77
FunctioncomplexWithOddIndex
(complex: Float32Array)
tfjs-core/src/backends/complex_util.ts:93
Functioncomplex_
* Converts two real numbers to a complex number. * * Given a tensor `real` representing the real part of a complex number, and a * tensor `imag` re
tfjs-core/src/ops/complex.ts:47
FunctioncomplexifyExampleAsDict
(simple: any)
tfjs-data/src/dataset_test.ts:71
MethodcomponentDidMount
()
tfjs-vis/src/components/visor.tsx:206
MethodcomponentDidMount
()
tfjs-vis/src/components/surface.tsx:46
MethodcomponentDidMount
()
tfjs-react-native/integration_rn59/App.tsx:55
MethodcomponentDidMount
* If a getRunner function is present in props, execute it * numRun times and report the result and timing info.
tfjs-react-native/integration_rn59/components/tfjs_unit_test_runner.tsx:63
MethodcomponentDidMount
* If a getRunner function is present in props, execute it * numRun times and report the result and timing info.
tfjs-react-native/integration_rn59/components/run.tsx:47
MethodcomponentDidMount
()
tfjs-react-native/integration_rn59/components/mobilenet_demo.tsx:50
MethodcomponentDidMount
()
tfjs-react-native/integration_rn59/components/webcam/webcam_demo.tsx:55
MethodcomponentDidMount
()
tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx:130
MethodcomponentDidUpdate
()
tfjs-vis/src/components/surface.tsx:51
MethodcomponentWillMount
()
tfjs-vis/src/components/visor.tsx:210
MethodcomponentWillReceiveProps
(nextProps: VisorProps)
tfjs-vis/src/components/visor.tsx:214
MethodcomponentWillUnmount
()
tfjs-react-native/src/camera/camera_stream.tsx:196
MethodcomponentWillUnmount
()
tfjs-react-native/integration_rn59/components/webcam/realtime_demo.tsx:124
Methodcompute
(self, x)
tfjs-converter/python/tensorflowjs/converters/generate_test_model.py:56
FunctioncomputeAffectedPackages
(dependencyGraph, package)
scripts/test-util.js:52
MethodcomputeAttention
( query: Tensor, key: Tensor, value: Tensor, attentionMask?: Tensor, training?: boolean
tfjs-layers/src/layers/nlp/multihead_attention_test.ts:496
FunctioncomputeDilation2DInfo
( inputShape: [number, number, number, number], filterShape: [number, number, number], strides: number
tfjs-core/src/ops/conv_util.ts:100
FunctioncomputeElementwiseOpOutputShape
* Computes the shape of the result of an elementwise operation. * * @param shape1: Shape of the first tensor. * @param shape2: Shape of the s
tfjs-layers/src/layers/merge.ts:58
FunctioncomputeFlatOffset
(begin: number[], strides: number[])
tfjs-core/src/ops/slice_util.ts:371
FunctioncomputeGradients
* Executes f() and computes the gradient of the scalar output of f() with * respect to the list of trainable variables provided by `varList`. If no
tfjs-core/src/optimizers/optimizer.ts:109
FunctioncomputeMask
* Computes an output mask tensor. * * @param inputs Tensor or list of tensors. * @param mask Tensor or list of tensors. * * @return nul
tfjs-layers/src/engine/container.ts:759
FunctioncomputeMask
* Computes an output mask tensor. * * @param inputs Tensor or list of tensors. * @param mask Tensor or list of tensors. * * @return nul
tfjs-layers/src/engine/topology.ts:1364
FunctioncomputeMask
(inputs: Tensor|Tensor[], mask?: Tensor|Tensor[])
tfjs-layers/src/layers/merge.ts:231
MethodcomputeMask
(inputs: Tensor|Tensor[], mask?: Tensor|Tensor[])
tfjs-layers/src/layers/merge.ts:731
MethodcomputeMask
(inputs: Tensor|Tensor[], mask?: Tensor|Tensor[])
tfjs-layers/src/layers/embeddings.ts:140
MethodcomputeMask
(inputs: Tensor|Tensor[], mask?: Tensor|Tensor[])
tfjs-layers/src/layers/core.ts:657
MethodcomputeMask
(inputs: Tensor|Tensor[], mask?: Tensor|Tensor[])
tfjs-layers/src/layers/wrappers.ts:507
MethodcomputeMask
(inputs: Tensor|Tensor[], mask?: Tensor|Tensor[])
tfjs-layers/src/layers/recurrent.ts:450
FunctioncomputeOptimalWindowSize
(inSize: number)
tfjs-core/src/ops/reduce_util.ts:33
FunctioncomputeOutShape
(shapes: number[][], axis: number)
tfjs-core/src/ops/concat_util.ts:46
FunctioncomputeOutShape
( begin: number[], end: number[], strides: number[])
tfjs-core/src/ops/slice_util.ts:119
FunctioncomputeOutShape
( aShape: number[], axis: number, numSegments: number)
tfjs-core/src/ops/segment_util.ts:52
FunctioncomputeOutputShape
* Computes the output shape of the layer. * * Assumes that the layer will be built to match that input shape provided. * * @param inputSha
tfjs-layers/src/engine/container.ts:783
FunctioncomputeOutputShape
* Computes the output shape of the layer. * * Assumes that the layer will be built to match that input shape provided. * * @param inputSha
tfjs-layers/src/engine/topology.ts:1351
FunctioncomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/merge.ts:203
FunctioncomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/convolutional.ts:602
FunctioncomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/pooling.ts:204
MethodcomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/merge.ts:711
MethodcomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/convolutional.ts:816
MethodcomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/convolutional.ts:969
MethodcomputeOutputShape
(inputShape: Shape)
tfjs-layers/src/layers/convolutional.ts:1305
MethodcomputeOutputShape
(inputShape: Shape)
tfjs-layers/src/layers/convolutional.ts:1399
MethodcomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/advanced_activations.ts:57
MethodcomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/advanced_activations.ts:97
MethodcomputeOutputShape
(inputShape: Shape|Shape[])
tfjs-layers/src/layers/advanced_activations.ts:250
← previousnext →3,301–3,400 of 6,022, ranked by callers