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
Method
fromConfig
( cls: serialization.SerializableConstructor<T>, config: serialization.ConfigDict )
tfjs-layers/src/layers/nlp/multihead_attention.ts:437
Method
fromConfig
( cls: serialization.SerializableConstructor<T>, config: serialization.ConfigDict )
tfjs-layers/src/layers/nlp/models/preprocessor.ts:56
Method
fromConfig
( cls: serialization.SerializableConstructor<T>, config: serialization.ConfigDict)
tfjs-layers/src/layers/nlp/models/backbone.ts:52
Method
fromConfig
@nocollapse
tfjs-core/src/optimizers/adam_optimizer.ts:178
Method
fromConfig
@nocollapse
tfjs-core/src/optimizers/rmsprop_optimizer.ts:208
Method
fromConfig
@nocollapse
tfjs-core/src/optimizers/adamax_optimizer.ts:156
Method
fromConfig
@nocollapse
tfjs-core/src/optimizers/adadelta_optimizer.ts:150
Method
fromConfig
@nocollapse
tfjs-core/src/optimizers/momentum_optimizer.ts:128
Method
fromConfig
@nocollapse
tfjs-core/src/optimizers/adagrad_optimizer.ts:116
Function
fromConfigUsesCustomObjects
()
tfjs-layers/src/initializers.ts:36
Function
fromMemory
( modelArtifacts: {}|ModelArtifacts, weightSpecs?: WeightsManifestEntry[], weightData?: WeightData, tr
tfjs-core/src/io/passthrough.ts:77
Function
fromPixels
(args: { inputs: FromPixelsInputs, backend: WebGPUBackend, attrs: FromPixelsAttrs })
tfjs-backend-webgpu/src/kernels/FromPixels.ts:34
Function
fromPixels
(args: { inputs: FromPixelsInputs, backend: MathBackendWebGL, attrs: FromPixelsAttrs })
tfjs-backend-webgl/src/kernels/FromPixels.ts:36
Function
fromPixelsAsync
( pixels: PixelData|ImageData|HTMLImageElement|HTMLCanvasElement| HTMLVideoElement|ImageBitmap, nu
tfjs-core/src/ops/browser.ts:227
Function
fromStringArrayToUint8
(strings: string[])
tfjs-core/src/backends/backend_util.ts:63
Function
fromUint8ToStringArray
(vals: Uint8Array[])
tfjs-core/src/backends/backend_util.ts:53
Function
func
()
tfjs-data/src/iterators/lazy_iterator_test.ts:306
Method
functionExecutorMap
()
tfjs-converter/src/executor/graph_executor.ts:56
Method
functions
()
tfjs-converter/src/executor/graph_executor.ts:119
Function
fuse_depthwise_conv2d
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:97
Function
fuse_ops_for_prelu
Modifies the provided graph by fusing a set of ops into a single Prelu op. The formula of PReLU is: f(x) = alpha * x for x < 0, f(x) = x for x >=
tfjs-converter/python/tensorflowjs/converters/fuse_prelu.py:29
Function
fuse_prelu_with_fused_conv2d_or_matmul
Tensorflow does not support Prelu op, and the grappler remap optimizer will not fuse the prelu op with _FusedConv2D op. This method searches for t
tfjs-converter/python/tensorflowjs/converters/fuse_prelu.py:141
Function
fusedBatchMatMul
(args: { inputs: _FusedMatMulInputs, backend: BackendWasm, attrs: _FusedMatMulAttrs })
tfjs-backend-wasm/src/kernels/_FusedMatMul.ts:49
Function
fusedBatchNorm
(args: { backend: BackendWasm, inputs: FusedBatchNormInputs, attrs: FusedBatchNormAttrs })
tfjs-backend-wasm/src/kernels/FusedBatchNorm.ts:32
Function
fusedConv2D
(args: { inputs: FusedConv2DInputs, backend: MathBackendCPU, attrs: FusedConv2DAttrs })
tfjs-backend-cpu/src/kernels/FusedConv2D.ts:26
Function
fusedConv2d
(args: { inputs: FusedConv2DInputs, attrs: FusedConv2DAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/FusedConv2D.ts:24
Function
fusedConv2d
(args: { inputs: FusedConv2DInputs, attrs: FusedConv2DAttrs, backend: MathBackendWebGL })
tfjs-backend-webgl/src/kernels/FusedConv2D.ts:28
Function
fusedConv2d
(args: { inputs: FusedConv2DInputs, backend: BackendWasm, attrs: FusedConv2DAttrs })
tfjs-backend-wasm/src/kernels/FusedConv2D.ts:62
Function
fusedConv2d_
* Computes a 2D convolution over the input x, optionally fused with adding a * bias and applying an activation. * * ```js * const inputDepth = 2;
tfjs-core/src/ops/fused/conv2d.ts:96
Function
fusedDepthwiseConv2D
(args: { inputs: FusedDepthwiseConv2DInputs, backend: MathBackendCPU, attrs: FusedDepthwiseConv2DAttrs }
tfjs-backend-cpu/src/kernels/FusedDepthwiseConv2D.ts:25
Function
fusedDepthwiseConv2D
(args: { inputs: FusedDepthwiseConv2DInputs, attrs: FusedDepthwiseConv2DAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/FusedDepthwiseConv2D.ts:24
Function
fusedDepthwiseConv2D
(args: { inputs: FusedDepthwiseConv2DInputs, attrs: FusedDepthwiseConv2DAttrs, backend: MathBackendWebGL
tfjs-backend-webgl/src/kernels/FusedDepthwiseConv2D.ts:25
Function
fusedDepthwiseConv2d
(args: { inputs: FusedDepthwiseConv2DInputs, backend: BackendWasm, attrs: FusedDepthwiseConv2DAttrs })
tfjs-backend-wasm/src/kernels/FusedDepthwiseConv2D.ts:63
Function
fusedDepthwiseConv2d_
* Computes depthwise 2D convolution, optionally fused with adding a * bias and applying an activation. * * Given a 4D `input` array and a `filter`
tfjs-core/src/ops/fused/depthwise_conv2d.ts:90
Function
fusedMatMul_
* Computes the dot product of two matrices with optional activation and bias. * * ```js * const a = tf.tensor2d([-1, -2], [1, 2]); * const b = tf.
tfjs-core/src/ops/fused/mat_mul.ts:58
Method
gather
* Return selected values in the TensorList as a stacked Tensor. All of * selected values must have been written and their shapes must all match.
tfjs-converter/src/executor/tensor_list.ts:263
Method
gather
* Return selected values in the TensorArray as a packed Tensor. All of * selected values must have been written and their shapes must all match.
tfjs-converter/src/executor/tensor_array.ts:184
Function
gatherND_
* Gather slices from input tensor into a Tensor with shape specified by * `indices`. * * `indices` is a K-dimensional integer tensor, best thought
tfjs-core/src/ops/gather_nd.ts:63
Function
gatherNd
( args: {inputs: GatherNdInputs, backend: MathBackendCPU})
tfjs-backend-cpu/src/kernels/GatherNd.ts:24
Function
gatherNd
( args: {inputs: GatherNdInputs, backend: WebGPUBackend})
tfjs-backend-webgpu/src/kernels/GatherNd.ts:26
Function
gatherNd
( args: {inputs: GatherNdInputs, backend: MathBackendWebGL})
tfjs-backend-webgl/src/kernels/GatherNd.ts:26
Function
gatherNd
(args: {backend: BackendWasm, inputs: GatherNdInputs})
tfjs-backend-wasm/src/kernels/GatherNd.ts:42
Function
gatherV2
(args: { inputs: GatherV2Inputs, backend: MathBackendCPU, attrs: GatherV2Attrs })
tfjs-backend-cpu/src/kernels/GatherV2.ts:25
Function
gatherV2
( args: {backend: BackendWasm, inputs: GatherV2Inputs, attrs: GatherV2Attrs})
tfjs-backend-wasm/src/kernels/GatherV2.ts:43
Function
gather_
* Gather slices from tensor `x`'s axis `axis` according to `indices`. * * ```js * const x = tf.tensor1d([1, 2, 3, 4]); * const indices = tf.tensor
tfjs-core/src/ops/gather.ts:54
Function
gaussianDropout
(args: GaussianDropoutArgs)
tfjs-layers/src/exports_layers.ts:1640
Function
gaussianNoise
(args: GaussianNoiseArgs)
tfjs-layers/src/exports_layers.ts:1612
Method
generate
* Generate text given prompt `inputs`. * * This method generates text based on given `inputs`. The sampling method * used for generation can
tfjs-layers/src/layers/nlp/models/generative_task.ts:113
Method
generatePostprocess
* Covert integer token output to strings for generation. * * This method reverses `generatePreprocess()`, by first removing all * padding
tfjs-layers/src/layers/nlp/models/gpt2/gpt2_causal_lm_preprocessor.ts:114
Method
generatePreprocess
* Covert strings to integer token input for generation. * * Similar to calling the layer for training, this method takes in strings * or t
tfjs-layers/src/layers/nlp/models/gpt2/gpt2_causal_lm_preprocessor.ts:103
Method
generateStep
* Run the generation on a single batch of input.
tfjs-layers/src/layers/nlp/models/generative_task.ts:49
Method
generateStep
* A compilable generation function for a single batch of inputs. * * This function represents the inner generation function for a single batch
tfjs-layers/src/layers/nlp/models/gpt2/gpt2_causal_lm.ts:217
Function
generator
( generator: () => Iterator<T> | Promise<Iterator<T>> | AsyncIterator<T>, )
tfjs-data/src/readers.ts:199
Function
get
(identifierOrFn: string|LossOrMetricFn)
tfjs-layers/src/losses.ts:261
Function
get
(target, name, receiver)
tfjs-core/src/test_async_backends.ts:49
Method
getA
(channels: string[])
tfjs-backend-webgl/src/reverse_packed_gpu.ts:89
Method
getAttributeLocation
(program: WebGLProgram, attribute: string)
tfjs-backend-webgl/src/gpgpu_context.ts:398
Method
getB
(channels: string[])
tfjs-backend-webgl/src/reverse_packed_gpu.ts:84
Function
getBackend
()
tfjs-layers/src/backend/tfjs_backend.ts:37
Function
getBenchmarkSummary
(timeInfo, memoryInfo, modelName = 'model')
e2e/benchmarks/browserstack-benchmark/benchmark_models.js:38
Method
getCellConfig
(cell: RNNCell)
tfjs-layers/src/layers/recurrent.ts:2018
Method
getChannel
(channels: string[])
tfjs-backend-webgl/src/reverse_packed_gpu.ts:95
Function
getClassName
* Return the class name for this class to use in serialization contexts. * * Generally speaking this will be the same thing that constructor.nam
tfjs-core/src/serialization.ts:98
Method
getClassName
()
tfjs-tflite/src/types/image_segmenter.ts:60
Method
getClassName
()
tfjs-layers/src/initializers.ts:395
Method
getClassName
()
tfjs-layers/src/initializers.ts:424
Method
getClassName
()
tfjs-layers/src/initializers.ts:446
Method
getClassName
()
tfjs-layers/src/initializers.ts:468
Method
getClassName
()
tfjs-layers/src/initializers.ts:490
Method
getClassName
()
tfjs-layers/src/initializers.ts:512
Method
getClassesList
()
tfjs-tflite/src/types/image_classifier.ts:44
Function
getColorMatrixTextureShapeWidthHeight
( rows: number, columns: number)
tfjs-backend-webgl/src/tex_util.ts:114
Function
getComplexWithIndex
( complex: Float32Array, index: number)
tfjs-core/src/backends/complex_util.ts:110
Function
getConfig
()
tfjs-layers/src/constraints.ts:37
Function
getConfig
()
tfjs-layers/src/initializers.ts:47
Function
getConfig
()
tfjs-layers/src/activations.ts:27
Function
getConfig
()
tfjs-layers/src/engine/container.ts:1082
Function
getConfig
* Returns the config of the layer. * * A layer config is a TS dictionary (serializable) * containing the configuration of a layer. * The s
tfjs-layers/src/engine/topology.ts:1499
Function
getConfig
()
tfjs-layers/src/engine/base_random_layer.ts:30
Function
getConfig
()
tfjs-layers/src/layers/convolutional.ts:486
Function
getConfig
()
tfjs-layers/src/layers/pooling.ts:228
Function
getConfig
()
tfjs-layers/src/layers/wrappers.ts:117
Method
getConfig
()
tfjs-layers/src/constraints.ts:87
Method
getConfig
()
tfjs-layers/src/constraints.ts:126
Method
getConfig
()
tfjs-layers/src/constraints.ts:209
Method
getConfig
()
tfjs-layers/src/initializers.ts:97
Method
getConfig
()
tfjs-layers/src/initializers.ts:134
Method
getConfig
()
tfjs-layers/src/initializers.ts:175
Method
getConfig
()
tfjs-layers/src/initializers.ts:216
Method
getConfig
()
tfjs-layers/src/initializers.ts:250
Method
getConfig
()
tfjs-layers/src/initializers.ts:359
Method
getConfig
()
tfjs-layers/src/initializers.ts:587
Method
getConfig
()
tfjs-layers/src/models.ts:1099
Method
getConfig
()
tfjs-layers/src/regularizers.ts:87
Method
getConfig
()
tfjs-layers/src/engine/input_layer.ts:131
Method
getConfig
()
tfjs-layers/src/layers/merge.ts:775
Method
getConfig
()
tfjs-layers/src/layers/convolutional.ts:685
Method
getConfig
()
tfjs-layers/src/layers/convolutional.ts:846
Method
getConfig
()
tfjs-layers/src/layers/convolutional.ts:1006
Method
getConfig
()
tfjs-layers/src/layers/convolutional.ts:1191
← previous
next →
4,301–4,400 of 6,022, ranked by callers