MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

↓ 4 callersMethodsave
* Save model artifacts to AsyncStorage * * @param modelArtifacts The model artifacts to be stored. * @returns An instance of SaveResult.
tfjs-react-native/src/async_storage_io.ts:88
↓ 4 callersMethodsave
(modelArtifacts: tfc.io.ModelArtifacts)
tfjs-converter/src/executor/graph_model_test.ts:361
↓ 4 callersFunctionserializeKerasObject
(instance: serialization.Serializable)
tfjs-layers/src/utils/generic_utils.ts:138
↓ 4 callersMethodsetActiveTab
* Sets the active tab for the visor. * * @doc {heading: 'Visor & Surfaces', subheading: 'Visor Methods'}
tfjs-vis/src/visor.ts:238
↓ 4 callersMethodsetParams
(params: Params)
tfjs-layers/src/base_callbacks.ts:122
↓ 4 callersMethodsetProgram
(program: GPGPUContextProgram|null)
tfjs-backend-webgl/src/gpgpu_context.ts:373
↓ 4 callersFunctionsetupFakeVideoStream
()
tfjs-data/src/util/test_utils.ts:23
↓ 4 callersFunctionshallowEquals
( // tslint:disable-next-line:no-any a: {[key: string]: any}, b: {[key: string]: any})
tfjs-vis/src/render/render_utils.ts:35
↓ 4 callersFunctionshiftedChannels
* Return an expression for coordinates into a vector where a given channel * will be offset by [shift]. * * @param channels the channels to conside
tfjs-backend-webgl/src/concat_packed_gpu.ts:115
↓ 4 callersMethodshouldCheckForMemLeaks
()
tfjs-core/src/engine.ts:557
↓ 4 callersFunctionsingletonOrArray
(xs: T[])
tfjs-layers/src/utils/generic_utils.ts:63
↓ 4 callersMethodsize
* The size of the tensors in the tensor list.
tfjs-converter/src/executor/tensor_list.ts:96
↓ 4 callersFunctionsplitStringsForBpe
( inputs: Tensor, unsplittableTokens?: string[])
tfjs-layers/src/layers/nlp/tokenizers_utils.ts:253
↓ 4 callersFunctionsum
( args: {inputs: SumInputs, backend: MathBackendCPU, attrs: SumAttrs})
tfjs-backend-cpu/src/kernels/Sum.ts:28
↓ 4 callersFunctionsumOutType
(type: DataType)
tfjs-core/src/types.ts:137
↓ 4 callersFunctiontensor6d
( values: TensorLike6D, shape?: [number, number, number, number, number, number], dtype?: DataType
tfjs-core/src/ops/tensor6d.ts:48
↓ 4 callersFunctiontimeMatmul
(backend, rowNum)
tfjs-backend-webgpu/perf/tune.js:134
↓ 4 callersMethodtoBool
(this: T)
tfjs-core/src/public/chained_ops/to_bool.ts:25
↓ 4 callersFunctiontoList
(x: T|T[])
tfjs-layers/src/utils/generic_utils.ts:79
↓ 4 callersMethodtokenize
(inputs: Tensor)
tfjs-layers/src/layers/nlp/tokenizers.ts:491
↓ 4 callersFunctiontransposeImpl
( x: TensorInfo, perm: number[], backend: MathBackendWebGL)
tfjs-backend-webgl/src/kernels/Transpose_impl.ts:25
↓ 4 callersFunctionunique
(xs: T[])
tfjs-layers/src/utils/generic_utils.ts:358
↓ 4 callersMethodunpackTensor
(input: TensorInfo)
tfjs-backend-webgl/src/backend_webgl.ts:807
↓ 4 callersMethoduploadToGPU
(dataId: DataId)
tfjs-backend-webgpu/src/backend_webgpu.ts:733
↓ 4 callersMethoduploadToGPU
(dataId: DataId)
tfjs-backend-webgl/src/backend_webgl.ts:1096
↓ 4 callersFunctionurlChunkIterator
( url: RequestInfo, options: FileChunkIteratorOptions = {}, fetchFunc?: Function)
tfjs-data/src/iterators/url_chunk_iterator.ts:29
↓ 4 callersFunctionweakHashLen32WithSeedsStr
( s: Uint8Array, offset: number, a: Long, b: Long)
tfjs-core/src/hash_util.ts:82
↓ 3 callersMethodBaseName
File base name - text after the final slash, before the final period.
tfjs-backend-wasm/tools/cpplint.py:1171
↓ 3 callersFunctionCheckCStyleCast
Checks for a C-style cast by looking for the pattern. Args: filename: The name of the current file. clean_lines: A CleansedLines instance c
tfjs-backend-wasm/tools/cpplint.py:5271
↓ 3 callersMethodExtension
File extension - text following the final period.
tfjs-backend-wasm/tools/cpplint.py:1175
↓ 3 callersFunctionFindEndOfExpressionInLine
Find the position just after the end of current parenthesized expression. Args: line: a CleansedLines line. startpos: start searching at th
tfjs-backend-wasm/tools/cpplint.py:1519
↓ 3 callersMethodFullName
Make Windows paths like Unix.
tfjs-backend-wasm/tools/cpplint.py:1107
↓ 3 callersFunctionGetIndentLevel
Return the number of leading spaces in line. Args: line: A string to check. Returns: An integer count of leading spaces, possibly zero.
tfjs-backend-wasm/tools/cpplint.py:1769
↓ 3 callersMethodInnermostClass
Get class info on the top of the stack. Returns: A _ClassInfo object if we are inside a class, or None otherwise.
tfjs-backend-wasm/tools/cpplint.py:2746
↓ 3 callersFunctionInput
(config: InputConfig)
tfjs-layers/src/engine/input_layer.ts:175
↓ 3 callersFunctionIsBlankLine
Returns true if the given line is blank. We consider a line to be blank if the line is empty or consists of only white spaces. Args: line:
tfjs-backend-wasm/tools/cpplint.py:3017
↓ 3 callersFunctionReplaceAll
Replaces instances of pattern in a string with a replacement. The compiled regex is kept in a cache shared by Match and Search. Args: patter
tfjs-backend-wasm/tools/cpplint.py:667
↓ 3 callersMethodSeenOpenBrace
Check if we have seen the opening brace for the innermost block. Returns: True if we have seen the opening brace, False if the innermost
tfjs-backend-wasm/tools/cpplint.py:2432
↓ 3 callersMethodSplit
Splits the file into the directory, basename, and extension. For 'chrome/browser/browser.cc', Split() would return ('chrome/browser', 'browse
tfjs-backend-wasm/tools/cpplint.py:1157
↓ 3 callersFunction_RestoreFilters
Restores filters previously backed up.
tfjs-backend-wasm/tools/cpplint.py:1029
↓ 3 callersMethod__init__
(self, filename)
tfjs-backend-wasm/tools/cpplint.py:1104
↓ 3 callersFunction_check_config_json
(config_json)
tfjs-converter/python/tensorflowjs/converters/keras_tfjs_loader.py:159
↓ 3 callersMethod_create_saved_model
Test a basic model with functions to make sure functions are inlined.
tfjs-converter/python/tensorflowjs/converters/wizard_test.py:75
↓ 3 callersFunction_ensure_h5file
(h5file)
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py:148
↓ 3 callersFunction_fuse_depthwise_conv2d_with_match_function
Modifies the provided graph by fusing a set of ops into a single _FusedDepthwiseConv2d op. DepthwiseConv2dNative + BiasAdd + Activation => _Fused
tfjs-converter/python/tensorflowjs/converters/fuse_depthwise_conv2d.py:125
↓ 3 callersFunction_generate_fused_batchnorm
(data_format, conv2d_func, count=1, add_bias=False)
tfjs-converter/python/tensorflowjs/converters/fold_batch_norms_test.py:221
↓ 3 callersFunction_get_weights_manifest_from_config_json
(config_json)
tfjs-converter/python/tensorflowjs/converters/keras_tfjs_loader.py:168
↓ 3 callersMethodadamax
* Constructs a `tf.AdamaxOptimizer` that uses the Adamax algorithm. * See [https://arxiv.org/abs/1412.6980](https://arxiv.org/abs/1412.6980) *
tfjs-core/src/optimizers/optimizer_constructors.ts:163
↓ 3 callersFunctionaddUnprocessedNode
( layer: Layer, nodeData: TensorKeyWithArgsArray[])
tfjs-layers/src/engine/container.ts:1212
↓ 3 callersFunctionanalyzeSplitString
( splitString: RegExpMatchArray, biasAxes: string, inputShape: Shape, outputShape: Shape|number, lef
tfjs-layers/src/layers/nlp/einsum_dense.ts:80
↓ 3 callersFunctionapplyActivation
( x: Tensor, activation: Activation, preluActivationWeights?: Tensor, leakyreluAlpha?: number)
tfjs-core/src/ops/fused_util.ts:58
↓ 3 callersMethodapplyActivation
( input: T, activation: string, preluActivationWeights?: Tensor, leakyreluAlpha?: number)
tfjs-node/src/nodejs_kernel_backend.ts:283
↓ 3 callersFunctionareClose
(a: number, e: number, epsilon: number)
tfjs-core/src/test_util.ts:139
↓ 3 callersFunctionarrayBufferToBase64String
(buffer: ArrayBuffer)
tfjs-core/src/io/io_utils.ts:424
↓ 3 callersFunctionarraysEqual
(n1: FlatVector, n2: FlatVector)
tfjs-core/src/util_base.ts:218
↓ 3 callersFunctionassertObjectArgs
(args: L1Args|L2Args|L1L2Args)
tfjs-layers/src/regularizers.ts:18
↓ 3 callersFunctionassertTop3PredsForDaisy
( predictions: automl.ImagePrediction[], centerCrop: boolean)
tfjs-automl/src/img_classification_test.ts:96
↓ 3 callersFunctionassertTop3PredsForSalad
(predictions: automl.PredictedObject[])
tfjs-automl/src/object_detection_test.ts:107
↓ 3 callersFunctionbase64StringToArrayBuffer
(str: string)
tfjs-core/src/io/io_utils.ts:442
↓ 3 callersFunctionbatchGetValue
(xs: LayerVariable[])
tfjs-layers/src/variables.ts:323
↓ 3 callersFunctionbatchSetValue
( variablesAndValues: Array<[LayerVariable, Tensor]>)
tfjs-layers/src/variables.ts:335
↓ 3 callersFunctionbatchToSpaceND
(args: { inputs: BatchToSpaceNDInputs, backend: MathBackendCPU, attrs: BatchToSpaceNDAttrs })
tfjs-backend-cpu/src/kernels/BatchToSpaceND.ts:26
↓ 3 callersFunctionbenchmark
* Run model benchmark on BrowserStack. * * Each browser-device pairing is benchmarked in parallel. Results are sent to * the webpage staggered as t
e2e/benchmarks/browserstack-benchmark/app.js:176
↓ 3 callersFunctionbitwiseAnd
(args: { inputs: BitwiseAndInputs, backend: MathBackendWebGL, })
tfjs-backend-webgl/src/kernels/BitwiseAnd.ts:36
↓ 3 callersFunctionbrowserDownloadsRouter
(url: string|string[])
tfjs-core/src/io/browser_files.ts:247
↓ 3 callersMethodbufferSync
(t: TensorInfo)
tfjs-backend-webgpu/src/backend_webgpu.ts:632
↓ 3 callersFunctioncalcL2Norms
* Helper function used by many of the Constraints to find the L2Norms.
tfjs-layers/src/constraints.ts:21
↓ 3 callersMethodcall
( inputs: Tensor|Tensor[], kwargs?: PositionEmbeddingOptions )
tfjs-layers/src/layers/nlp/modeling/position_embedding.ts:126
↓ 3 callersMethodcallAndReturnAttentionScores
* Exactly like `call` except also returns the attention scores.
tfjs-layers/src/layers/nlp/multihead_attention.ts:721
↓ 3 callersMethodcallAndReturnCaches
* Forward pass of the TransformerDecoder. * * @returns One of three things, depending on call arguments: * - `[outputs, null, null]`, if `s
tfjs-layers/src/layers/nlp/modeling/transformer_decoder.ts:339
↓ 3 callersMethodcallAndReturnPaddingMask
* Exactly like `call` except also returns a boolean padding mask of all * locations that are filled in with the `padValue`.
tfjs-layers/src/layers/nlp/preprocessing/start_end_packer.ts:115
↓ 3 callersFunctioncheckBatchSize
(batchSize: number)
tfjs-layers/src/engine/training_tensors.ts:158
↓ 3 callersMethodcheckCompletion_
(binary: GPGPUBinary)
tfjs-backend-webgl/src/backend_webgl.ts:1262
↓ 3 callersFunctioncheckKernelProfile
(acturalVal: KernelProfile, truthVal: { kernelName: string, outputs: Tensor[], timeMs: number|{error: st
tfjs-core/src/profiler_test.ts:56
↓ 3 callersFunctioncheckModel
(model: GraphModel<unknown>)
tfjs-converter/src/executor/graph_model_test.ts:469
↓ 3 callersMethodcheckNumSamples
* Get number of samples provided for training, evaluation or prediction. * * @param ins Input `tf.Tensor`. * @param batchSize Integer batch s
tfjs-layers/src/engine/training.ts:904
↓ 3 callersFunctioncomputeCausalMask
( batchSize: number, inputLength: number, outputLength: number, cacheIndex = 0 )
tfjs-layers/src/layers/nlp/modeling/transformer_layer_utils.ts:64
↓ 3 callersMethodcomputeSingleOutputShape
(inputShape: Shape)
tfjs-layers/src/layers/convolutional_recurrent.ts:290
↓ 3 callersFunctionconfig
({plugins = [], output = {}, external = []})
tfjs-react-native/rollup.config.js:25
↓ 3 callersFunctionconstructBrowserTree
* Collect all given browsers to a tree. The field of each level is defined by * `TUNABLE_BROWSER_FIELDS`. * * The tree node is implemented by Map/O
e2e/benchmarks/browserstack-benchmark/index.js:176
↓ 3 callersMethodcontextIdforContexts
(contexts: ExecutionContextInfo[])
tfjs-converter/src/executor/execution_context.ts:101
↓ 3 callersFunctionconv1dWithBias
( x: Tensor, kernel: Tensor, bias: Tensor, strides = 1, padding = 'valid', dataFormat?: DataFormat, di
tfjs-layers/src/layers/convolutional.ts:86
↓ 3 callersFunctionconv2DBackpropFilter
(args: { inputs: Conv2DBackpropFilterInputs, backend: MathBackendCPU, attrs: Conv2DBackpropFilterAttrs }
tfjs-backend-cpu/src/kernels/Conv2DBackpropFilter.ts:23
↓ 3 callersFunctionconv2DBackpropInput
(args: { inputs: Conv2DBackpropInputInputs, backend: MathBackendCPU, attrs: Conv2DBackpropInputAttrs })
tfjs-backend-cpu/src/kernels/Conv2DBackpropInput.ts:23
↓ 3 callersFunctionconv3dWithBias
( x: Tensor, kernel: Tensor, bias: Tensor, strides = [1, 1, 1], padding = 'valid', dataFormat?: DataFo
tfjs-layers/src/layers/convolutional.ts:243
↓ 3 callersMethodconvertAndCacheOnCPU
(dataId: DataId, data: BackendValues)
tfjs-backend-webgpu/src/backend_webgpu.ts:372
↓ 3 callersFunctionconvertTensorToData
* @license * Copyright 2019 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use th
e2e/benchmarks/local-benchmark/util.js:19
↓ 3 callersFunctioncountParamsInWeights
(weights: LayerVariable[])
tfjs-layers/src/utils/variable_utils.ts:20
↓ 3 callersFunctioncreateComplexBinaryKernelImpl
(op: ComplexBinaryOperation)
tfjs-backend-cpu/src/utils/binary_utils.ts:135
↓ 3 callersFunctioncreateFloatTextureAndBindToFramebuffer
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/webgl_util.ts:641
↓ 3 callersFunctioncreateFragmentShader
( gl: WebGLRenderingContext, fragmentShaderSource: string)
tfjs-backend-webgl/src/webgl_util.ts:93
↓ 3 callersFunctioncreateFunctionalModelForTest
()
tfjs-layers/src/user_defined_metadata_test.ts:104
↓ 3 callersFunctioncreateGLContext
()
tfjs-react-native/src/camera/camera_test.ts:28
↓ 3 callersFunctioncreateGoldenInputTensors
({inputs}: GraphModeGoldenData)
e2e/integration_tests/graph_model_golden_tests.ts:159
↓ 3 callersFunctioncreateInputTensors
( inputsData: tfc.TypedArray[], inputsShapes: number[][], inputDtypes?: tfc.DataType[], inputNames?: s
e2e/integration_tests/test_util.ts:27
↓ 3 callersFunctioncreateSequentialModel
()
tfjs-layers/src/engine/training_test.ts:2876
↓ 3 callersFunctioncreateSequentialModelForTest
()
tfjs-layers/src/user_defined_metadata_test.ts:94
↓ 3 callersMethodcropAndResizeFrame
(img: Tensor3D)
tfjs-data/src/iterators/webcam_iterator.ts:186
↓ 3 callersFunctioncumprod
( args: {inputs: CumprodInputs, backend: MathBackendCPU, attrs: CumprodAttrs})
tfjs-backend-cpu/src/kernels/Cumprod.ts:24
↓ 3 callersMethoddataSync
* Synchronously downloads the values from the `tf.Tensor`. This blocks the * UI thread until the values are ready, which can cause performance issu
tfjs-core/src/tensor.ts:411
← previousnext →1,001–1,100 of 6,022, ranked by callers