MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

↓ 1 callersFunctionshowBrowserField
* This is a wrapper function of `dat.gui.GUI.add()` with: * - Binds the `finishChange` event to update the value and options for the * controller of
e2e/benchmarks/browserstack-benchmark/index.js:266
↓ 1 callersFunctionshowExamples
(drawArea, numExamples)
tfjs-vis/demos/mnist_internals/index.js:39
↓ 1 callersFunctionshowModelSelection
()
e2e/benchmarks/browserstack-benchmark/index.js:644
↓ 1 callersFunctionshowParameterSettings
()
e2e/benchmarks/browserstack-benchmark/index.js:668
↓ 1 callersMethodshowResults
()
tfjs-react-native/integration_rn59/components/webcam/webcam_demo.tsx:64
↓ 1 callersFunctionshuffle
(array: any[]|Uint32Array|Int32Array| Float32Array)
tfjs-core/src/util_base.ts:34
↓ 1 callersFunctionsigmoidCrossEntropyWithLogits
( labels: Tensor, logits: Tensor)
tfjs-layers/src/losses.ts:171
↓ 1 callersFunctionsigmoidCrossEntropyWithLogits_
( labels: T|TensorLike, logits: T|TensorLike)
tfjs-core/src/ops/losses/sigmoid_cross_entropy.ts:36
↓ 1 callersFunctionsign
(x: Tensor)
tfjs-layers/src/backend/tfjs_backend.ts:474
↓ 1 callersFunctionsimpleAbsImpl
(vals: TypedArray)
tfjs-backend-cpu/src/kernels/Abs.ts:23
↓ 1 callersFunctionskewness
(values: TypedArray|number[])
tfjs-core/src/ops/rand_util.ts:276
↓ 1 callersFunctionsleep
* The unit tests in this file can be run by opening `./SpecRunner.html` in * browser.
e2e/benchmarks/benchmark_util_test.js:23
↓ 1 callersFunctionsleep
(timeMs)
e2e/benchmarks/browserstack-benchmark/app.js:223
↓ 1 callersFunctionsleep
(n)
e2e/benchmarks/browserstack-benchmark/app_node_test.js:276
↓ 1 callersFunctionslice2d
( xVals: backend_util.TypedArray, xStride: number, outVals: backend_util.TypedArray, begin: [number, n
tfjs-backend-wasm/src/kernels/Slice.ts:82
↓ 1 callersFunctionslice3d
( xVals: backend_util.TypedArray, xStride1: number, xStride2: number, outVals: backend_util.TypedArray
tfjs-backend-wasm/src/kernels/Slice.ts:97
↓ 1 callersFunctionslice4d
( xVals: backend_util.TypedArray, xStride1: number, xStride2: number, xStride3: number, outVals: backe
tfjs-backend-wasm/src/kernels/Slice.ts:116
↓ 1 callersFunctionsliceImpl
( vals: BackendValues, begin: number[], size: number[], shape: number[], dtype: DataType)
tfjs-backend-cpu/src/kernels/Slice.ts:23
↓ 1 callersFunctionsoftmax
( args: {inputs: SoftmaxInputs, backend: MathBackendCPU, attrs: SoftmaxAttrs})
tfjs-backend-cpu/src/kernels/Softmax.ts:29
↓ 1 callersFunctionsoftmax
( args: {inputs: SoftmaxInputs, backend: WebGPUBackend, attrs: SoftmaxAttrs})
tfjs-backend-webgpu/src/kernels/Softmax.ts:25
↓ 1 callersFunctionsoftmax
(args: { inputs: SoftmaxInputs, backend: MathBackendWebGL, attrs: SoftmaxAttrs })
tfjs-backend-webgl/src/kernels/Softmax.ts:29
↓ 1 callersFunctionsoftmax
( args: {backend: BackendWasm, inputs: SoftmaxInputs, attrs: SoftmaxAttrs})
tfjs-backend-wasm/src/kernels/Softmax.ts:34
↓ 1 callersFunctionsoftmaxCrossEntropyWithLogits_
* Computes softmax cross entropy between logits and labels. * * Measures the probability error in discrete classification tasks in which * the clas
tfjs-core/src/ops/losses/softmax_cross_entropy.ts:64
↓ 1 callersFunctionsparseFillEmptyRowsImpl
( indices: TypedArray, indicesShape: number[], indicesDType: DataType, values: TypedArray, valuesDType
tfjs-backend-cpu/src/kernels/SparseFillEmptyRows_impl.ts:20
↓ 1 callersFunctionsparseReshapeImpl
( inputIndices: TypedArray, inputIndicesShape: number[], inputDType: DataType, inputShape: number[],
tfjs-backend-cpu/src/kernels/SparseReshape_impl.ts:20
↓ 1 callersFunctionsplit
( str: Uint8Array, delimiters: Uint8Array, skipEmpty: boolean, result: Uint8Array[])
tfjs-backend-cpu/src/kernels/StringSplit_impl.ts:20
↓ 1 callersFunctionsqueezeShape
(shape: number[], axis?: number[])
tfjs-core/src/util_base.ts:403
↓ 1 callersFunctionstandardDeviation
(values: TypedArray|number[], mean: number)
tfjs-core/src/ops/rand_util.ts:253
↓ 1 callersFunctionstandardizeTensorValidationData
( data: [ tfc.Tensor|tfc.Tensor[], tfc.Tensor|tfc.Tensor[] ]|[tfc.Tensor | tfc.T
tfjs-layers/src/engine/training_dataset.ts:287
↓ 1 callersMethodstart
()
tfjs-data/src/iterators/microphone_iterator.ts:94
↓ 1 callersFunctionstartForAxis
( beginMask: number, startIndices: number[], strides: number[], inputShape: number[], axis: number, el
tfjs-core/src/ops/slice_util.ts:275
↓ 1 callersFunctionstartIndicesWithElidedDims
( beginMask: number, ellipsisInsertionIndex: number, numElidedAxes: number, originalBegin: number[], i
tfjs-core/src/ops/slice_util.ts:209
↓ 1 callersMethodstartTape
()
tfjs-core/src/engine.ts:1039
↓ 1 callersMethodstartTimer
()
tfjs-backend-webgl/src/backend_webgl.ts:616
↓ 1 callersFunctionstopForAxis
( endMask: number, stopIndices: number[], strides: number[], inputShape: number[], axis: number, ellip
tfjs-core/src/ops/slice_util.ts:308
↓ 1 callersFunctionstopIndicesWithElidedDims
( endMask: number, ellipsisInsertionIndex: number, numElidedAxes: number, originalEnd: number[], input
tfjs-core/src/ops/slice_util.ts:234
↓ 1 callersFunctionstr2workerURL
(str: string)
tfjs-tflite/src/worker_test.ts:20
↓ 1 callersFunctionstr2workerURL
(str: string)
tfjs-core/src/worker_test.ts:21
↓ 1 callersFunctionstr2workerURL
(str: string)
tfjs-core/src/ops/from_pixels_worker_test.ts:38
↓ 1 callersMethodstream
()
tfjs-core/src/io/http.ts:201
↓ 1 callersFunctionstreamWeights
(fetchURLs: string[], loadOptions: LoadOptions)
tfjs-core/src/io/weights_loader.ts:74
↓ 1 callersFunctionstridedSlice
(args: { inputs: StridedSliceInputs, backend: MathBackendCPU, attrs: StridedSliceAttrs })
tfjs-backend-cpu/src/kernels/StridedSlice.ts:26
↓ 1 callersFunctionstridedSliceImpl
( outShape: number[], xBuf: TensorBuffer<R>, strides: number[], begin: number[])
tfjs-backend-cpu/src/kernels/StridedSlice_impl.ts:20
↓ 1 callersFunctionstridesForAxis
( strides: number[], axis: number, ellipsisMask: number)
tfjs-core/src/ops/slice_util.ts:265
↓ 1 callersFunctionstridesWithElidedDims
( strides: number[], ellipsisInsertionIndex: number, numElidedAxes: number, inputShape: number[])
tfjs-core/src/ops/slice_util.ts:130
↓ 1 callersFunctionstringNGramsImpl
( data: Uint8Array[], dataSplits: Int32Array, separator: string, nGramWidths: number[], leftPad: strin
tfjs-backend-cpu/src/kernels/StringNGrams_impl.ts:217
↓ 1 callersFunctionstringSplitImpl
( input: Uint8Array[], delimiter: Uint8Array, skipEmpty: boolean)
tfjs-backend-cpu/src/kernels/StringSplit_impl.ts:64
↓ 1 callersFunctionstringToHashBucketFastImpl
( input: Uint8Array[], numBuckets: number)
tfjs-backend-cpu/src/kernels/StringToHashBucketFast_impl.ts:20
↓ 1 callersMethodstylize
(styleImage: tf.Tensor3D, contentImage: tf.Tensor3D)
tfjs-react-native/integration_rn59/components/webcam/style_transfer.ts:94
↓ 1 callersFunctionsubTensorToString
( vals: TypedArray|string[], shape: number[], dtype: DataType, strides: number[], padPerCol: number[],
tfjs-core/src/tensor_format.ts:90
↓ 1 callersFunctionsum
(array: number[]|Float32Array)
tfjs-layers/src/utils/math_utils.ts:101
↓ 1 callersFunctionsum
( args: {inputs: SumInputs, backend: WebGPUBackend, attrs: SumAttrs})
tfjs-backend-webgpu/src/kernels/Sum.ts:23
↓ 1 callersFunctionsumAcrossChannels
(offset: number)
tfjs-backend-cpu/src/kernels/LRN.ts:38
↓ 1 callersFunctionsumImpl
( x: TensorInfo, axis: number|number[], keepDims: boolean, backend: MathBackendWebGL)
tfjs-backend-webgl/src/kernels/Sum_impl.ts:26
↓ 1 callersFunctionsummarize
(argv: string[])
tfjs-converter/tools/model_summary.ts:19
↓ 1 callersMethodsummary
()
tfjs-data/src/iterators/byte_chunk_iterator.ts:57
↓ 1 callersMethodsummary
()
tfjs-data/src/iterators/string_iterator.ts:64
↓ 1 callersMethodsummaryWriter
(logdir: string)
tfjs-node/src/nodejs_kernel_backend.ts:503
↓ 1 callersFunctionsuppressWeight
(iouThreshold: number, scale: number, iou: number)
tfjs-core/src/backends/non_max_suppression_impl.ts:193
↓ 1 callersFunctionsymbolicallyComputeStrides
( indicesArr: number[], variableName: string)
tfjs-backend-webgl/src/shader_compiler_util.ts:55
↓ 1 callersFunctionsymlinkDepsLib
* Symlinks the extracted libtensorflow library to the destination path. If the * symlink fails, a copy is made.
tfjs-node/scripts/deps-stage.js:56
↓ 1 callersMethodtakeContentImage
()
tfjs-react-native/integration_rn59/components/webcam/webcam_demo.tsx:72
↓ 1 callersMethodtakeStyleImage
()
tfjs-react-native/integration_rn59/components/webcam/webcam_demo.tsx:68
↓ 1 callersMethodtearDown
(self)
tfjs-converter/python/test_pip_package.py:218
↓ 1 callersFunctiontensorScatterUpdate
(args: { inputs: TensorScatterUpdateInputs, backend: MathBackendCPU, attrs: TensorScatterUpdateAttrs })
tfjs-backend-cpu/src/kernels/TensorScatterUpdate.ts:24
↓ 1 callersMethodtensorShapeFromTensor
( t: TypedArray, tShape: number[], isPartial = true)
tfjs-backend-cpu/src/kernels/RaggedTensorToTensor_impl.ts:104
↓ 1 callersMethodtensorSize
* The number of items in the hash table as a rank-0 tensor.
tfjs-converter/src/executor/hash_table.ts:67
↓ 1 callersFunctiontensorToImageUrl
(imageTensor: tf.Tensor3D)
tfjs-react-native/integration_rn59/components/webcam/image_utils.ts:61
↓ 1 callersFunctiontensorToString
( vals: TypedArray|string[], shape: number[], dtype: DataType, verbose: boolean)
tfjs-core/src/tensor_format.ts:28
↓ 1 callersFunctiontestComputeOutputShape
* Test computed shape is equal to the layer output's shape.
tfjs-layers/src/layers/nlp/multihead_attention_test.ts:273
↓ 1 callersFunctiontestComputeOutputShapeError
* Test dimension mismatches.
tfjs-layers/src/layers/nlp/multihead_attention_test.ts:345
↓ 1 callersFunctiontestHighDimAttention
* Test with high dimensional inputs.
tfjs-layers/src/layers/nlp/multihead_attention_test.ts:409
↓ 1 callersFunctiontestLayerCreation
(combo: EinsumDenseTestCaseArgs)
tfjs-layers/src/layers/nlp/einsum_dense_test.ts:273
↓ 1 callersFunctiontestMaskedAttention
* Test with a mask tensor.
tfjs-layers/src/layers/nlp/multihead_attention_test.ts:118
↓ 1 callersFunctiontestNonMaskedAttention
* Test that the attention layer can be created without a mask tensor.
tfjs-layers/src/layers/nlp/multihead_attention_test.ts:43
↓ 1 callersFunctiontestWeightShape
(combo: EinsumDenseTestCaseArgs)
tfjs-layers/src/layers/nlp/einsum_dense_test.ts:263
↓ 1 callersFunctiontile
(x: Tensor, n: number|number[])
tfjs-layers/src/backend/tfjs_backend.ts:341
↓ 1 callersFunctiontile
( params: {inputs: TileInputs, backend: MathBackendWebGL, attrs: TileAttrs})
tfjs-backend-webgl/src/kernels/Tile.ts:24
↓ 1 callersFunctiontileImpl
( xBuf: TensorBuffer<R, DataType>, reps: number[])
tfjs-backend-cpu/src/kernels/Tile_impl.ts:25
↓ 1 callersFunctiontimeModelInference
* Executes the predict function for `model` (`model.predict` for tf.LayersModel * and `model.executeAsync` for tf.GraphModel) and times the inference
e2e/benchmarks/benchmark_util.js:210
↓ 1 callersMethodtimerAvailable
()
tfjs-core/src/backends/backend.ts:90
↓ 1 callersFunctiontoArrayBuffer
* Convert a Buffer or an Array of Buffers to an ArrayBuffer. * * If the input is an Array of Buffers, they will be concatenated in the * specified
tfjs-inference/src/file_handler.ts:132
↓ 1 callersFunctiontoBuffer
(ab: ArrayBuffer)
tfjs-node/src/io/io_utils.ts:21
↓ 1 callersFunctiontoStream
(buffer: ArrayBuffer)
tfjs-core/src/io/io_utils_test.ts:472
↓ 1 callersMethodtoggle
()
tfjs-vis/src/components/visor.tsx:111
↓ 1 callersMethodtoggleFullScreen
()
tfjs-vis/src/components/visor.tsx:115
↓ 1 callersFunctiontopKImpl
( x: TypedArray, xShape: number[], xDtype: NumericDataType, k: number, sorted: boolean)
tfjs-backend-cpu/src/kernels/TopK_impl.ts:96
↓ 1 callersFunctiontopk
({inputs, backend, attrs})
tfjs-backend-wasm/src/kernels/TopK.ts:43
↓ 1 callersFunctiontopologicalSort
(graph: Graph)
scripts/graph_utils.ts:76
↓ 1 callersMethodtransformBytes
* Map token bytes to unicode using `byte2unicode`.
tfjs-layers/src/layers/nlp/tokenizers.ts:466
↓ 1 callersFunctiontransposeGraph
(graph: Graph)
scripts/graph_utils.ts:52
↓ 1 callersFunctiontraverseDependencyGraph
(graph, package, affectedPackages)
scripts/test-util.js:61
↓ 1 callersFunctiontryAllLoadingMethods
( modelHandler, loadOptions = {}, state = {})
e2e/benchmarks/model_config.js:584
↓ 1 callersFunctiontryFn
()
tfjs-core/src/util_base.ts:298
↓ 1 callersFunctiontypedArrayFromBuffer
( buffer: ArrayBuffer, dtype: DataType)
tfjs-backend-wasm/src/backend_wasm.ts:403
↓ 1 callersFunctionuniqueImpl
( values: BackendValues, axis: number, shape: number[], dtype: DataType)
tfjs-backend-cpu/src/kernels/Unique_impl.ts:20
↓ 1 callersFunctionupdateAddonName
()
tfjs-node/scripts/install.js:69
↓ 1 callersFunctionupdateFollowingFields
* Once the value of a certain browser field is changed, the values and options * of the following fields will be invalid. This function updates the f
e2e/benchmarks/browserstack-benchmark/index.js:215
↓ 1 callersFunctionupdateTFJSDependencyVersions
( pkg: string, versions: Map<string, string>, depsToReplace = [...versions.keys()])
scripts/release-util.ts:352
↓ 1 callersFunctionupdateTable
(avgWebgpu, avgWebgl, rowNum)
tfjs-backend-webgpu/perf/tune.js:259
← previousnext →2,801–2,900 of 6,022, ranked by callers