MCPcopy Create free account

hub / github.com/tensorflow/tfjs / functions

Functions6,022 in github.com/tensorflow/tfjs

Methodconstructor
* @param modelUrl url for the model, or an `io.IOHandler`. * @param weightManifestUrl url for the weight file generated by * scripts/convert.py
tfjs-converter/src/executor/graph_model.ts:104
Methodconstructor
( readonly name: string, readonly dtype: DataType, private maxSize: number, private elementShape:
tfjs-converter/src/executor/tensor_array.ts:36
Methodconstructor
* Constructor of HashTable. Creates a hash table. * * @param keyDType `dtype` of the table keys. * @param valueDType `dtype` of the table val
tfjs-converter/src/executor/hash_table.ts:40
Methodconstructor
()
tfjs-converter/src/operations/operation_mapper.ts:56
Methodconstructor
( private node: Node, private tensorMap: NamedTensorsMap, private context: ExecutionContext)
tfjs-converter/src/operations/custom_op/node_value_impl.ts:32
Methodconstructor
()
tfjs-converter/demo/mobilenet/mobilenet.js:30
Methodconstructor
()
tfjs-converter/demo/control_flow/loop_model.js:25
Functionconv1d_
* Computes a 1D convolution over the input x. * * @param x The input tensor, of rank 3 or rank 2, of shape * `[batch, width, inChannels]`. If r
tfjs-core/src/ops/conv1d.ts:55
Functionconv2DBackpropFilter
(args: { inputs: Conv2DBackpropFilterInputs, backend: WebGPUBackend, attrs: Conv2DBackpropFilterAttrs })
tfjs-backend-webgpu/src/kernels/Conv2DBackpropFilter.ts:23
Functionconv2DBackpropFilter
(args: { inputs: Conv2DBackpropFilterInputs, attrs: Conv2DBackpropFilterAttrs, backend: MathBackendWebGL
tfjs-backend-webgl/src/kernels/Conv2DBackpropFilter.ts:23
Functionconv2DBackpropFilter_
* Computes the derivative of the filter of a 2D convolution. * * @param x The input tensor, of rank 4 or rank 3 of shape * [batch, height, widt
tfjs-core/src/ops/conv2d_backprop_filter.ts:48
Functionconv2DBackpropInput
(args: { inputs: Conv2DBackpropInputInputs, attrs: Conv2DBackpropInputAttrs, backend: WebGPUBackend })
tfjs-backend-webgpu/src/kernels/Conv2DBackpropInput.ts:24
Functionconv2DBackpropInput
(args: { inputs: Conv2DBackpropInputInputs, attrs: Conv2DBackpropInputAttrs, backend: MathBackendWebGL }
tfjs-backend-webgl/src/kernels/Conv2DBackpropInput.ts:24
Functionconv2DBackpropInput
(args: { backend: BackendWasm, inputs: Conv2DBackpropInputInputs, attrs: Conv2DBackpropInputAttrs })
tfjs-backend-wasm/src/kernels/Conv2DBackpropInput.ts:64
Functionconv2DBackpropInput_
* Computes the derivative of the input of a 2D convolution. * * @param xShape The shape of the input: [batch, height, width, inDepth]. * If length
tfjs-core/src/ops/conv2d_backprop_input.ts:52
Functionconv2d
( args: {inputs: Conv2DInputs, attrs: Conv2DAttrs, backend: WebGPUBackend})
tfjs-backend-webgpu/src/kernels/Conv2D.ts:24
Functionconv2d
( args: {inputs: Conv2DInputs, attrs: Conv2DAttrs, backend: MathBackendWebGL})
tfjs-backend-webgl/src/kernels/Conv2D.ts:26
Functionconv2d
( args: {inputs: Conv2DInputs, backend: BackendWasm, attrs: Conv2DAttrs})
tfjs-backend-wasm/src/kernels/Conv2D.ts:54
Functionconv2dTranspose_
* Computes the transposed 2D convolution of an image, also known as a * deconvolution. * * @param x The input image, of rank 4 or rank 3, of shape
tfjs-core/src/ops/conv2d_transpose.ts:45
Functionconv2d_
* Computes a 2D convolution over the input x. * * @param x The input tensor, of rank 4 or rank 3, of shape * `[batch, height, width, inChannels
tfjs-core/src/ops/conv2d.ts:62
Methodconv2d_addV2
(x)
tfjs-converter/python/tensorflowjs/converters/normalize_bias_add_test.py:41
Methodconv2d_addV2_depthwise_addV2
(x)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:184
Functionconv3D
( args: {inputs: Conv3DInputs, backend: MathBackendCPU, attrs: Conv3DAttrs})
tfjs-backend-cpu/src/kernels/Conv3D.ts:23
Functionconv3D
( args: {inputs: Conv3DInputs, attrs: Conv3DAttrs, backend: WebGPUBackend})
tfjs-backend-webgpu/src/kernels/Conv3D.ts:23
Functionconv3D
( args: {inputs: Conv3DInputs, attrs: Conv3DAttrs, backend: MathBackendWebGL})
tfjs-backend-webgl/src/kernels/Conv3D.ts:23
Functionconv3D
(args: { inputs: Conv3DInputs, attrs: Conv3DAttrs, backend: BackendWasm, })
tfjs-backend-wasm/src/kernels/Conv3D.ts:60
Functionconv3DBackpropFilterV2
(args: { inputs: Conv3DBackpropFilterV2Inputs, backend: MathBackendCPU, attrs: Conv3DBackpropFilterV2Att
tfjs-backend-cpu/src/kernels/Conv3DBackpropFilterV2.ts:23
Functionconv3DBackpropFilterV2
(args: { inputs: Conv3DBackpropFilterV2Inputs, attrs: Conv3DBackpropFilterV2Attrs, backend: WebGPUBacken
tfjs-backend-webgpu/src/kernels/Conv3DBackpropFilterV2.ts:23
Functionconv3DBackpropFilterV2
(args: { inputs: Conv3DBackpropFilterV2Inputs, attrs: Conv3DBackpropFilterV2Attrs, backend: MathBackendW
tfjs-backend-webgl/src/kernels/Conv3DBackpropFilterV2.ts:23
Functionconv3DBackpropFilterV2
(args: { inputs: Conv3DBackpropFilterV2Inputs, attrs: Conv3DBackpropFilterV2Attrs, backend: BackendWasm,
tfjs-backend-wasm/src/kernels/Conv3DBackpropFilterV2.ts:61
Functionconv3DBackpropFilter_
* Computes the derivative of the filter of a 3D convolution. * * @param x The input tensor, of rank 5 or rank 4 of shape * [batch, depth, heigh
tfjs-core/src/ops/conv3d_backprop_filter.ts:43
Functionconv3DBackpropInputV2
(args: { inputs: Conv3DBackpropInputV2Inputs, backend: MathBackendCPU, attrs: Conv3DBackpropInputV2Attrs
tfjs-backend-cpu/src/kernels/Conv3DBackpropInputV2.ts:23
Functionconv3DBackpropInputV2
(args: { inputs: Conv3DBackpropInputV2Inputs, attrs: Conv3DBackpropInputV2Attrs, backend: WebGPUBackend
tfjs-backend-webgpu/src/kernels/Conv3DBackpropInputV2.ts:23
Functionconv3DBackpropInputV2
(args: { inputs: Conv3DBackpropInputV2Inputs, attrs: Conv3DBackpropInputV2Attrs, backend: BackendWasm, }
tfjs-backend-wasm/src/kernels/Conv3DBackpropInputV2.ts:60
Functionconv3DBackpropInput_
* Computes the derivative of the input of a 3D convolution. * * @param xShape The shape of the input: [batch, depth, height, width, * in_channels].
tfjs-core/src/ops/conv3d_backprop_input.ts:45
Functionconv3d
(args: ConvLayerArgs)
tfjs-layers/src/exports_layers.ts:329
Functionconv3dTranspose
(args: ConvLayerArgs)
tfjs-layers/src/exports_layers.ts:333
Functionconv3dTranspose_
* Computes the transposed 3D convolution of a volume, also known as a * deconvolution. * * @param x The input image, of rank 5 or rank 4, of shape
tfjs-core/src/ops/conv3d_transpose.ts:43
Functionconv3d_
* Computes a 3D convolution over the input x. * * @param x The input tensor, of rank 5 or rank 4, of shape * `[batch, depth, height, width, cha
tfjs-core/src/ops/conv3d.ts:62
FunctionconvLstm2d
(args: ConvLSTM2DArgs)
tfjs-layers/src/exports_layers.ts:1408
FunctionconvLstm2dCell
(args: ConvLSTM2DCellArgs)
tfjs-layers/src/exports_layers.ts:1445
FunctionconvertBackendValuesAndArrayBuffer
( data: BackendValues|ArrayBuffer, dtype: DataType)
tfjs-core/src/util_base.ts:620
FunctionconvertInputsToDataset
( x?: Tensor, y?: Tensor, sampleWeight?: Tensor, batchSize?: number )
tfjs-layers/src/layers/nlp/utils.ts:86
Functionconvert_jax
Converts a JAX function `jax_apply_fn` and model parameters to a TensorflowJS model. Example usage for a Flax Module: ``` import numpy as np
tfjs-converter/python/tensorflowjs/converters/jax_conversion.py:55
Functionconvert_keras_model_to_graph_model
Convert an in-memory keras model to Tensorflow.js graph model format. Args: keras_model: Keras Model object. output_dir: string The name of
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:1186
Functionconvert_tf_frozen_model
Convert frozen model and check the model compatibility with Tensorflow.js. Optimize and convert the model to Tensorflow.js format, when the model pa
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:525
Functionconvert_tf_hub_module
Conversion for TF Hub modules V1 and V2. See convert_tf_hub_module and convert_tf_saved_model. Args: module_path: string Path to the module.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:1122
FunctioncopyModel
* Copy a model from one URL to another. * * This function supports: * * 1. Copying within a storage medium, e.g., * `tf.io.copyModel('localsto
tfjs-core/src/io/model_management.ts:298
FunctioncopyRegisteredKernels
( registeredBackendName: string, newBackendName: string)
tfjs-core/src/kernel_registry.ts:196
Functioncos_
* Computes cos of the input `tf.Tensor` element-wise: `cos(x)` * * ```js * const x = tf.tensor1d([0, Math.PI / 2, Math.PI * 3 / 4]); * * x.cos().
tfjs-core/src/ops/cos.ts:39
Functioncosh_
* Computes hyperbolic cos of the input `tf.Tensor` element-wise: `cosh(x)` * * ```js * const x = tf.tensor1d([0, 1, -1, .7]); * * x.cosh().print(
tfjs-core/src/ops/cosh.ts:39
FunctioncosineDistance_
* Computes the cosine distance loss between two tensors. * * @param labels The ground truth output tensor, same dimensions as * 'predictions'.
tfjs-core/src/ops/losses/cosine_distance.ts:46
FunctioncosineProximity
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/losses.ts:219
FunctioncosineProximity
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/exports_metrics.ts:229
FunctioncountParams
(x: HasShape)
tfjs-layers/src/backend/tfjs_backend.ts:57
FunctioncountParams
* Counts the total number of numbers (e.g., float32, int32) in the * weights. * * @returns An integer count. * @throws RuntimeError: If th
tfjs-layers/src/engine/topology.ts:1171
Methodcreate
* The factory function to create an ImageClassifier instance. * * @param model The path to load the TFLite model from, or the model content *
tfjs-tflite/src/types/bert_qa.ts:41
Methodcreate
* The factory function to create a NLClassifier instance. * * @param model The path to load the TFLite model from, or the model content *
tfjs-tflite/src/types/bert_nl_classifier.ts:35
Methodcreate
* The factory function to create a TFLiteWebModelRunner instance. * * @param model The path to load the TFLite model from, or the model content
tfjs-tflite/src/types/tflite_web_model_runner.ts:29
Methodcreate
* The factory function to create an ImageSegmenter instance. * * @param model The path to load the TFLite model from, or the model content *
tfjs-tflite/src/types/image_segmenter.ts:75
Methodcreate
* The factory function to create an ImageClassifier instance. * * @param model The path to load the TFLite model from, or the model content *
tfjs-tflite/src/types/object_detector.ts:65
Methodcreate
* The factory function to create an ImageClassifier instance. * * @param model The path to load the TFLite model from, or the model content *
tfjs-tflite/src/types/image_classifier.ts:56
Methodcreate
(model: string| ArrayBuffer)
tfjs-tflite/src/tflite_task_library_client/bert_qa.ts:52
Methodcreate
( model: string|ArrayBuffer, options?: BertNLClassifierOptions)
tfjs-tflite/src/tflite_task_library_client/bert_nl_classifier.ts:43
Methodcreate
( model: string|ArrayBuffer, options = DEFAULT_NLCLASSIFIER_OPTIONS)
tfjs-tflite/src/tflite_task_library_client/nl_classifier.ts:64
Methodcreate
( model: string|ArrayBuffer, options?: ImageSegmenterOptions)
tfjs-tflite/src/tflite_task_library_client/image_segmenter.ts:96
Methodcreate
( model: string|ArrayBuffer, options?: ObjectDetectorOptions)
tfjs-tflite/src/tflite_task_library_client/object_detector.ts:63
Methodcreate
( model: string|ArrayBuffer, options?: ImageClassifierOptions)
tfjs-tflite/src/tflite_task_library_client/image_classifier.ts:50
Methodcreate
( webcamVideoElement?: HTMLVideoElement, webcamConfig: WebcamConfig = {})
tfjs-data/src/iterators/webcam_iterator.ts:68
Methodcreate
(microphoneConfig: MicrophoneConfig = {})
tfjs-data/src/iterators/microphone_iterator.ts:79
Methodcreate
()
tfjs-data/demo/boston-housing/data.ts:37
FunctioncreateBufferFromOutputTexture
( gl2: WebGL2RenderingContext, rows: number, columns: number, textureConfig: TextureConfig)
tfjs-backend-webgl/src/gpgpu_util.ts:255
FunctioncreateFloat16MatrixTexture
( gl: WebGLRenderingContext, rows: number, columns: number, textureConfig: TextureConfig)
tfjs-backend-webgl/src/gpgpu_util.ts:108
FunctioncreateFloat16PackedMatrixTexture
( gl: WebGLRenderingContext, rows: number, columns: number, textureConfig: TextureConfig)
tfjs-backend-webgl/src/gpgpu_util.ts:155
FunctioncreateFloat32MatrixTexture
( gl: WebGLRenderingContext, rows: number, columns: number, textureConfig: TextureConfig)
tfjs-backend-webgl/src/gpgpu_util.ts:92
FunctioncreateFramebuffer
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/webgl_util.ts:221
FunctioncreateIndexBuffer
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/gpgpu_util.ts:47
MethodcreateInstance
()
tfjs-data/src/util/test_utils.ts:105
FunctioncreateOpAttr
( attrName: string, tensorsOrDtype: tf.Tensor|tf.Tensor[]|tf.DataType, value: ScalarLike)
tfjs-node/src/nodejs_kernel_backend.ts:757
FunctioncreatePackedMatrixTexture
( gl: WebGLRenderingContext, rows: number, columns: number, textureConfig: TextureConfig)
tfjs-backend-webgl/src/gpgpu_util.ts:140
FunctioncreateProgram
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/webgl_util.ts:145
FunctioncreateScalarValue
( value: DataType, dtype: DataType)
tfjs-core/src/util.ts:28
FunctioncreateShuffledIndices
(n: number)
tfjs-core/src/util_base.ts:274
FunctioncreateStaticIndexBuffer
( gl: WebGLRenderingContext, data: Uint16Array)
tfjs-backend-webgl/src/webgl_util.ts:184
FunctioncreateStaticVertexBuffer
( gl: WebGLRenderingContext, data: Float32Array)
tfjs-backend-webgl/src/webgl_util.ts:175
MethodcreateTensorFromGPUData
* Create a TF.js tensor out of an existing WebGPU buffer.
tfjs-backend-webgpu/src/backend_webgpu.ts:556
MethodcreateTensorFromGPUData
* Create a TF.js tensor out of an existing WebGL texture. A new texture will * be created.
tfjs-backend-webgl/src/backend_webgl.ts:1309
FunctioncreateTexture
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/webgl_util.ts:201
FunctioncreateUnsignedBytesMatrixTexture
( gl: WebGLRenderingContext, rows: number, columns: number, textureConfig: TextureConfig)
tfjs-backend-webgl/src/gpgpu_util.ts:124
FunctioncreateVertexBuffer
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/gpgpu_util.ts:40
FunctioncreateVertexShader
(gl: WebGLRenderingContext)
tfjs-backend-webgl/src/gpgpu_util.ts:25
FunctioncreateVertexShader
( gl: WebGLRenderingContext, vertexShaderSource: string)
tfjs-backend-webgl/src/webgl_util.ts:79
Methodcreate_input
(name)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:346
FunctioncropAndResize
(args: { inputs: CropAndResizeInputs, backend: WebGPUBackend, attrs: CropAndResizeAttrs })
tfjs-backend-webgpu/src/kernels/CropAndResize.ts:23
FunctioncropAndResize
(args: { inputs: CropAndResizeInputs, backend: MathBackendWebGL, attrs: CropAndResizeAttrs })
tfjs-backend-webgl/src/kernels/CropAndResize.ts:23
FunctioncropAndResize
(args: { backend: BackendWasm, inputs: CropAndResizeInputs, attrs: CropAndResizeAttrs })
tfjs-backend-wasm/src/kernels/CropAndResize.ts:50
FunctioncropAndResize_
* Extracts crops from the input image tensor and resizes them using bilinear * sampling or nearest neighbor sampling (possibly with aspect ratio chan
tfjs-core/src/ops/image/crop_and_resize.ts:52
Functioncropping2D
(args: Cropping2DLayerArgs)
tfjs-layers/src/exports_layers.ts:401
Functioncsv
( source: RequestInfo, csvConfig: CSVConfig = {})
tfjs-data/src/readers.ts:106
Functioncumprod
( args: {inputs: CumprodInputs, backend: WebGPUBackend, attrs: CumprodAttrs})
tfjs-backend-webgpu/src/kernels/Cumprod.ts:24
← previousnext →3,901–4,000 of 6,022, ranked by callers