MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

MethodfromConfig
( cls: serialization.SerializableConstructor<T>, config: serialization.ConfigDict )
tfjs-layers/src/layers/nlp/multihead_attention.ts:437
MethodfromConfig
( cls: serialization.SerializableConstructor<T>, config: serialization.ConfigDict )
tfjs-layers/src/layers/nlp/models/preprocessor.ts:56
MethodfromConfig
( cls: serialization.SerializableConstructor<T>, config: serialization.ConfigDict)
tfjs-layers/src/layers/nlp/models/backbone.ts:52
MethodfromConfig
@nocollapse
tfjs-core/src/optimizers/adam_optimizer.ts:178
MethodfromConfig
@nocollapse
tfjs-core/src/optimizers/rmsprop_optimizer.ts:208
MethodfromConfig
@nocollapse
tfjs-core/src/optimizers/adamax_optimizer.ts:156
MethodfromConfig
@nocollapse
tfjs-core/src/optimizers/adadelta_optimizer.ts:150
MethodfromConfig
@nocollapse
tfjs-core/src/optimizers/momentum_optimizer.ts:128
MethodfromConfig
@nocollapse
tfjs-core/src/optimizers/adagrad_optimizer.ts:116
FunctionfromConfigUsesCustomObjects
()
tfjs-layers/src/initializers.ts:36
FunctionfromMemory
( modelArtifacts: {}|ModelArtifacts, weightSpecs?: WeightsManifestEntry[], weightData?: WeightData, tr
tfjs-core/src/io/passthrough.ts:77
FunctionfromPixels
(args: { inputs: FromPixelsInputs, backend: WebGPUBackend, attrs: FromPixelsAttrs })
tfjs-backend-webgpu/src/kernels/FromPixels.ts:34
FunctionfromPixels
(args: { inputs: FromPixelsInputs, backend: MathBackendWebGL, attrs: FromPixelsAttrs })
tfjs-backend-webgl/src/kernels/FromPixels.ts:36
FunctionfromPixelsAsync
( pixels: PixelData|ImageData|HTMLImageElement|HTMLCanvasElement| HTMLVideoElement|ImageBitmap, nu
tfjs-core/src/ops/browser.ts:227
FunctionfromStringArrayToUint8
(strings: string[])
tfjs-core/src/backends/backend_util.ts:63
FunctionfromUint8ToStringArray
(vals: Uint8Array[])
tfjs-core/src/backends/backend_util.ts:53
Functionfunc
()
tfjs-data/src/iterators/lazy_iterator_test.ts:306
MethodfunctionExecutorMap
()
tfjs-converter/src/executor/graph_executor.ts:56
Methodfunctions
()
tfjs-converter/src/executor/graph_executor.ts:119
Functionfuse_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
Functionfuse_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
Functionfuse_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
FunctionfusedBatchMatMul
(args: { inputs: _FusedMatMulInputs, backend: BackendWasm, attrs: _FusedMatMulAttrs })
tfjs-backend-wasm/src/kernels/_FusedMatMul.ts:49
FunctionfusedBatchNorm
(args: { backend: BackendWasm, inputs: FusedBatchNormInputs, attrs: FusedBatchNormAttrs })
tfjs-backend-wasm/src/kernels/FusedBatchNorm.ts:32
FunctionfusedConv2D
(args: { inputs: FusedConv2DInputs, backend: MathBackendCPU, attrs: FusedConv2DAttrs })
tfjs-backend-cpu/src/kernels/FusedConv2D.ts:26
FunctionfusedConv2d
(args: { inputs: FusedConv2DInputs, attrs: FusedConv2DAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/FusedConv2D.ts:24
FunctionfusedConv2d
(args: { inputs: FusedConv2DInputs, attrs: FusedConv2DAttrs, backend: MathBackendWebGL })
tfjs-backend-webgl/src/kernels/FusedConv2D.ts:28
FunctionfusedConv2d
(args: { inputs: FusedConv2DInputs, backend: BackendWasm, attrs: FusedConv2DAttrs })
tfjs-backend-wasm/src/kernels/FusedConv2D.ts:62
FunctionfusedConv2d_
* 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
FunctionfusedDepthwiseConv2D
(args: { inputs: FusedDepthwiseConv2DInputs, backend: MathBackendCPU, attrs: FusedDepthwiseConv2DAttrs }
tfjs-backend-cpu/src/kernels/FusedDepthwiseConv2D.ts:25
FunctionfusedDepthwiseConv2D
(args: { inputs: FusedDepthwiseConv2DInputs, attrs: FusedDepthwiseConv2DAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/FusedDepthwiseConv2D.ts:24
FunctionfusedDepthwiseConv2D
(args: { inputs: FusedDepthwiseConv2DInputs, attrs: FusedDepthwiseConv2DAttrs, backend: MathBackendWebGL
tfjs-backend-webgl/src/kernels/FusedDepthwiseConv2D.ts:25
FunctionfusedDepthwiseConv2d
(args: { inputs: FusedDepthwiseConv2DInputs, backend: BackendWasm, attrs: FusedDepthwiseConv2DAttrs })
tfjs-backend-wasm/src/kernels/FusedDepthwiseConv2D.ts:63
FunctionfusedDepthwiseConv2d_
* 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
FunctionfusedMatMul_
* 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
Methodgather
* 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
Methodgather
* 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
FunctiongatherND_
* 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
FunctiongatherNd
( args: {inputs: GatherNdInputs, backend: MathBackendCPU})
tfjs-backend-cpu/src/kernels/GatherNd.ts:24
FunctiongatherNd
( args: {inputs: GatherNdInputs, backend: WebGPUBackend})
tfjs-backend-webgpu/src/kernels/GatherNd.ts:26
FunctiongatherNd
( args: {inputs: GatherNdInputs, backend: MathBackendWebGL})
tfjs-backend-webgl/src/kernels/GatherNd.ts:26
FunctiongatherNd
(args: {backend: BackendWasm, inputs: GatherNdInputs})
tfjs-backend-wasm/src/kernels/GatherNd.ts:42
FunctiongatherV2
(args: { inputs: GatherV2Inputs, backend: MathBackendCPU, attrs: GatherV2Attrs })
tfjs-backend-cpu/src/kernels/GatherV2.ts:25
FunctiongatherV2
( args: {backend: BackendWasm, inputs: GatherV2Inputs, attrs: GatherV2Attrs})
tfjs-backend-wasm/src/kernels/GatherV2.ts:43
Functiongather_
* 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
FunctiongaussianDropout
(args: GaussianDropoutArgs)
tfjs-layers/src/exports_layers.ts:1640
FunctiongaussianNoise
(args: GaussianNoiseArgs)
tfjs-layers/src/exports_layers.ts:1612
Methodgenerate
* 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
MethodgeneratePostprocess
* 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
MethodgeneratePreprocess
* 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
MethodgenerateStep
* Run the generation on a single batch of input.
tfjs-layers/src/layers/nlp/models/generative_task.ts:49
MethodgenerateStep
* 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
Functiongenerator
( generator: () => Iterator<T> | Promise<Iterator<T>> | AsyncIterator<T>, )
tfjs-data/src/readers.ts:199
Functionget
(identifierOrFn: string|LossOrMetricFn)
tfjs-layers/src/losses.ts:261
Functionget
(target, name, receiver)
tfjs-core/src/test_async_backends.ts:49
MethodgetA
(channels: string[])
tfjs-backend-webgl/src/reverse_packed_gpu.ts:89
MethodgetAttributeLocation
(program: WebGLProgram, attribute: string)
tfjs-backend-webgl/src/gpgpu_context.ts:398
MethodgetB
(channels: string[])
tfjs-backend-webgl/src/reverse_packed_gpu.ts:84
FunctiongetBackend
()
tfjs-layers/src/backend/tfjs_backend.ts:37
FunctiongetBenchmarkSummary
(timeInfo, memoryInfo, modelName = 'model')
e2e/benchmarks/browserstack-benchmark/benchmark_models.js:38
MethodgetCellConfig
(cell: RNNCell)
tfjs-layers/src/layers/recurrent.ts:2018
MethodgetChannel
(channels: string[])
tfjs-backend-webgl/src/reverse_packed_gpu.ts:95
FunctiongetClassName
* 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
MethodgetClassName
()
tfjs-tflite/src/types/image_segmenter.ts:60
MethodgetClassName
()
tfjs-layers/src/initializers.ts:395
MethodgetClassName
()
tfjs-layers/src/initializers.ts:424
MethodgetClassName
()
tfjs-layers/src/initializers.ts:446
MethodgetClassName
()
tfjs-layers/src/initializers.ts:468
MethodgetClassName
()
tfjs-layers/src/initializers.ts:490
MethodgetClassName
()
tfjs-layers/src/initializers.ts:512
MethodgetClassesList
()
tfjs-tflite/src/types/image_classifier.ts:44
FunctiongetColorMatrixTextureShapeWidthHeight
( rows: number, columns: number)
tfjs-backend-webgl/src/tex_util.ts:114
FunctiongetComplexWithIndex
( complex: Float32Array, index: number)
tfjs-core/src/backends/complex_util.ts:110
FunctiongetConfig
()
tfjs-layers/src/constraints.ts:37
FunctiongetConfig
()
tfjs-layers/src/initializers.ts:47
FunctiongetConfig
()
tfjs-layers/src/activations.ts:27
FunctiongetConfig
()
tfjs-layers/src/engine/container.ts:1082
FunctiongetConfig
* 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
FunctiongetConfig
()
tfjs-layers/src/engine/base_random_layer.ts:30
FunctiongetConfig
()
tfjs-layers/src/layers/convolutional.ts:486
FunctiongetConfig
()
tfjs-layers/src/layers/pooling.ts:228
FunctiongetConfig
()
tfjs-layers/src/layers/wrappers.ts:117
MethodgetConfig
()
tfjs-layers/src/constraints.ts:87
MethodgetConfig
()
tfjs-layers/src/constraints.ts:126
MethodgetConfig
()
tfjs-layers/src/constraints.ts:209
MethodgetConfig
()
tfjs-layers/src/initializers.ts:97
MethodgetConfig
()
tfjs-layers/src/initializers.ts:134
MethodgetConfig
()
tfjs-layers/src/initializers.ts:175
MethodgetConfig
()
tfjs-layers/src/initializers.ts:216
MethodgetConfig
()
tfjs-layers/src/initializers.ts:250
MethodgetConfig
()
tfjs-layers/src/initializers.ts:359
MethodgetConfig
()
tfjs-layers/src/initializers.ts:587
MethodgetConfig
()
tfjs-layers/src/models.ts:1099
MethodgetConfig
()
tfjs-layers/src/regularizers.ts:87
MethodgetConfig
()
tfjs-layers/src/engine/input_layer.ts:131
MethodgetConfig
()
tfjs-layers/src/layers/merge.ts:775
MethodgetConfig
()
tfjs-layers/src/layers/convolutional.ts:685
MethodgetConfig
()
tfjs-layers/src/layers/convolutional.ts:846
MethodgetConfig
()
tfjs-layers/src/layers/convolutional.ts:1006
MethodgetConfig
()
tfjs-layers/src/layers/convolutional.ts:1191
← previousnext →4,301–4,400 of 6,022, ranked by callers