A WebGL accelerated JavaScript library for training and deploying ML models.
This report summarizes scanner evidence for tensorflow/tfjs, a TypeScript project with 19,156 GitHub stars. SynthScan examined 428,898 lines of code across 3109 source files, recording 1013 pattern matches distributed across 21 syntactic categories. The legacy adjusted pattern signal is 3.4 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 755 finding(s).
Are imports declared and package/API names verified? 156 finding(s).
Are wrappers, guards, and repeated structures necessary? 391 finding(s).
Which changes need focused human review? 1013 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1013 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-automl/scripts/build-npm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tfjs-automl/scripts/test-ci.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/enumerate-tests.ts | 1 | #!/usr/bin/env node | COMMENT |
| LOW | tools/make_version_test_file.ts | 1 | #!/usr/bin/env node | COMMENT |
| LOW | tfjs-core/scripts/test-bundle-size.js | 1 | #!/usr/bin/env node | COMMENT |
| LOW | tfjs-core/scripts/build-npm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tfjs-core/src/util_base.ts | 741 | // 1. It only reliably works for es6 Promise, not other Promise | COMMENT |
| LOW | tfjs-core/src/hash_util_test.ts | 41 | const MAX_INT32 = ACMRandom.MAX_INT32; | COMMENT |
| LOW | tfjs-core/src/optimizers/rmsprop_optimizer_test.ts | 41 | // epsilon = 1e-8 | COMMENT |
| LOW | tfjs-core/src/optimizers/rmsprop_optimizer_test.ts | 101 | expect(tf.memory().numTensors).toBe(numTensors + 4); | COMMENT |
| LOW | tfjs-core/src/optimizers/rmsprop_optimizer_test.ts | 121 | // x = [0.54117, 1.541169] | COMMENT |
| LOW | tfjs-core/src/optimizers/adam_optimizer_test.ts | 41 | // beta1 * old_first_m_w1 + (1-beta1) * grad_w1, | COMMENT |
| LOW | tfjs-core/src/optimizers/adam_optimizer_test.ts | 61 | // beta1 * old_first_m_w2 + (1-beta1) * grad_w2 | COMMENT |
| LOW | tfjs-core/src/optimizers/adamax_optimizer_test.ts | 41 | expect(tf.memory().numTensors).toBe(numTensors + 3); | COMMENT |
| LOW | tfjs-core/src/optimizers/adamax_optimizer_test.ts | 61 | // w2_old - updates_2 | COMMENT |
| LOW | tfjs-core/src/optimizers/adamax_optimizer_test.ts | 81 | // 0.9 * 4, | COMMENT |
| LOW | tfjs-core/src/optimizers/adagrad_optimizer_test.ts | 41 | // newAccumulatedGrad = accumulatedGrad + grad^2 | COMMENT |
| LOW | tfjs-core/src/optimizers/adadelta_optimizer_test.ts | 41 | // newAccumulatedGrad = rho * accumulatedGrad + (1 - rho) * grad ^ 2 | COMMENT |
| LOW | tfjs-core/src/ops/confusion_matrix_test.ts | 21 | COMMENT | |
| LOW | tfjs-core/src/ops/confusion_matrix_test.ts | 61 | // | COMMENT |
| LOW | tfjs-core/src/ops/reverse_4d_test.ts | 21 | COMMENT | |
| LOW | tfjs-core/src/ops/reverse_4d_test.ts | 41 | // ], | COMMENT |
| LOW | tfjs-core/src/ops/conv2d_transpose_test.ts | 261 | // x = tf.constant(np.array([[ | COMMENT |
| LOW | tfjs-core/src/ops/conv2d_transpose_test.ts | 321 | expectArraysClose(await filtGrad.data(), await expectedFiltGrad.data()); | COMMENT |
| LOW | tfjs-core/src/ops/conv2d_transpose_test.ts | 381 | const expectedFiltGrad = tf.ones([2, 2, 2, 1]).mul(tf.scalar(-0.01444618)); | COMMENT |
| LOW | tfjs-core/src/ops/conv2d_transpose_test.ts | 401 | // [[[0.34968338], [-0.42306114]], [[1.27395733], [-1.09014535]]] | COMMENT |
| LOW | tfjs-core/src/ops/conv2d_transpose_test.ts | 501 | // ```py | COMMENT |
| LOW | tfjs-core/src/ops/reverse_3d_test.ts | 21 | COMMENT | |
| LOW | tfjs-core/src/ops/moving_average_test.ts | 21 | COMMENT | |
| LOW | tfjs-core/src/ops/moving_average_test.ts | 81 | // | COMMENT |
| LOW | tfjs-core/src/ops/log_softmax.ts | 61 | if (axis !== $logits.rank - 1) { | COMMENT |
| LOW | tfjs-core/src/ops/pad_test.ts | 201 | // 0, 0, 0 | COMMENT |
| LOW | tfjs-backend-cpu/scripts/build-npm.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | …s-backend-cpu/src/kernels/RaggedTensorToTensor_impl.ts | 201 | // -1 indicates an element or list that is out of range. | COMMENT |
| LOW | tfjs-backend-cpu/src/kernels/Unique_impl.ts | 21 | values: BackendValues, axis: number, shape: number[], dtype: DataType): { | COMMENT |
| LOW | tfjs-backend-cpu/src/kernels/Unique_impl.ts | 41 | // intermediate TensorBuffer (see inputBuffer below) to allow us to extract | COMMENT |
| LOW | tfjs-backend-cpu/src/kernels/Unique_impl.ts | 61 | // ], | COMMENT |
| LOW | tfjs-layers/tools/clang_format_ts.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tfjs-layers/src/losses_test.ts | 181 | expectTensorsClose(result, expected); | COMMENT |
| LOW | tfjs-layers/src/losses_test.ts | 221 | // with tf.Session() as sess: | COMMENT |
| LOW | tfjs-layers/src/losses_test.ts | 261 | // | COMMENT |
| LOW | tfjs-layers/src/metrics_test.ts | 81 | // Use the following Python code to generate the reference values: | COMMENT |
| LOW | tfjs-layers/src/metrics_test.ts | 101 | const accuracy = tfl.metrics.binaryCrossentropy(x, y); | COMMENT |
| LOW | tfjs-layers/src/metrics_test.ts | 181 | }); | COMMENT |
| LOW | tfjs-layers/src/metrics_test.ts | 201 | // ]) | COMMENT |
| LOW | tfjs-layers/src/metrics_test.ts | 241 | // | COMMENT |
| LOW | tfjs-layers/src/layers/advanced_activation_test.ts | 81 | describeMathCPUAndWebGL2('PReLU: Tensor', () => { | COMMENT |
| LOW | tfjs-layers/src/layers/advanced_activation_test.ts | 121 | expect(history.history.loss[2]).toBeCloseTo(0.049144); | COMMENT |
| LOW | tfjs-layers/src/layers/convolutional_test.ts | 481 | // # the 3D convolutions. | COMMENT |
| LOW | tfjs-layers/src/layers/convolutional_test.ts | 501 | // # 178., 186., 190., 194., 202., 206., 210.], dtype=float32) | COMMENT |
| LOW | tfjs-layers/src/layers/convolutional_test.ts | 741 | // tslint:disable-next-line:no-any | COMMENT |
| LOW | tfjs-layers/src/layers/convolutional_test.ts | 841 | // ```python | COMMENT |
| LOW | tfjs-layers/src/layers/core_test.ts | 821 | // model.add(tf.keras.layers.SimpleRNN( | COMMENT |
| LOW | tfjs-layers/src/layers/core_test.ts | 841 | }); | COMMENT |
| LOW | tfjs-layers/src/layers/wrappers_test.ts | 81 | }); | COMMENT |
| LOW | tfjs-layers/src/layers/wrappers_test.ts | 121 | ]])); | COMMENT |
| LOW | tfjs-layers/src/layers/wrappers_test.ts | 141 | // z1 = keras.layers.Embedding(10, | COMMENT |
| LOW | tfjs-layers/src/layers/wrappers_test.ts | 361 | // The golden tensor values used in the tests below can be obtained with | COMMENT |
| LOW | tfjs-layers/src/layers/wrappers_test.ts | 461 | // rnn = keras.layers.LSTM( | COMMENT |
| LOW | tfjs-layers/src/layers/wrappers_test.ts | 501 | }); | COMMENT |
| 278 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tfjs-automl/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-automl/scripts/test-ci.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-core/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-backend-cpu/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-layers/tools/clang_format_ts.sh | 8 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-backend-webgpu/scripts/publish-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-backend-webgpu/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-inference/python/inference.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-inference/scripts/run_python.sh | 8 | # ============================================================================= | COMMENT |
| MEDIUM | scripts/buildifier-ci.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | scripts/publish-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | scripts/run_bazel_ci_tests.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | scripts/run-build.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | .github/workflows/stale.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-backend-wasm/scripts/build-ci.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-backend-wasm/scripts/build-wasm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-backend-wasm/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-backend-wasm/scripts/test-ci.sh | 8 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs/scripts/test-ci.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-react-native/integration_rn59/scripts/test-ci.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-react-native/scripts/update-apk.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | e2e/integration_tests/convert_predict.py | 14 | # ============================================================================= | COMMENT |
| MEDIUM | e2e/integration_tests/metadata.py | 14 | # ============================================================================= | COMMENT |
| MEDIUM | e2e/integration_tests/create_save_predict.py | 6 | # ============================================================================= | COMMENT |
| MEDIUM | e2e/custom_module/dense_model/build.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/custom_module/universal_sentence_encoder/build.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/custom_module/blazeface/build.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/local-registry.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/create-python-models.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/release-e2e.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/run-custom-builds.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/deploy-benchmarks.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/test-ci.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/build-deps-ci.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/cleanup-py-env.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/create_save_predict.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/fetch-graph-model-golden-data-ci.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | e2e/scripts/setup-py-env.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-node/python/int64_model.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-node/python/unint8_model.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-node/scripts/publish-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-node/scripts/publish-npm-gpu.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-node/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-node/scripts/build-and-upload-addon.sh | 14 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-data/scripts/build-npm.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-data/scripts/test-ci.sh | 8 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-converter/python/update_locked_deps.sh | 15 | # ============================================================================= | COMMENT |
| MEDIUM | tfjs-converter/python/build-pip-package.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/run-python-tests.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/setup.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/test_nightly_pip_package.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/test_pip_package.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/tensorflowjs/quantization_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/tensorflowjs/write_weights.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …-converter/python/tensorflowjs/resource_loader_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/tensorflowjs/quantization.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/tensorflowjs/read_weights.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tfjs-converter/python/tensorflowjs/__init__.py | 14 | # ============================================================================== | COMMENT |
| 37 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rollup.config.helpers.js | 31 | export function getBrowserBundleConfigOptions( | CODE |
| LOW | tfjs-automl/src/object_detection.ts | 126 | function calculateMostLikelyLabels( | CODE |
| LOW | tfjs-core/scripts/test_snippets/util.ts | 179 | function convertDocStringToDocInfoObject(docString: string): JSDoc { | CODE |
| LOW | tfjs-core/src/util_base.ts | 620 | export function convertBackendValuesAndArrayBuffer( | CODE |
| LOW | tfjs-core/src/util_base.ts | 678 | export function assertNonNegativeIntegerDimensions(shape: number[]) { | CODE |
| LOW | tfjs-core/src/jasmine_util.ts | 167 | export function parseTestEnvFromKarmaFlags( | CODE |
| LOW | tfjs-core/src/engine.ts | 1289 | export function getOrMakeEngine(): Engine { | CODE |
| LOW | tfjs-core/src/globals.ts | 56 | export function disableDeprecationWarnings(): void { | CODE |
| LOW | tfjs-core/src/tensor_util_env.ts | 57 | function deepAssertShapeConsistency( | CODE |
| LOW | tfjs-core/src/io/io_utils.ts | 495 | export function getModelJSONForModelArtifacts( | CODE |
| LOW | tfjs-core/src/io/io_utils.ts | 533 | export function getModelArtifactsForJSONSync( | CODE |
| LOW | tfjs-core/src/io/io_utils.ts | 602 | export function getModelArtifactsInfoForJSON(modelArtifacts: ModelArtifacts): | CODE |
| LOW | tfjs-core/src/io/local_storage.ts | 40 | export function purgeLocalStorageArtifacts(): string[] { | CODE |
| LOW | tfjs-core/src/ops/segment_util.ts | 30 | export function segOpComputeOptimalWindowSize( | CODE |
| LOW | tfjs-core/src/ops/broadcast_util.ts | 60 | export function assertAndGetBroadcastShape( | CODE |
| LOW | tfjs-core/src/ops/pool.ts | 133 | function requiredSpaceToBatchPaddings( | CODE |
| LOW | tfjs-core/src/ops/pool.ts | 149 | function withSpaceToBatchBasePaddings( | CODE |
| LOW | tfjs-core/src/ops/ragged_to_dense_util.ts | 27 | export function combineRaggedTensorToTensorShapes( | CODE |
| LOW | tfjs-core/src/ops/ragged_to_dense_util.ts | 78 | export function getRowPartitionTypesHelper(rowPartitionTypeStrings: string[]) { | CODE |
| LOW | tfjs-core/src/ops/ragged_to_dense_util.ts | 110 | export function validateDefaultValueShape( | CODE |
| LOW | tfjs-core/src/ops/conv3d_test.ts | 39 | function generateGradientCaseInputs( | CODE |
| LOW | tfjs-core/src/ops/browser.ts | 183 | function isImageBitmapFullySupported() { | CODE |
| LOW | tfjs-core/src/ops/browser.ts | 194 | function canWrapPixelsToImageBitmap(pixels: PixelData|ImageData| | CODE |
| LOW | tfjs-core/src/ops/rand_util.ts | 233 | export function expectArrayInMeanStdRange( | CODE |
| LOW | tfjs-core/src/ops/conv_util.ts | 571 | export function eitherStridesOrDilationsAreOne( | CODE |
| LOW | tfjs-core/src/ops/conv_util.ts | 576 | export function stridesOrDilationsArePositive(values: number| | CODE |
| LOW | tfjs-core/src/ops/conv_util.ts | 614 | export function checkPadOnDimRoundingMode( | CODE |
| LOW | tfjs-core/src/ops/axis_util.ts | 49 | export function computeOutAndReduceShapes( | CODE |
| LOW | tfjs-core/src/ops/axis_util.ts | 68 | export function assertAxesAreInnerMostDims( | CODE |
| LOW | tfjs-core/src/ops/slice_util.ts | 209 | export function startIndicesWithElidedDims( | CODE |
| LOW | tfjs-core/src/ops/slice_util.ts | 234 | export function stopIndicesWithElidedDims( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_reshape_util.ts | 25 | export function getSparseReshapeMultipleNegativeOneOutputDimErrorMessage( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_reshape_util.ts | 36 | export function getSparseReshapeNegativeOutputDimErrorMessage( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_reshape_util.ts | 45 | export function getSparseReshapeEmptyTensorZeroOutputDimErrorMessage() { | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_reshape_util.ts | 56 | export function getSparseReshapeInputOutputMultipleErrorMessage( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_reshape_util.ts | 71 | export function getSparseReshapeInputOutputMismatchErrorMessage( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_fill_empty_rows_util.ts | 23 | export function getSparseFillEmptyRowsIndicesDenseShapeMismatch( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_fill_empty_rows_util.ts | 35 | export function getSparseFillEmptyRowsNegativeIndexErrorMessage( | CODE |
| LOW | tfjs-core/src/ops/sparse/sparse_fill_empty_rows_util.ts | 47 | export function getSparseFillEmptyRowsOutOfRangeIndexErrorMessage( | CODE |
| LOW⚡ | …s-core/src/ops/sparse/sparse_segment_reduction_util.ts | 22 | export function getSparseSegmentReductionNegativeSegmentIdsErrorMessage() { | CODE |
| LOW⚡ | …s-core/src/ops/sparse/sparse_segment_reduction_util.ts | 30 | export function getSparseSegmentReductionNonIncreasingSegmentIdsErrorMessage() { | CODE |
| LOW⚡ | …s-core/src/ops/sparse/sparse_segment_reduction_util.ts | 40 | export function getSparseSegmentReductionSegmentIdOutOfRangeErrorMessage( | CODE |
| LOW | …s-core/src/ops/sparse/sparse_segment_reduction_util.ts | 53 | export function getSparseSegmentReductionIndicesOutOfRangeErrorMessage( | CODE |
| LOW | …s-backend-cpu/src/kernels/ResizeNearestNeighborGrad.ts | 23 | export function resizeNearestNeighborGrad(args: { | CODE |
| LOW | …backend-cpu/src/kernels/StringToHashBucketFast_impl.ts | 20 | export function stringToHashBucketFastImpl( | CODE |
| LOW | …backend-cpu/src/kernels/SparseSegmentReduction_impl.ts | 20 | export function sparseSegmentReductionImpl( | CODE |
| LOW | tfjs-backend-cpu/src/utils/binary_impl.ts | 25 | export function createSimpleBinaryKernelImpl(op: SimpleBinaryOperation): | CODE |
| LOW | tfjs-backend-cpu/src/utils/binary_utils.ts | 135 | export function createComplexBinaryKernelImpl(op: ComplexBinaryOperation): | CODE |
| LOW | tfjs-layers/src/user_defined_metadata_test.ts | 94 | function createSequentialModelForTest(): Sequential { | CODE |
| LOW | tfjs-layers/src/user_defined_metadata_test.ts | 104 | function createFunctionalModelForTest(): tfl.LayersModel { | CODE |
| LOW | tfjs-layers/src/losses.ts | 45 | export function meanAbsolutePercentageError( | CODE |
| LOW | tfjs-layers/src/losses.ts | 56 | export function meanSquaredLogarithmicError( | CODE |
| LOW | tfjs-layers/src/losses.ts | 136 | export function sparseCategoricalCrossentropy( | CODE |
| LOW | tfjs-layers/src/losses.ts | 171 | export function sigmoidCrossEntropyWithLogits( | CODE |
| LOW | tfjs-layers/src/losses.ts | 202 | export function kullbackLeiblerDivergence( | CODE |
| LOW | tfjs-layers/src/exports_metrics.ts | 88 | export function sparseCategoricalAccuracy( | CODE |
| LOW | tfjs-layers/src/exports_metrics.ts | 275 | export function meanAbsolutePercentageError( | CODE |
| LOW | tfjs-layers/src/models.ts | 282 | export async function loadLayersModelFromIOHandler( | CODE |
| LOW | tfjs-layers/src/models.ts | 344 | function decodeModelAndOptimizerWeights( | CODE |
| LOW | tfjs-layers/src/metrics.ts | 92 | export function sparseCategoricalAccuracy( | CODE |
| 219 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | e2e/integration_tests/convert_predict.py | 147 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(save_dir) | CODE |
| CRITICAL | e2e/integration_tests/convert_predict.py | 386 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(save_dir) | CODE |
| CRITICAL⚡ | tfjs-data/src/dataset_test.ts | 368 | expect(compare.complexThenBatch.a.q.ab.x.dataSync()) | CODE |
| CRITICAL⚡ | tfjs-data/src/dataset_test.ts | 369 | .toEqual(compare.batchThenComplex.a.q.ab.x.dataSync()); | CODE |
| CRITICAL⚡ | tfjs-data/src/dataset_test.ts | 373 | expect(compare.complexThenBatch.b.bb.bbb.dataSync()) | CODE |
| CRITICAL⚡ | tfjs-data/src/dataset_test.ts | 374 | .toEqual(compare.batchThenComplex.b.bb.bbb.dataSync()); | CODE |
| CRITICAL⚡ | tfjs-data/src/dataset_test.ts | 378 | expect(compare.complexThenBatch.c.ca.x.dataSync()) | CODE |
| CRITICAL⚡ | tfjs-data/src/dataset_test.ts | 379 | .toEqual(compare.batchThenComplex.c.ca.x.dataSync()); | CODE |
| CRITICAL | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 70 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(save_dir) | CODE |
| CRITICAL | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 108 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder( | CODE |
| CRITICAL | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 385 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-inference/python/inference_test.py | 18 | CODE | |
| LOW | tfjs-inference/python/inference_test.py | 19 | CODE | |
| LOW | tfjs-inference/python/inference_test.py | 20 | CODE | |
| LOW | tfjs-inference/python/inference.py | 17 | CODE | |
| LOW | tfjs-inference/python/inference.py | 18 | CODE | |
| LOW | tfjs-inference/python/inference.py | 19 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 24 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 25 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 26 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 28 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 29 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 34 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 36 | CODE | |
| LOW | e2e/integration_tests/convert_predict.py | 48 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 24 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 25 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 26 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 28 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 29 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 34 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 36 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 38 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 39 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 42 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 43 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 47 | CODE | |
| LOW | e2e/integration_tests/metadata.py | 48 | CODE | |
| LOW | e2e/integration_tests/create_save_predict.py | 15 | CODE | |
| LOW | e2e/integration_tests/create_save_predict.py | 16 | CODE | |
| LOW | e2e/integration_tests/create_save_predict.py | 17 | CODE | |
| LOW | e2e/integration_tests/create_save_predict.py | 21 | CODE | |
| LOW | e2e/integration_tests/create_save_predict.py | 22 | CODE | |
| LOW | e2e/integration_tests/create_save_predict.py | 28 | CODE | |
| LOW | tfjs-node/python/int64_model.py | 22 | CODE | |
| LOW | tfjs-converter/python/test_nightly_pip_package.py | 17 | CODE | |
| LOW | tfjs-converter/python/test_nightly_pip_package.py | 18 | CODE | |
| LOW | tfjs-converter/python/test_nightly_pip_package.py | 19 | CODE | |
| LOW | tfjs-converter/python/test_pip_package.py | 17 | CODE | |
| LOW | tfjs-converter/python/test_pip_package.py | 18 | CODE | |
| LOW | tfjs-converter/python/test_pip_package.py | 19 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization_test.py | 15 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization_test.py | 16 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization_test.py | 17 | CODE | |
| LOW | …-converter/python/tensorflowjs/resource_loader_test.py | 16 | CODE | |
| LOW | …-converter/python/tensorflowjs/resource_loader_test.py | 17 | CODE | |
| LOW | …-converter/python/tensorflowjs/resource_loader_test.py | 18 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization.py | 15 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization.py | 16 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization.py | 17 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/read_weights.py | 17 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/read_weights.py | 18 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/read_weights.py | 19 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/__init__.py | 16 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/__init__.py | 17 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/__init__.py | 18 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/__init__.py | 21 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/__init__.py | 22 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/resource_loader.py | 17 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/resource_loader.py | 18 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/resource_loader.py | 19 | CODE | |
| 64 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tfjs-converter/python/tensorflowjs/quantization.py | 34 | Maps node names to their quantization dtypes. Given a quantization_dtype_map which maps dtypes `uint8`, `uint16`, `fl | STRING |
| HIGH | tfjs-converter/python/tensorflowjs/quantization.py | 94 | Quantizes the weights by linearly re-scaling across available bits. The weights are quantized by linearly re-scaling | STRING |
| HIGH | tfjs-converter/python/tensorflowjs/quantization.py | 176 | Computes quantization range to ensure that zero is represented if covered. Gymnastics with nudged zero point is to en | STRING |
| HIGH | tfjs-converter/python/tensorflowjs/read_weights.py | 127 | Load weight values from buffer(s) according to a weights manifest. Args: weights_manifest: A TensorFlow.js-format | STRING |
| HIGH | tfjs-converter/python/tensorflowjs/resource_loader.py | 25 | Opens the file at given path, where path is relative to tensorflowjs/. Args: path: a string resource path relativ | STRING |
| HIGH | tfjs-converter/python/tensorflowjs/resource_loader.py | 41 | List the files inside a dir where path is relative to tensorflowjs/. Args: path: a string path to a resource dire | STRING |
| HIGH | …r/python/tensorflowjs/converters/normalize_bias_add.py | 24 | Convert AddV2 ops and Add ops to BiasAdd if they could be fused with the ancestor node. Grappler and the TFJS's fus | STRING |
| HIGH | …r/python/tensorflowjs/converters/graph_rewrite_util.py | 28 | Pulls a node def from a dictionary for a given name. Args: node_map: Dictionary containing an entry indexed by na | STRING |
| HIGH | …r/python/tensorflowjs/converters/graph_rewrite_util.py | 47 | Extracts the values from a const NodeDef as a numpy ndarray. Args: node_def: Const NodeDef that has the values we | STRING |
| HIGH | …converter/python/tensorflowjs/converters/fuse_prelu.py | 30 | Modifies the provided graph by fusing a set of ops into a single Prelu op. The formula of PReLU is: f(x) = alpha * x | STRING |
| HIGH | …converter/python/tensorflowjs/converters/fuse_prelu.py | 142 | Tensorflow does not support Prelu op, and the grappler remap optimizer will not fuse the prelu op with _FusedConv2D op | STRING |
| HIGH | …er/python/tensorflowjs/converters/keras_tfjs_loader.py | 242 | Load a Keras Model from TensorFlow.js-format artifacts from file system Args: config_json_path: Path to the Tenso | STRING |
| HIGH | …er/python/tensorflowjs/converters/keras_tfjs_loader.py | 309 | Load a Keras Model from TensorFlow.js-format artifacts from file system Args: config_json_path: Path to the Tenso | STRING |
| HIGH | …/python/tensorflowjs/converters/keras_h5_conversion.py | 202 | Load topology & weight values from HDF5 file and convert. The HDF5 file is one generated by Keras' save_model method | STRING |
| HIGH | …/python/tensorflowjs/converters/keras_h5_conversion.py | 254 | Load topology & weight values from HDF5 file and convert. The HDF5 weights file is one generated by Keras's save_mode | STRING |
| HIGH | …/python/tensorflowjs/converters/keras_h5_conversion.py | 321 | Load weight values from a Keras HDF5 file and to a binary format. The HDF5 file is one generated by Keras' Model.save | STRING |
| HIGH | …ython/tensorflowjs/converters/fuse_depthwise_conv2d.py | 98 | Modifies the provided graph by fusing a set of ops into a single _FusedDepthwiseConv2d op. DepthwiseConv2dNative + | STRING |
| HIGH | …ython/tensorflowjs/converters/fuse_depthwise_conv2d.py | 126 | Modifies the provided graph by fusing a set of ops into a single _FusedDepthwiseConv2d op. DepthwiseConv2dNative + | STRING |
| HIGH | …ter/python/tensorflowjs/converters/fold_batch_norms.py | 51 | Removes batch normalization ops by folding them into convolutions. Batch normalization during training has multiple d | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tfjs-backend-wasm/tools/cpplint.py | 5537 | # The following function is just a speed up, no semantics are changed. | STRING |
| MEDIUM | e2e/integration_tests/convert_predict.py | 16 | # This file is 1/2 of the test suites for CUJ: convert->predict. | COMMENT |
| MEDIUM | e2e/integration_tests/convert_predict.py | 146 | # Create a builder. | COMMENT |
| MEDIUM | e2e/integration_tests/convert_predict.py | 385 | # Create a builder. | COMMENT |
| MEDIUM | e2e/integration_tests/convert_predict.py | 495 | # Create the directory to store model and data. | COMMENT |
| MEDIUM | e2e/integration_tests/metadata.py | 16 | # This file is 1/2 of the test suites for CUJ: convert->predict. | COMMENT |
| MEDIUM | e2e/integration_tests/metadata.py | 97 | # Create the directory to store model and data. | COMMENT |
| MEDIUM | e2e/integration_tests/create_save_predict.py | 8 | # This file is 2/3 of the test suites for CUJ: create->save->predict. | COMMENT |
| MEDIUM | tfjs-converter/python/build-pip-package.sh | 247 | # Create a virtualenv and install twine in it for uploading. | COMMENT |
| MEDIUM | tfjs-converter/python/test_pip_package.py | 91 | # Create a builder. | COMMENT |
| MEDIUM | tfjs-converter/python/test_pip_package.py | 136 | # Create a builder | COMMENT |
| MEDIUM | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 68 | # Create a builder. | COMMENT |
| MEDIUM | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 106 | # Create a builder. | COMMENT |
| MEDIUM | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 384 | # Create a builder | COMMENT |
| MEDIUM | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 893 | # Define the strip graph functions when TransformGraph is available, this will | COMMENT |
| MEDIUM | …erter/python/tensorflowjs/converters/converter_test.py | 700 | # Create a fie at the path to elicit the error. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-backend-wasm/tools/cpplint.py | 583 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 1188 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 1288 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 1519 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 1641 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 2780 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3046 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3117 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3171 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3299 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3658 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3736 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4002 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4129 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4279 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4526 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4600 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 5013 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 5152 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 5498 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 5946 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 6145 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 808 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 1452 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 2525 | CODE | |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 2582 | CODE | |
| LOW | tfjs-converter/python/setup.py | 28 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/quantization.py | 33 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/read_weights.py | 126 | CODE | |
| LOW | …r/python/tensorflowjs/converters/graph_rewrite_util.py | 81 | CODE | |
| LOW | …r/python/tensorflowjs/converters/graph_rewrite_util.py | 108 | CODE | |
| LOW | …-converter/python/tensorflowjs/converters/converter.py | 534 | CODE | |
| LOW | …-converter/python/tensorflowjs/converters/converter.py | 588 | CODE | |
| LOW | …-converter/python/tensorflowjs/converters/converter.py | 609 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/converters/wizard.py | 91 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/converters/wizard.py | 214 | CODE | |
| LOW | tfjs-converter/python/tensorflowjs/converters/wizard.py | 294 | CODE | |
| LOW | …/python/tensorflowjs/converters/keras_h5_conversion.py | 183 | CODE | |
| LOW | …/python/tensorflowjs/converters/keras_h5_conversion.py | 294 | CODE | |
| LOW | …thon/tensorflowjs/converters/keras_tfjs_loader_test.py | 308 | CODE | |
| LOW | …ter/python/tensorflowjs/converters/fold_batch_norms.py | 50 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 370 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 412 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 492 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 882 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 896 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-core/src/ops/slice_util.ts | 442 | // Step 1: Account for ellipsis and new axis. | COMMENT |
| LOW | tfjs-core/src/ops/slice_util.ts | 473 | // Step 2: Make a sparse spec into a full index spec. | COMMENT |
| LOW | tfjs-core/src/ops/slice_util.ts | 492 | // Step 3: Make implicit ranges (non-zero beginMasks and endMasks) explicit | COMMENT |
| LOW | tfjs-core/src/ops/slice_util.ts | 601 | // Step 4: Compute the final shape | COMMENT |
| LOW⚡ | tfjs-backend-webgpu/src/kernels/TopK.ts | 118 | // Step 1: local sort | COMMENT |
| LOW⚡ | tfjs-backend-webgpu/src/kernels/TopK.ts | 126 | // Step 2: merge | COMMENT |
| LOW | tfjs-backend-webgpu/src/kernels/TopK.ts | 141 | // Step 3: rebuild | COMMENT |
| LOW⚡ | tfjs-backend-webgl/src/kernels/TopK.ts | 135 | // Step 1: local sort | COMMENT |
| LOW⚡ | tfjs-backend-webgl/src/kernels/TopK.ts | 143 | // Step 2: merge | COMMENT |
| LOW | tfjs-backend-webgl/src/kernels/TopK.ts | 154 | // Step 3: rebuild | COMMENT |
| LOW | tfjs-react-native/README.md | 29 | ### Step 2: Install dependencies | COMMENT |
| LOW | tfjs-react-native/README.md | 47 | ### Step 3: Configure [Metro](https://facebook.github.io/metro/) | COMMENT |
| LOW | tfjs-react-native/README.md | 68 | ### Step 4: Test that it is working | COMMENT |
| LOW | tfjs-converter/README.md | 20 | ## Step 1: Converting a [TensorFlow SavedModel](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/s | COMMENT |
| LOW | tfjs-converter/README.md | 340 | ## Step 2: Loading and running in the browser | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tfjs-node/python/int64_model.py | 0 | test a basic model with functions to make sure functions are inlined. | STRING |
| HIGH | tfjs-node/python/unint8_model.py | 0 | test a basic model with functions to make sure functions are inlined. | STRING |
| HIGH | …onverter/python/tensorflowjs/converters/wizard_test.py | 0 | test a basic model with functions to make sure functions are inlined. | STRING |
| HIGH | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 0 | test a basic model with functions to make sure functions are inlined. | STRING |
| HIGH | …rter/python/tensorflowjs/converters/fuse_prelu_test.py | 0 | test a basic model with functions to make sure functions are inlined. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-core/src/ops/slice_util.ts | 442 | // Step 1: Account for ellipsis and new axis. | COMMENT |
| LOW | tfjs-core/src/ops/slice_util.ts | 473 | // Step 2: Make a sparse spec into a full index spec. | COMMENT |
| LOW | tfjs-core/src/ops/slice_util.ts | 492 | // Step 3: Make implicit ranges (non-zero beginMasks and endMasks) explicit | COMMENT |
| LOW | tfjs-core/src/ops/slice_util.ts | 601 | // Step 4: Compute the final shape | COMMENT |
| LOW⚡ | tfjs-backend-webgpu/src/kernels/TopK.ts | 118 | // Step 1: local sort | COMMENT |
| LOW⚡ | tfjs-backend-webgpu/src/kernels/TopK.ts | 126 | // Step 2: merge | COMMENT |
| LOW | tfjs-backend-webgpu/src/kernels/TopK.ts | 141 | // Step 3: rebuild | COMMENT |
| LOW⚡ | tfjs-backend-webgl/src/kernels/TopK.ts | 135 | // Step 1: local sort | COMMENT |
| LOW⚡ | tfjs-backend-webgl/src/kernels/TopK.ts | 143 | // Step 2: merge | COMMENT |
| LOW | tfjs-backend-webgl/src/kernels/TopK.ts | 154 | // Step 3: rebuild | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-core/src/io/io_utils_test.ts | 623 | const str = '_Lorem ipsum 1337!'; | CODE |
| LOW | tfjs/tools/custom_module/model_parser_test.ts | 169 | {name: 'placeholder', type: tensorflow.DataType.DT_INT32}, | CODE |
| LOW | tfjs/tools/custom_module/model_parser_test.ts | 180 | input: ['placeholder', 'less_y'], | CODE |
| LOW | tfjs/tools/custom_module/model_parser_test.ts | 194 | {name: 'placeholder', type: tensorflow.DataType.DT_INT32}, | CODE |
| LOW | tfjs/tools/custom_module/model_parser_test.ts | 224 | input: ['placeholder', 'y_0'], | CODE |
| LOW | tfjs-data/src/iterators/string_iterator_test.ts | 22 | const lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | CODE |
| LOW | tfjs-data/src/iterators/string_iterator_test.ts | 22 | const lorem = `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do | CODE |
| LOW | tfjs-converter/tools/compiled_api.js | 329 | get: $util.oneOfGetter($oneOfFields = ["list", "s", "i", "f", "b", "type", "shape", "tensor", "placeholder", | CODE |
| LOW | tfjs-converter/tools/compiled_api.d.ts | 346 | 'placeholder'|'func'); | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 175 | {name: 'placeholder', type: tensorflow.DataType.DT_INT32}, | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 186 | input: ['placeholder', 'less_y'], | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 199 | {name: 'placeholder', type: tensorflow.DataType.DT_INT32}, | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 229 | input: ['placeholder', 'y_0'], | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 349 | 'while_loop_counter', 'while_maximum_iterations', 'placeholder', | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 372 | 'placeholder', 'less_y', 'while_cond_10___redundant_placeholder0' | CODE |
| LOW | tfjs-converter/src/operations/operation_mapper_test.ts | 390 | {name: 'placeholder', dtype: tensorflow.DataType.DT_INT32}, | CODE |
| LOW | …verter/src/operations/executors/graph_executor_test.ts | 55 | describe('placeholder', () => { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/tfjs-release-branch-publish-test.yml | 41 | RELEASE: 'true' # Set RELEASE to true as requested | CODE |
| LOW | …ub/workflows/tfjs-nightly-release-and-publish-test.yml | 39 | RELEASE: 'true' # Set RELEASE to true as in the original config | CODE |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 2506 | # Check if token is an unmatched '<'. | COMMENT |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 3129 | # Check if the // may be in quotes. If so, ignore it | STRING |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4085 | # Check if the body is empty | STRING |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4376 | # Check if the line is a header guard. | STRING |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4735 | # Check if people are using the verboten C basic types. The only exception | STRING |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4747 | # Check if some verboten operator overloading is going on | STRING |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 4923 | # Check if some verboten C functions are being used. | STRING |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 5678 | # Set end_col to check whole lines after we are done with the | STRING |
| LOW | e2e/scripts/local-registry.sh | 33 | # Set registry to local registry | COMMENT |
| LOW | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 861 | # Check if AddV2 is fused to Conv2D and Depthwise ops. | COMMENT |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 81 | # Set name to empty to avoid using the default name 'import'. | COMMENT |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 400 | # Check if any TFDF ops are used in the model. | COMMENT |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 794 | # Check if structure is a simple dictionary. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tfjs-core/src/tensor.ts | 473 | print(verbose = false): void { | CODE |
| HIGH | tfjs-core/src/globals.ts | 353 | * @return False if there is already a registered backend under this name, true | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …on/tensorflowjs/converters/keras_h5_conversion_test.py | 503 | '{"class_name": "Sequential", "keras_version": "2.2.4-tf", "config": {"layers": [{"class_name": "Dense", "config | CODE |
| HIGH | …on/tensorflowjs/converters/keras_h5_conversion_test.py | 529 | '{"class_name": "Sequential", "keras_version": "2.2.4-tf", "config": {"layers": [{"class_name": "UnifiedGRU", "c | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …-backend-webgpu/src/matmul_small_output_size_webgpu.ts | 33 | // and handle some elements per thread to optimally utilize the ALU. | COMMENT |
| LOW | tfjs-backend-wasm/tools/cpplint.py | 2572 | # Here we can just use a shallow copy since we are the last | COMMENT |
| MEDIUM | tfjs-react-native/src/camera/camera.ts | 60 | // platform check to be more robust on android devices we may not have | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 193 | CODE | |
| LOW | …flowjs/converters/tf_saved_model_conversion_v2_test.py | 210 | CODE | |
| LOW | …-converter/python/tensorflowjs/converters/converter.py | 188 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 699 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 940 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 1122 | CODE | |
| LOW | …ensorflowjs/converters/tf_saved_model_conversion_v2.py | 1186 | CODE | |
| LOW | …hon/tensorflowjs/converters/normalize_bias_add_test.py | 47 | CODE | |
| LOW | …hon/tensorflowjs/converters/normalize_bias_add_test.py | 74 | CODE | |
| LOW | …hon/tensorflowjs/converters/normalize_bias_add_test.py | 100 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | .github/workflows/tfjs-release-branch-publish-test.yml | 41 | RELEASE: 'true' # Set RELEASE to true as requested | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …erter/python/tensorflowjs/converters/jax_conversion.py | 125 | # names, you can use `tree.map_structure_with_path` from the `dm-tree` | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-backend-webgpu/src/backend_webgpu.ts | 330 | // TODO: Add test case to catch this exception. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tfjs-converter/python/build-pip-package.sh | 22 | # Usage: | COMMENT |