Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ functions
Functions
6,022 in github.com/tensorflow/tfjs
⨍
Functions
6,022
◇
Types & classes
1,932
↳
Endpoints
2
↓ 11 callers
Method
isFinite
(this: T)
tfjs-core/src/public/chained_ops/is_finite.ts:25
↓ 11 callers
Method
isNaN
(this: T)
tfjs-core/src/public/chained_ops/is_nan.ts:25
↓ 11 callers
Function
keep
(result: T)
tfjs-core/src/globals.ts:243
↓ 11 callers
Method
logSoftmax
(this: T, axis?: number)
tfjs-core/src/public/chained_ops/log_softmax.ts:25
↓ 11 callers
Method
makeTensor
( values: DataValues, shape: number[], dtype: DataType, backend?: Backend)
tfjs-core/src/tensor.ts:177
↓ 11 callers
Method
makeTensorFromTensorInfo
* Internal method used by backends. Makes a new tensor that is a wrapper * around an existing data id in TensorInfo. It doesn't create a new data i
tfjs-core/src/engine.ts:848
↓ 11 callers
Method
reciprocal
(this: T)
tfjs-core/src/public/chained_ops/reciprocal.ts:25
↓ 11 callers
Function
resolveScalarsInLogs
(logs: UnresolvedLogs)
tfjs-layers/src/logs.ts:27
↓ 11 callers
Method
rmsprop
* Constructs a `tf.RMSPropOptimizer` that uses RMSProp gradient * descent. This implementation uses plain momentum and is not centered * version
tfjs-core/src/optimizers/optimizer_constructors.ts:108
↓ 11 callers
Method
setUserDefinedMetadata
* Set user-defined metadata. * * The set metadata will be serialized together with the topology * and weights of the model during `save()` ca
tfjs-layers/src/engine/training.ts:2176
↓ 11 callers
Function
setupFakeWeightFiles
(fileBufferMap: { [filename: string]: { data: string|Float32Array|Int32Array|ArrayBuffer|Uint8Ar
tfjs-core/src/io/http_test.ts:83
↓ 11 callers
Function
sigmoid
(args: {backend: BackendWasm, inputs: SigmoidInputs})
tfjs-backend-wasm/src/kernels/Sigmoid.ts:28
↓ 11 callers
Function
split
( tensor: Tensor, length: number[], elementShape: number[])
tfjs-converter/src/executor/tensor_list.ts:388
↓ 11 callers
Method
toArray
()
tfjs-data/src/iterators/webcam_iterator.ts:221
↓ 11 callers
Method
tokenize
(inputs: Tensor)
tfjs-layers/src/layers/nlp/tokenizers_test.ts:31
↓ 11 callers
Method
unshift
* Adds an item to the beginning of the buffer.
tfjs-data/src/util/ring_buffer.ts:137
↓ 11 callers
Function
value_in_list
Determine user's answer for the key is in the value list. Args: answer: Dict of user's answers to the questions. key: question key. valu
tfjs-converter/python/tensorflowjs/converters/wizard.py:56
↓ 10 callers
Function
_save_and_convert_model
Benchmark a model's fit() and predict() calls; serialize the model. Args: model_fn: A function that creates the saved model. model_path: Pa
e2e/integration_tests/convert_predict.py:54
↓ 10 callers
Function
addLine
(target: string[], line: string)
tfjs/tools/custom_module/custom_module.ts:116
↓ 10 callers
Method
addTensorArray
(tensorArray: TensorArray)
tfjs-converter/src/executor/execution_context.ts:163
↓ 10 callers
Function
as_text
(bytes_or_text, encoding='utf-8')
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py:47
↓ 10 callers
Function
assertShapesMatch
( shapeA: number[], shapeB: number[], errorMessagePrefix = '')
tfjs-core/src/util_base.ts:157
↓ 10 callers
Function
assertType
(dtype: 'string'|'float32')
tfjs-core/src/ops/squeeze_test.ts:30
↓ 10 callers
Function
basename
(path: string)
tfjs-core/src/io/io_utils.ts:476
↓ 10 callers
Method
broadcastTo
(shape: ShapeMap[R])
tfjs-core/src/public/chained_ops/broadcast_to.ts:24
↓ 10 callers
Method
call
( inputs: Tensor|Tensor[], kwargs: StartEndPackerOptions={addStartValue: true, addEndValue: true} )
tfjs-layers/src/layers/nlp/preprocessing/start_end_packer.ts:104
↓ 10 callers
Method
clearAndClose
* Dispose the tensors and handle and clear the hashtable.
tfjs-converter/src/executor/hash_table.ts:51
↓ 10 callers
Function
createSimpleUnaryImpl
(op: SimpleUnaryOperation<I, O>)
tfjs-backend-cpu/src/utils/unary_impl.ts:25
↓ 10 callers
Function
deconvLength
( dimSize: number, strideSize: number, kernelSize: number, padding: PaddingMode)
tfjs-layers/src/utils/conv_utils.ts:71
↓ 10 callers
Method
dispatchEvent
()
tfjs-core/src/io/browser_files_test.ts:100
↓ 10 callers
Function
einsum
( args: {inputs: EinsumInputs, backend: MathBackendCPU, attrs: EinsumAttrs})
tfjs-backend-cpu/src/kernels/Einsum.ts:27
↓ 10 callers
Function
executeOp
(node: Node, tensorMap: NamedTensorsMap, context: ExecutionContext, ops = tfOps)
tfjs-converter/src/operations/executors/matrices_executor.ts:29
↓ 10 callers
Function
expectResult
( result: tf.NamedTensorMap, indices: number[][], values: string[], shape: [number, number])
tfjs-core/src/ops/string/string_split_test.ts:22
↓ 10 callers
Method
fft
(this: Tensor)
tfjs-core/src/public/chained_ops/fft.ts:25
↓ 10 callers
Method
findBackendFactory
(backendName: string)
tfjs-core/src/engine.ts:252
↓ 10 callers
Function
fingerPrint64
(s: Uint8Array, len = s.length)
tfjs-core/src/hash_util.ts:142
↓ 10 callers
Function
getCustomModuleString
( config: CustomTFJSBundleConfig, moduleProvider: ImportProvider, )
tfjs/tools/custom_module/custom_module.ts:21
↓ 10 callers
Method
getNumUsedBuffers
()
tfjs-backend-webgpu/src/buffer_manager.ts:90
↓ 10 callers
Function
getReductionAxes
( inShape: number[], outShape: number[])
tfjs-core/src/ops/broadcast_util.ts:46
↓ 10 callers
Function
getTabId
* Generate a unique id/name for the given setting. tfvis uses tab name as the * index for the tab. * * @param {?Object<string, string>=} browserCo
e2e/benchmarks/browserstack-benchmark/index.js:412
↓ 10 callers
Function
getTagName
(packageName: string, version: string)
scripts/release_notes/release_notes.ts:131
↓ 10 callers
Method
ifft
(this: Tensor)
tfjs-core/src/public/chained_ops/ifft.ts:25
↓ 10 callers
Method
incRef
(a: Tensor, backend: Backend)
tfjs-core/src/tensor.ts:183
↓ 10 callers
Method
iterator
()
tfjs-data/src/dataset_test.ts:65
↓ 10 callers
Function
model
(args: ContainerArgs)
tfjs-layers/src/exports.ts:70
↓ 10 callers
Method
onBatchEnd
(batch: number, logs?: UnresolvedLogs)
tfjs-layers/src/base_callbacks.ts:235
↓ 10 callers
Method
pad
( paddings: Array<[number, number]>, constantValue?: number)
tfjs-core/src/public/chained_ops/pad.ts:24
↓ 10 callers
Function
real
(args: {inputs: RealInputs, backend: MathBackendCPU})
tfjs-backend-cpu/src/kernels/Real.ts:22
↓ 10 callers
Method
setWeights
(weightValues: NamedTensor[])
tfjs-core/src/optimizers/sgd_optimizer.ts:84
↓ 10 callers
Function
standardizeClassWeights
( classWeight: ClassWeight|ClassWeight[]|ClassWeightMap, outputNames: string[])
tfjs-layers/src/engine/training_utils.ts:93
↓ 10 callers
Method
trainOnBatch
* Runs a single gradient update on a single batch of data. * * This method differs from `fit()` and `fitDataset()` in the following * regards
tfjs-layers/src/engine/training.ts:1819
↓ 10 callers
Method
writeMany
* Helper method to write multiple tensors to the specified indices.
tfjs-converter/src/executor/tensor_array.ts:164
↓ 9 callers
Function
$
(cmd: string)
scripts/release_notes/util.ts:51
↓ 9 callers
Function
_load_predict_save
Load a Keras Model from artifacts generated by tensorflow.js and inputs. Make inference with the model and inputs. Write outputs to file.
e2e/integration_tests/create_save_predict.py:33
↓ 9 callers
Method
acquireBuffer
( size: number, usage: GPUBufferUsageFlags, mappedAtCreation = false, reuse = true)
tfjs-backend-webgpu/src/buffer_manager.ts:29
↓ 9 callers
Function
activationFnSnippet
( activation: backend_util.Activation, hasPreluActivationWeights = false, packed = false, coordsLength
tfjs-backend-webgpu/src/activation_util.ts:24
↓ 9 callers
Method
adam
* Constructs a `tf.AdamOptimizer` that uses the Adam algorithm. * See [https://arxiv.org/abs/1412.6980](https://arxiv.org/abs/1412.6980) * *
tfjs-core/src/optimizers/optimizer_constructors.ts:127
↓ 9 callers
Function
cloneTensor
(tensor: Tensor)
tfjs-converter/src/operations/executors/utils.ts:189
↓ 9 callers
Function
computeWeightedLoss
(losses: Tensor, sampleWeights: Tensor)
tfjs-layers/src/engine/training_utils.ts:188
↓ 9 callers
Function
createCell
(cell, text, classes, id, onclick)
tfjs-backend-webgpu/perf/tune.js:28
↓ 9 callers
Function
customGrad
* Overrides the gradient computation of a function `f`. * * Takes a function * `f(...inputs, save) => {value: Tensor, gradFunc: (dy, saved) => Tens
tfjs-core/src/gradients.ts:374
↓ 9 callers
Function
deepZip
( inputs: any[], zipFn: (xs: any[]) => DeepMapResult = zipToList)
tfjs-data/src/util/deep_map.ts:133
↓ 9 callers
Method
detect
(input: ImageInput, options?: ObjectDetectionOptions)
tfjs-automl/src/object_detection.ts:70
↓ 9 callers
Function
drawAndReadback
( contextType: string, data: number[], shape: number[], dtype: string, alpha = 1, canvasUsedAs2d = fal
tfjs-core/src/ops/draw_test.ts:87
↓ 9 callers
Method
epsilon
Returns the smallest representable number.
tfjs-core/src/backends/backend.ts:150
↓ 9 callers
Method
executeMultipleOutputs
* Executes a TensorFlow Eager Op that provides multiple output Tensors. * @param name The name of the Op to execute. * @param opAttrs The list o
tfjs-node/src/nodejs_kernel_backend.ts:204
↓ 9 callers
Function
expectPromiseToFail
(fn: () => Promise<{}>, done: DoneFn)
tfjs-core/src/test_util.ts:106
↓ 9 callers
Method
getConfig
()
tfjs-layers/src/layers/convolutional.ts:658
↓ 9 callers
Method
getContext
(type: '2d')
tfjs-core/src/ops/from_pixels_test.ts:34
↓ 9 callers
Function
getCoordsXYZ
(index: number)
tfjs-backend-webgpu/src/webgpu_program.ts:131
↓ 9 callers
Function
getNodeNameAndIndex
( inputName: string, context?: ExecutionContext)
tfjs-converter/src/operations/executors/utils.ts:111
↓ 9 callers
Function
identity
( args: {inputs: IdentityInputs, backend: MathBackendCPU})
tfjs-backend-cpu/src/kernels/Identity.ts:22
↓ 9 callers
Function
loadGraphModelSync
( modelSource: io.IOHandlerSync| io.ModelArtifacts|[io.ModelJSON, /* Weights */ ArrayBuffer])
tfjs-converter/src/executor/graph_model.ts:654
↓ 9 callers
Function
max
(array: number[]|Float32Array)
tfjs-layers/src/utils/math_utils.ts:81
↓ 9 callers
Function
nameScope
(name: string, fn: () => T)
tfjs-layers/src/common.ts:45
↓ 9 callers
Method
next
()
tfjs-layers/src/engine/dataset_fakes.ts:115
↓ 9 callers
Method
next
()
tfjs-core/src/hash_util_test.ts:39
↓ 9 callers
Method
onBatchBegin
* Called right before processing a batch. * @param batch Index of batch within the current epoch. * @param logs Dictionary of logs.
tfjs-layers/src/base_callbacks.ts:167
↓ 9 callers
Function
pool
( xValues: TypedArray, xShape: number[], dtype: DataType, strides: number[], convInfo: backend_util.Co
tfjs-backend-cpu/src/utils/pool_utils.ts:20
↓ 9 callers
Method
popBack
* Pop a tensor from the end of the list. * @param elementShape shape of the tensor * @param elementDtype data type of the tensor
tfjs-converter/src/executor/tensor_list.ts:134
↓ 9 callers
Method
put
* Put the entry into the cache. If the key already existed, mark the key as * used recently.
tfjs-layers/src/utils/executor_utils.ts:42
↓ 9 callers
Function
regexSplit
( strs: string[]|string[][], delimRegexPattern: RegExp | string, keepDelimRegexPattern = false)
tfjs-layers/src/layers/nlp/tokenizers_utils.ts:209
↓ 9 callers
Method
registerLoadRouter
* Register a load-handler router. * * @param loadRouter A function that maps a URL-like string onto an instance * of `IOHandler` with the `lo
tfjs-core/src/io/router_registry.ts:58
↓ 9 callers
Function
registerOp
(name: string, opFunc: OpExecutor)
tfjs-converter/src/operations/custom_op/register.ts:48
↓ 9 callers
Method
registerSaveRouter
* Register a save-handler router. * * @param saveRouter A function that maps a URL-like string onto an instance * of `IOHandler` with the `sa
tfjs-core/src/io/router_registry.ts:48
↓ 9 callers
Function
saveModelAndRandomInputs
* Generate random input(s), get predict() output(s), and save them along with * the model. * * @param model The `tf.LayersModel` instance in questi
e2e/integration_tests/create_save_predict.js:47
↓ 9 callers
Method
setFlags
(flags: Flags)
tfjs-core/src/environment.ts:151
↓ 9 callers
Function
sparseTensorValue5x6
()
tfjs-core/src/ops/sparse/sparse_reshape_test.ts:22
↓ 9 callers
Method
summary
()
tfjs-data/src/iterators/lazy_iterator.ts:706
↓ 9 callers
Function
table
( container: Drawable, // tslint:disable-next-line:no-any data: TableData, opts: {fontSize?: numbe
tfjs-vis/src/render/table.ts:48
↓ 9 callers
Function
throwIfNull
( gl: WebGLRenderingContext, returnTOrNull: () => T | null, failureMessage: string)
tfjs-backend-webgl/src/webgl_util.ts:330
↓ 9 callers
Function
tick
(ms = 1)
tfjs-vis/src/visor_test.ts:20
↓ 9 callers
Function
transpose
(args: { inputs: TransposeInputs, attrs: TransposeAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/Transpose.ts:26
↓ 8 callers
Function
PrintUsage
Prints a brief usage string and exits, optionally with an error message. Args: message: The optional error message.
tfjs-backend-wasm/tools/cpplint.py:6123
↓ 8 callers
Function
arrayProd
( array: number[]|ArrayTypes, begin?: number, end?: number)
tfjs-layers/src/utils/math_utils.ts:40
↓ 8 callers
Function
arrayStats
(input: number[])
tfjs-vis/src/util/math.ts:29
↓ 8 callers
Function
asyncStorageIO
(modelPath: string)
tfjs-react-native/src/async_storage_io.ts:198
↓ 8 callers
Function
atomicAddSnippet
(ptr: string, v: string, type: 'int32'|'float32')
tfjs-backend-webgpu/src/shader_util.ts:38
↓ 8 callers
Function
bail
(errorMsg: string)
tfjs/tools/custom_module/util.ts:76
↓ 8 callers
Function
bundleResourceIO
( modelJson: io.ModelJSON, modelWeightsId: number|number[])
tfjs-react-native/src/bundle_resource_io.ts:169
← previous
next →
501–600 of 6,022, ranked by callers