This report summarizes scanner evidence for tensorflow/tensorflow. SynthScan examined 2,525,578 lines of code across 11944 source files, recording 28379 pattern matches distributed across 26 syntactic categories. The legacy adjusted pattern signal is 18.0 (Elevated 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.
Can maintainers explain intent, assumptions, and trade-offs? 22040 finding(s).
Are imports declared and package/API names verified? 1721 finding(s).
Are wrappers, guards, and repeated structures necessary? 11849 finding(s).
Which changes need focused human review? 28379 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 28379 distinct pattern matches across 26 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 |
|---|---|---|---|---|
| MEDIUM | bazel_downloader.cfg | 14 | # ============================================================================== | COMMENT |
| MEDIUM | configure.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 56 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 58 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 96 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 98 | # ---------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 166 | # ========================================================================== | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 168 | # ========================================================================== | COMMENT |
| MEDIUM | tools/tf_env_collect.sh | 249 | # ========================================================================== | STRING |
| MEDIUM | tools/tf_env_collect.sh | 251 | # ========================================================================== | STRING |
| MEDIUM | tools/tf_env_collect.sh | 318 | # ========================================================================== | STRING |
| MEDIUM | tools/tf_env_collect.sh | 320 | # ========================================================================== | STRING |
| MEDIUM | tools/tf_env_collect.sh | 431 | # ---------------------------------------------------------------------------- | STRING |
| MEDIUM | tools/tf_env_collect.sh | 433 | # ---------------------------------------------------------------------------- | STRING |
| MEDIUM | ci/official/code_check_full.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/pycpp.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/any.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/wheel.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/upload.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/debug_tfci.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/bisect.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/code_check_changed_files.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/cleanup_docker.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/setup.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/setup_docker.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/generate_index_html.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/windows.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/cleanup_summary.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …/official/utilities/convert_msys_paths_to_win_paths.py | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/rename_and_verify_wheels.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/collect_additional_wheel.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/extract_resultstore_links.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/utilities/setup_macos.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/containers/ml_build/setup.sources.cudnn.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/containers/ml_build/setup.sources.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/containers/ml_build/setup.python.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | ci/official/containers/ml_build/setup.packages.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | …/official/containers/ml_build/setup.toolchain.cmake.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | …ial/containers/ml_build/builder.devtoolset/fixlinks.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …ainers/ml_build/builder.devtoolset/build_devtoolset.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …al/containers/ml_build/builder.devtoolset/rpm-patch.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | third_party/xla/bazel_downloader.cfg | 14 | # ============================================================================== | COMMENT |
| MEDIUM | third_party/xla/.pre-commit-config.yaml | 14 | # ============================================================================ | COMMENT |
| MEDIUM | …rty/xla/xla/pjrt/distributed/testdata/mtls/generate.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python_api/types_.py | 14 | # ====================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python_api/xla_literal.py | 14 | # ====================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python_api/xla_literal_test.py | 14 | # ====================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python_api/xla_shape.py | 14 | # ====================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python_api/xla_shape_test.py | 14 | # ====================================== | COMMENT |
| MEDIUM | …ols/buffer_debug_log/check_thunk_output_consistency.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …xla/tools/buffer_debug_log/checksum_mismatch_report.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ools/buffer_debug_log/checksum_mismatch_report_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …_party/xla/xla/tools/benchmarks/json_to_tensorboard.py | 14 | # ============================================================================ | COMMENT |
| MEDIUM | …y/xla/xla/tools/benchmarks/test_json_to_tensorboard.py | 14 | # ============================================================================ | COMMENT |
| MEDIUM | …/xla/tools/benchmarks/hlo_workload_executor/action.yml | 14 | # ============================================================================ | COMMENT |
| MEDIUM | …a/tools/multihost_hlo_runner/python_hlo_runner_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python/xla_transform_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python/xla_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | third_party/xla/xla/python/xla_compiler_test.py | 14 | # ============================================================================== | COMMENT |
| 3785 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bazel_downloader.cfg | 1 | # Copyright 2026 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | configure.py | 1 | # Copyright 2017 The TensorFlow Authors. All Rights Reserved. | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 541 | # ml-dtypes | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 561 | # -r ci/official/requirements_updater/nvidia-constraints.txt | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 601 | # via | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 641 | # via | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 681 | # via | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 721 | --hash=sha256:ecd0a012051abc20c1aa87328841efa8cade3ced65803046e38c2f03c0891fea | COMMENT |
| LOW | requirements_lock_3_14_freethreaded.txt | 741 | # -r ci/official/requirements_updater/nvidia-requirements.txt | COMMENT |
| LOW | requirements_lock_3_14.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_14.txt | 541 | # ml-dtypes | COMMENT |
| LOW | requirements_lock_3_14.txt | 561 | # -r ci/official/requirements_updater/nvidia-constraints.txt | COMMENT |
| LOW | requirements_lock_3_14.txt | 601 | # via | COMMENT |
| LOW | requirements_lock_3_14.txt | 641 | # via | COMMENT |
| LOW | requirements_lock_3_14.txt | 681 | # via | COMMENT |
| LOW | requirements_lock_3_14.txt | 721 | --hash=sha256:8ce1b8213f61f2bfac132e6df890af6450b77cbd140c6ce4e98cb0c2d8e678c9 | COMMENT |
| LOW | requirements_lock_3_14.txt | 741 | # nvidia-cufft | COMMENT |
| LOW | requirements_lock_3_13.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_13.txt | 441 | --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \ | COMMENT |
| LOW | requirements_lock_3_13.txt | 601 | # -r ci/official/requirements_updater/nvidia-constraints.txt | COMMENT |
| LOW | requirements_lock_3_13.txt | 621 | --hash=sha256:ca786ffa5a647c75d4d1f5cc72a6c4f537947e2ba8823d7c8aaf768e7a7b9f77 \ | COMMENT |
| LOW | requirements_lock_3_13.txt | 641 | --hash=sha256:f9b37bc5c8cf7509665cb6ada5aaa0ce65618f2332b7d3e78e9790511f111212 | COMMENT |
| LOW | requirements_lock_3_12.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_12.txt | 441 | --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \ | COMMENT |
| LOW | requirements_lock_3_12.txt | 601 | # -r ci/official/requirements_updater/nvidia-constraints.txt | COMMENT |
| LOW | requirements_lock_3_12.txt | 621 | --hash=sha256:ca786ffa5a647c75d4d1f5cc72a6c4f537947e2ba8823d7c8aaf768e7a7b9f77 \ | COMMENT |
| LOW | requirements_lock_3_12.txt | 641 | --hash=sha256:f9b37bc5c8cf7509665cb6ada5aaa0ce65618f2332b7d3e78e9790511f111212 | COMMENT |
| LOW | requirements_lock_3_12.txt | 1081 | --hash=sha256:29b23c360f22f414dc7336bb39178cc7bcbf6021ed2733cde173f09dba19abb3 | COMMENT |
| LOW | requirements_lock_3_10.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_10.txt | 441 | --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \ | COMMENT |
| LOW | requirements_lock_3_10.txt | 601 | # -r ci/official/requirements_updater/nvidia-constraints.txt | COMMENT |
| LOW | requirements_lock_3_10.txt | 621 | --hash=sha256:ca786ffa5a647c75d4d1f5cc72a6c4f537947e2ba8823d7c8aaf768e7a7b9f77 \ | COMMENT |
| LOW | requirements_lock_3_10.txt | 641 | --hash=sha256:f9b37bc5c8cf7509665cb6ada5aaa0ce65618f2332b7d3e78e9790511f111212 | COMMENT |
| LOW | requirements_lock_3_11.txt | 1 | # | COMMENT |
| LOW | requirements_lock_3_11.txt | 441 | --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \ | COMMENT |
| LOW | requirements_lock_3_11.txt | 601 | # -r ci/official/requirements_updater/nvidia-constraints.txt | COMMENT |
| LOW | requirements_lock_3_11.txt | 621 | --hash=sha256:ca786ffa5a647c75d4d1f5cc72a6c4f537947e2ba8823d7c8aaf768e7a7b9f77 \ | COMMENT |
| LOW | requirements_lock_3_11.txt | 641 | --hash=sha256:f9b37bc5c8cf7509665cb6ada5aaa0ce65618f2332b7d3e78e9790511f111212 | COMMENT |
| LOW | requirements_lock_3_11.txt | 1081 | --hash=sha256:29b23c360f22f414dc7336bb39178cc7bcbf6021ed2733cde173f09dba19abb3 | COMMENT |
| LOW | tools/tf_env_collect.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | ci/official/code_check_full.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/pycpp.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/any.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/any.sh | 21 | # export TF_ANY_TARGETS="quoted list of targets, like on the command line" | COMMENT |
| LOW | ci/official/wheel.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/README.md | 41 | COMMENT | |
| LOW | ci/official/README.md | 61 | # "public_cache,disk_cache". | COMMENT |
| LOW | ci/official/README.md | 81 | # Ex. rbe -- Use RBE for faster builds (Googlers only; see below) | COMMENT |
| LOW | ci/official/README.md | 101 | COMMENT | |
| LOW | ci/official/README.md | 121 | # to transfer ownership to your user. | COMMENT |
| LOW | ci/official/upload.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/debug_tfci.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/bisect.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/bisect.sh | 21 | # TF_BISECT_BAD: First bad commit (e.g. commit from the first failing job) | COMMENT |
| LOW | ci/official/code_check_changed_files.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/utilities/cleanup_docker.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/utilities/setup.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/official/utilities/setup.sh | 21 | # specifically. Use your best judgment to keep the scripts in this directory | COMMENT |
| LOW | ci/official/utilities/setup.sh | 41 | # "TFCI" may optionally be set to the name of an env-type file with TFCI | COMMENT |
| 10417 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | configure.py | 279 | Get boolean input from user. If var_name is not set in env, ask user to enable query_item or not. If the response i | STRING |
| HIGH | configure.py | 550 | Loop over user prompts for an ENV param until receiving a valid response. For the env param var_name, read from the e | STRING |
| HIGH | …rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py | 219 | Passes `input_stream` through an optimizer; output is another stream. Args: input_stream: An iterator over the li | STRING |
| HIGH | …rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py | 301 | Returns the next item in the sub-stream corresponding to `target_buffer`. Args: target_buffer: The queue back | STRING |
| HIGH | third_party/xla/build_tools/configure/configure.py | 62 | Finds executable and resolves symlinks or raises RuntimeError. Resolving symlinks is sometimes necessary for finding | STRING |
| HIGH | third_party/xla/build_tools/ci/clang_tidy_diff.py | 308 | Parses a Bazel BEP JSON file and returns a list of paths to .clang-tidy.yaml files. Args: bep_path: Path to the B | STRING |
| HIGH | third_party/xla/build_tools/ci/change_detector.py | 83 | Validates that ref is a safe Git revision string and cannot inject flags. Args: ref: Git commit SHA or ref name t | STRING |
| HIGH | third_party/xla/.github/workflows/github_api.py | 39 | Helper method to make a request and raise an HTTPError if one occurred. Arguments: verb: The HTTP verb to use | STRING |
| HIGH | tensorflow/dtensor/python/dtensor_device.py | 122 | Packs tensors into a DTensor handle on this DTensor device. Packing and unpacking are inverse operations: ``` | STRING |
| HIGH | tensorflow/dtensor/python/dtensor_device.py | 169 | Unpacks a DTensor handle on this DTensor device. Packing and unpacking are inverse operations: ``` * unpac | STRING |
| HIGH | tensorflow/dtensor/python/dtensor_device.py | 215 | Fetches the layout of the DTensor. Args: dtensor: The DTensor whose layout is to be fetched. Returns: | STRING |
| HIGH | tensorflow/dtensor/python/dtensor_device.py | 243 | Check whether the input tensor is a DTensor. In Python, a DTensor has the same type as a `tf.Tensor`. This method w | STRING |
| HIGH | tensorflow/dtensor/python/api.py | 193 | Packs `tf.Tensor` components into a DTensor. Packing and unpacking are inverse operations: ``` * unpack(pack(ten | STRING |
| HIGH | tensorflow/dtensor/python/api.py | 344 | Unpacks a DTensor into `tf.Tensor` components. Packing and unpacking are inverse operations: ``` * unpack(pack(t | STRING |
| HIGH | tensorflow/dtensor/python/api.py | 381 | Fetches the layout of a DTensor. Args: tensor: The DTensor whose layout is to be fetched. Returns: The `La | STRING |
| HIGH | tensorflow/dtensor/python/tpu_util.py | 381 | Enumerates all possible core locations under the axis iteration order. Args: bounds: A list of 4 positive integer | STRING |
| HIGH | tensorflow/tools/test/run_and_gather_logs_lib.py | 99 | Run the bazel test given by test_name. Gather and return the logs. Args: name: Benchmark target identifier. | STRING |
| HIGH | …ls/tensorflow_builder/compat_checker/compat_checker.py | 30 | Compare two versions and return information on which is smaller vs. larger. Args: v1: String that is a version to | STRING |
| HIGH | …orflow/tools/api/lib/python_object_to_proto_visitor.py | 265 | Get an ArgSpec string from a pybind11-style docstring. For example: `foo_function(a: int, *args, **kwargs) -> None` | STRING |
| HIGH | tensorflow/tools/git/gen_git_source.py | 35 | Given a filename of a .git/HEAD file return ref path. In particular, if git is in detached head state, this will re | STRING |
| HIGH | tensorflow/core/function/capture/capture_container.py | 91 | Captures `tensor` if it's external to this graph. If `tensor` is from a different graph, returns a placeholder for | STRING |
| HIGH | tensorflow/core/function/capture/restore_captures.py | 35 | Resolves a saved model graph node into a tensor to be captured. Args: node: a tensor, variable, or resource to be | STRING |
| HIGH | tensorflow/python/autograph/impl/api.py | 709 | Converts a Python entity into a TensorFlow graph. Also see: `tf.autograph.to_code`, `tf.function`. Unlike `tf.func | STRING |
| HIGH | tensorflow/python/autograph/impl/api.py | 785 | Converts a Python entity into a TensorFlow graph. Also see: `tf.autograph.to_code`, `tf.function`. Unlike `tf.func | STRING |
| HIGH | …nsorflow/python/autograph/operators/data_structures.py | 168 | The list append function. Note: it is unspecified where list_ will be mutated or not. If list_ is a TensorFlow enti | STRING |
| HIGH | …nsorflow/python/autograph/operators/data_structures.py | 232 | The list pop function. Note: it is unspecified where list_ will be mutated or not. If list_ is a TensorFlow entity, | STRING |
| HIGH | tensorflow/python/autograph/operators/exceptions.py | 23 | Functional form of an assert statement. This follows the semantics of the Python assert statement, however the conc | STRING |
| HIGH | tensorflow/python/autograph/operators/slices.py | 35 | The slice read operator (i.e. __getitem__). Note: it is unspecified whether target will be mutated or not. In general | STRING |
| HIGH | tensorflow/python/autograph/operators/slices.py | 97 | The slice write operator (i.e. __setitem__). Note: it is unspecified whether target will be mutated or not. In genera | STRING |
| HIGH | tensorflow/python/autograph/converters/directives.py | 52 | Maps AST call nodes to the actual function's arguments. Args: call_node: ast.Call function: Callable[..., Any | STRING |
| HIGH | tensorflow/python/autograph/utils/misc.py | 25 | Wraps any Tensor arguments with an identity op. Any other argument, including Variables, is returned unchanged. Ar | STRING |
| HIGH | tensorflow/python/autograph/utils/type_registry.py | 46 | Looks up 'obj'. Args: obj: The object to lookup within the registry. Returns: Value for 'obj' in t | STRING |
| HIGH | tensorflow/python/autograph/lang/special_functions.py | 57 | Creates a tensor list and populates it with the given elements. This function provides a more uniform access to tenso | STRING |
| HIGH | tensorflow/python/autograph/lang/special_functions.py | 90 | Stacks the input, if it admits the notion of stacking. For example, a list of tensors can be stacked into a larger te | STRING |
| HIGH | tensorflow/python/autograph/pyct/inspect_utils.py | 233 | Resolves a function's owner, e.g. a method's class. Note that this returns the object that the function was retrie | STRING |
| HIGH | tensorflow/python/autograph/pyct/ast_util.py | 280 | Walks two ASTs in parallel. The two trees must have identical structure. Args: node: Union[ast.AST, Iterable[a | STRING |
| HIGH | tensorflow/python/autograph/pyct/parser.py | 343 | Returns the AST of given identifier. Args: src: A piece of code that represents a single Python expression Retu | STRING |
| HIGH | tensorflow/python/autograph/pyct/transpiler.py | 337 | Transforms a Python object. Users typically call this method. Args: obj: A Python object, function, type | STRING |
| HIGH | tensorflow/python/autograph/pyct/templates.py | 231 | Replaces placeholders in a Python template. AST Name and Tuple nodes always receive the context that inferred from | STRING |
| HIGH | tensorflow/python/keras/metrics.py | 3614 | Retrieves a Keras metric as a `function`/`Metric` class instance. The `identifier` may be the string name of a metric | STRING |
| HIGH | tensorflow/python/keras/backend.py | 472 | Provides a scope within which the learning phase is equal to `value`. The learning phase gets restored to its origina | STRING |
| HIGH | tensorflow/python/keras/backend.py | 499 | An internal-only version of `learning_phase_scope`. Unlike the public method, this method does not raise a deprecatio | STRING |
| HIGH | tensorflow/python/keras/backend.py | 553 | Internal scope that sets the learning phase in eager / tf.function only. Args: value: Learning phase value, eit | STRING |
| HIGH | tensorflow/python/keras/backend.py | 617 | Returns the appropriate graph to use for the given inputs. This library method provides a consistent algorithm for ch | STRING |
| HIGH | tensorflow/python/keras/backend.py | 855 | Check if the current device is explicitly set on the device type specified. Args: device_type: A string contain | STRING |
| HIGH | tensorflow/python/keras/backend.py | 969 | Converts a sparse tensor into a dense tensor and returns it. Args: tensor: A tensor instance (potentially spars | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1024 | Instantiates a variable and returns it. Args: value: Numpy array, initial value of the tensor. dtype: Ten | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1205 | Returns whether `x` is a Keras tensor. A "Keras tensor" is a tensor that was returned by a Keras layer, (`Layer` cl | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1264 | Instantiates a placeholder tensor and returns it. Args: shape: Shape of the placeholder (integer tupl | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1376 | Returns the symbolic shape of a tensor or variable. Args: x: A tensor or variable. Returns: A symbolic | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1400 | Returns the shape of tensor or variable as a tuple of int or None entries. Args: x: Tensor or variable. Retu | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1430 | Returns the number of axes in a tensor, as an integer. Args: x: Tensor or variable. Returns: Integer ( | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1456 | Returns the dtype of a Keras tensor or variable, as a string. Args: x: Tensor or variable. Returns: St | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1501 | Evaluates the value of a variable. Args: x: A variable. Returns: A Numpy array. Examples: >>> kv | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1790 | Casts a tensor to a different dtype and returns it. You can cast a Keras variable but it still returns a Keras tensor | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1905 | Multiplies 2 tensors (and/or variables) and returns a tensor. This operation corresponds to `numpy.dot(a, b, out=None | STRING |
| HIGH | tensorflow/python/keras/backend.py | 1971 | Batchwise dot product. `batch_dot` is used to compute dot product of `x` and `y` when `x` and `y` are data in batch | STRING |
| HIGH | tensorflow/python/keras/backend.py | 2160 | Transposes a tensor and returns it. Args: x: Tensor or variable. Returns: A tensor. Examples: >> | STRING |
| HIGH | tensorflow/python/keras/backend.py | 2192 | Retrieves the elements of indices `indices` in the tensor `reference`. Args: reference: A tensor. indices | STRING |
| HIGH | tensorflow/python/keras/backend.py | 2721 | Element-wise maximum of two tensors. Args: x: Tensor or variable. y: Tensor or variable. Returns: | STRING |
| 1565 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 118 | def write_action_env_to_bazelrc(var_name, var): | CODE |
| LOW | configure.py | 122 | def write_repo_env_to_bazelrc(config_name, var_name, var): | CODE |
| LOW | configure.py | 253 | def reset_tf_configure_bazelrc(): | CODE |
| LOW | configure.py | 514 | def get_from_env_or_user_or_default(environ_cp, var_name, ask_for_var, | CODE |
| LOW | configure.py | 541 | def prompt_loop_or_load_from_env(environ_cp, | CODE |
| LOW | configure.py | 607 | def set_clang_cuda_compiler_path(environ_cp): | CODE |
| LOW | configure.py | 776 | def set_gcc_host_compiler_path(environ_cp): | CODE |
| LOW | configure.py | 862 | def set_clang_compiler_path_win(environ_cp): | CODE |
| LOW | configure.py | 946 | def disable_clang_offsetof_extension(clang_version): | CODE |
| LOW | configure.py | 957 | def set_hermetic_cuda_version(environ_cp): | CODE |
| LOW | configure.py | 973 | def set_hermetic_cudnn_version(environ_cp): | CODE |
| LOW | configure.py | 989 | def set_hermetic_cuda_compute_capabilities(environ_cp): | CODE |
| LOW | configure.py | 1092 | def system_specific_test_config(environ_cp): | CODE |
| LOW | …ols/buffer_debug_log/check_thunk_output_consistency.py | 33 | def parse_binary_or_text_proto(data: bytes, proto_type): | CODE |
| LOW | …xla/tools/buffer_debug_log/checksum_mismatch_report.py | 182 | def _find_inconsistent_output_checksums( | CODE |
| LOW | …xla/tools/buffer_debug_log/checksum_mismatch_report.py | 210 | def _find_inconsistent_thunks( | CODE |
| LOW | …ools/buffer_debug_log/checksum_mismatch_report_test.py | 25 | def test_from_protos_loads_metadata(self): | CODE |
| LOW | …ools/buffer_debug_log/checksum_mismatch_report_test.py | 71 | def test_from_protos_finds_mismatches_in_single_proto(self): | STRING |
| LOW | …ools/buffer_debug_log/checksum_mismatch_report_test.py | 129 | def test_from_protos_finds_mismatches_in_multiple_protos(self): | STRING |
| LOW | …ools/buffer_debug_log/checksum_mismatch_report_test.py | 180 | def test_from_protos_does_not_include_consistent_executions(self): | STRING |
| LOW | …a/tools/multihost_hlo_runner/python_hlo_runner_test.py | 28 | def _register_transformer_engine_custom_calls(): | CODE |
| LOW | third_party/xla/xla/python/xla_transform_test.py | 23 | def test_register_hlo_xla_transform(self): | CODE |
| LOW | third_party/xla/xla/python/xla_transform_test.py | 34 | def test_core_assignment_unimplemented_on_cpu(self): | CODE |
| LOW | third_party/xla/xla/python/xla_client.py | 131 | def current_source_info_metadata(op_type=None, op_name=None, skip_frames=1): | CODE |
| LOW | third_party/xla/xla/python/xla_client.py | 166 | def window_padding_type_to_pad_values( | CODE |
| LOW | third_party/xla/xla/python/xla_client.py | 265 | def make_dot_dimension_numbers( | CODE |
| LOW | third_party/xla/xla/python/xla_client.py | 321 | def make_convolution_dimension_numbers( | CODE |
| LOW | third_party/xla/xla/python/xla_client.py | 437 | def _make_replica_group_proto(replica_group): | CODE |
| LOW | third_party/xla/xla/python/xla_client.py | 454 | def get_backend_config_string(instruction_proto, module_proto=None) -> str: | CODE |
| LOW | third_party/xla/xla/python/profile_data_test.py | 22 | def test_find_plane_with_name(self): | CODE |
| LOW | third_party/xla/xla/python/profile_data_test.py | 160 | def test_visit_event_missing_metadata(self): | STRING |
| LOW | third_party/xla/xla/python/profile_data_test.py | 196 | def test_create_profile_data_from_file(self): | STRING |
| LOW | …ird_party/xla/xla/python/profiler/profile_data_test.py | 23 | def test_find_plane_with_name(self): | CODE |
| LOW | …ird_party/xla/xla/python/profiler/profile_data_test.py | 161 | def test_visit_event_missing_metadata(self): | STRING |
| LOW | …ird_party/xla/xla/python/profiler/profile_data_test.py | 197 | def test_create_profile_data_from_file(self): | STRING |
| LOW | …arty/xla/xla/tsl/lib/io/zip_writer_integration_test.py | 27 | def test_generated_zip_validity(self): | CODE |
| LOW | …rty/xla/xla/backends/gpu/codegen/tools/ncu_rep_test.py | 23 | def test_get_metrics_by_kernel(self): | CODE |
| LOW | …rty/xla/xla/backends/gpu/codegen/tools/ncu_rep_test.py | 47 | def test_aggregate_kernel_metrics(self): | CODE |
| LOW | …rty/xla/xla/backends/gpu/codegen/tools/ncu_rep_test.py | 107 | def test_write_metrics_markdown(self): | CODE |
| LOW | …ackends/cpu/codegen/computation_kernel_emitter_test.py | 30 | def create_trivial_add_computation( | CODE |
| LOW | …la/backends/cpu/codegen/scatter_kernel_emitter_test.py | 28 | def create_sclar_add_computation( | CODE |
| LOW | …la/backends/cpu/codegen/scatter_kernel_emitter_test.py | 204 | def test_out_of_bounds_scatter(self): | CODE |
| LOW | …ty/xla/xla/backends/cpu/codegen/fusion_emitter_test.py | 206 | def test_constant_with_layout(self): | STRING |
| LOW | …la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py | 274 | def test_dot_fusion_single_tile(self): | STRING |
| LOW | …la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py | 412 | def test_reduction_outer_inner(self): | STRING |
| LOW | …la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py | 445 | def test_reduction_unsigned_add(self): | STRING |
| LOW | …la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py | 477 | def test_broadcast_in_dim_inner(self): | STRING |
| LOW | …la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py | 502 | def test_broadcast_in_dim_outer(self): | STRING |
| LOW | …la/backends/cpu/codegen/dot/dot_kernel_emitter_test.py | 131 | def test_matrix_multiplication(self, emitter_type, shapes, dtype): | CODE |
| LOW | …ackends/cpu/benchmarks/e2e/gemma2/flax_2b/benchmark.py | 52 | def benchmark_generation_time(output_token_len): | CODE |
| LOW | …ackends/cpu/benchmarks/e2e/gemma2/flax_2b/benchmark.py | 73 | def display_benchmark_results(timer_list, metric_name): | CODE |
| LOW | …ends/cpu/benchmarks/e2e/gemma2/pytorch_2b/benchmark.py | 60 | def benchmark_generation_time(output_token_len): | CODE |
| LOW | …ends/cpu/benchmarks/e2e/gemma2/pytorch_2b/benchmark.py | 85 | def display_benchmark_results(timer_list, metric_name): | CODE |
| LOW | …rty/xla/xla/backends/cpu/testlib/kernel_runner_test.py | 28 | def test_llvm_ir_kernel_runner(self): | CODE |
| LOW⚡ | third_party/xla/xla/mlir_hlo/tests/python/attributes.py | 39 | def test_comparison_direction_attr(): | CODE |
| LOW⚡ | third_party/xla/xla/mlir_hlo/tests/python/attributes.py | 47 | def test_comparison_type_attr(): | CODE |
| LOW⚡ | third_party/xla/xla/mlir_hlo/tests/python/attributes.py | 55 | def test_conv_dimension_numbers(): | CODE |
| LOW | third_party/xla/xla/mlir_hlo/tests/python/attributes.py | 81 | def test_dequantize_mode_attr(): | CODE |
| LOW | third_party/xla/xla/mlir_hlo/tests/python/attributes.py | 89 | def test_dot_dimension_numbers(): | CODE |
| LOW | third_party/xla/xla/mlir_hlo/tests/python/attributes.py | 124 | def test_gather_dimension_numbers(): | CODE |
| 6875 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ainers/ml_build/builder.devtoolset/build_devtoolset.sh | 159 | # Create the devtoolset libstdc++ linkerscript that links dynamically against | COMMENT |
| MEDIUM | …la/backends/cpu/benchmarks/e2e/gemma2/flax_2b/setup.sh | 26 | # Create a virtual environment | COMMENT |
| MEDIUM | …backends/cpu/benchmarks/e2e/gemma2/pytorch_2b/setup.sh | 27 | # Create a virtual environment | COMMENT |
| MEDIUM | …arks/dma_microbenchmarks/chip_to_chip_dma_benchmark.py | 35 | # Create a mesh with 2 devices, each on a different chip. | COMMENT |
| MEDIUM | …y/xla/tools/ci_build/gpu_build/parallel_gpu_execute.sh | 27 | # This function is used below in rlocation to check that a path is absolute | COMMENT |
| MEDIUM | third_party/xla/build_tools/ci/parallel_gpu_execute.sh | 27 | # This function is used below in rlocation to check that a path is absolute | COMMENT |
| MEDIUM | …ird_party/xla/build_tools/rocm/parallel_gpu_execute.sh | 36 | # This function is used below in rlocation to check that a path is absolute | COMMENT |
| MEDIUM | …y/xla/.github/workflows/benchmarks/prepare_artifact.sh | 26 | # Create the directory HERE, inside this script, right before using it. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/__init__.py | 17 | # This file is left empty intentionally. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tpu_util.py | 193 | # Create a one-time use mesh and layout just for merging core IDs. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tpu_util.py | 780 | # Create the mesh by manually specifying local_device_ids. | COMMENT |
| MEDIUM | …low/dtensor/python/tests/tpu_device_assignment_test.py | 525 | # Create a 4x8 mesh on a 4x4 DF slice, disallowing splitting hosts. | COMMENT |
| MEDIUM | …low/dtensor/python/tests/tpu_device_assignment_test.py | 567 | # Create a 4x8 mesh on a 4x4 DF slice with at most 2, 2, 1, 2 devices from | COMMENT |
| MEDIUM | …low/dtensor/python/tests/tpu_device_assignment_test.py | 610 | # Create a 4x8 mesh on a 4x4 DF slice, allowing splitting hosts. | COMMENT |
| MEDIUM | …low/dtensor/python/tests/tpu_device_assignment_test.py | 652 | # Create a 2x64 mesh on a 4x4x4 PF slice, allowing splitting hosts. | COMMENT |
| MEDIUM | …sorflow/dtensor/python/tests/multi_client_test_util.py | 143 | # The following function call never returns. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tests/rng_test.py | 50 | # Create a random local IDs to make tests more challenging. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tests/multi_client_test.py | 84 | # Initialize DTensor variables. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tests/collective_test.py | 252 | # Create a 2x4 batch-sharded d-tensor, with batch IDs in its first column | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tests/collective_test.py | 259 | # Create a 4x4 y-sharded d-tensor filled with ones. | COMMENT |
| MEDIUM | tensorflow/dtensor/python/tests/mnist_test.py | 134 | # Initialize DTensor variables. | COMMENT |
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 515 | # Create a mesh on the main test process. The tensor components returned | COMMENT |
| MEDIUM | tensorflow/tools/compatibility/ast_edits.py | 866 | """This class represents an analysis result and how it should be logged. | STRING |
| MEDIUM | tensorflow/tools/compatibility/ast_edits.py | 1143 | # Create a link to the new location of the target file | COMMENT |
| MEDIUM | tensorflow/tools/proto_splitter/split_graph_def.py | 237 | # Create a new GraphDef chunk if the current list of nodes is too large. | COMMENT |
| MEDIUM | tensorflow/tools/proto_splitter/python/saved_model.py | 44 | # Create a chunk for the GraphDef, and ensure the GraphDef is merged in | COMMENT |
| MEDIUM | …nsorflow/tools/ci_build/devtoolset/build_devtoolset.sh | 159 | # Create the devtoolset libstdc++ linkerscript that links dynamically against | COMMENT |
| MEDIUM | …ow/tools/ci_build/linux/mkl/install_openmpi_horovod.sh | 46 | # Create a wrapper for OpenMPI to allow running as root by default | COMMENT |
| MEDIUM | tensorflow/tools/ci_build/windows/bazel/cpu_win_test.sh | 186 | # Define the batch script content | COMMENT |
| MEDIUM | …rflow/tools/ci_build/gpu_build/parallel_gpu_execute.sh | 27 | # This function is used below in rlocation to check that a path is absolute | COMMENT |
| MEDIUM | tensorflow/tools/test/upload_test_benchmarks.py | 154 | # Create the Test Entity containing all the test information as a | COMMENT |
| MEDIUM | …ls/tensorflow_builder/compat_checker/compat_checker.py | 439 | # Create a _Reqs() instance for each rule and store it under | COMMENT |
| MEDIUM | …ild_dockerfiles/builder.devtoolset/build_devtoolset.sh | 159 | # Create the devtoolset libstdc++ linkerscript that links dynamically against | COMMENT |
| MEDIUM | …orflow/tools/api/lib/python_object_to_proto_visitor.py | 419 | # Create a module object. | COMMENT |
| MEDIUM | …/tools/graph_transforms/python/transform_graph_test.py | 51 | # Create an add that has two constants as inputs. | COMMENT |
| MEDIUM | …/tools/graph_transforms/python/transform_graph_test.py | 59 | # Create a relu that reads from the add. | COMMENT |
| MEDIUM | tensorflow/core/function/transform/transform.py | 222 | # Create a new FuncGraph from the modified FunctionDef. | COMMENT |
| MEDIUM | …core/tfrt/saved_model/tests/gen_hash_table_asset_v1.py | 59 | # Create the graph | COMMENT |
| MEDIUM | …core/tfrt/saved_model/tests/gen_sparse_tensor_input.py | 41 | # Create the graph | COMMENT |
| MEDIUM | tensorflow/core/tfrt/saved_model/tests/gen_pow.py | 40 | # Create the graph | COMMENT |
| MEDIUM | tensorflow/core/tfrt/saved_model/tests/gen_error_v1.py | 39 | # Create the graph | COMMENT |
| MEDIUM | …flow/core/tfrt/saved_model/tests/gen_saved_model_v1.py | 42 | # Create the graph | COMMENT |
| MEDIUM | …re/tfrt/saved_model/tests/gen_ref_type_tensor_input.py | 42 | # Create the graph | COMMENT |
| MEDIUM | …/core/tfrt/saved_model/tests/gen_resource_gather_v1.py | 40 | # Create the graph | COMMENT |
| MEDIUM | …w/core/tfrt/saved_model/tests/gen_dtype_coverage_v1.py | 39 | # Create the graph | COMMENT |
| MEDIUM | tensorflow/core/tfrt/saved_model/tests/gen_while_v1.py | 42 | # Create the graph | COMMENT |
| MEDIUM | tensorflow/core/tfrt/saved_model/tests/gen_if_v1.py | 44 | # Create the graph | COMMENT |
| MEDIUM | …untime_fallback/test/saved_model/gen_saved_model_v1.py | 42 | # Create the graph | COMMENT |
| MEDIUM | tensorflow/python/__init__.py | 18 | # This file is imported whenever TensorFlow is imported. | COMMENT |
| MEDIUM | tensorflow/python/autograph/operators/__init__.py | 15 | """This module implements operators that AutoGraph overloads. | STRING |
| MEDIUM | …rflow/python/autograph/converters/control_flow_test.py | 305 | # This class is ok to be in a tf.while's state. | COMMENT |
| MEDIUM | tensorflow/python/autograph/pyct/parser.py | 247 | # This method is more robust that just calling inspect.getsource(mod), as it | COMMENT |
| MEDIUM | tensorflow/python/autograph/pyct/origin_info_test.py | 57 | # Creating a source map with the source code as output will create | STRING |
| MEDIUM | tensorflow/python/keras/backend.py | 168 | # The below functions are kept accessible from backend for compatibility. | COMMENT |
| MEDIUM | tensorflow/python/keras/backend.py | 310 | # Create the learning phase placeholder in graph using the default factory. | COMMENT |
| MEDIUM | tensorflow/python/keras/models.py | 422 | # Create a test Sequential model. | STRING |
| MEDIUM | tensorflow/python/keras/models.py | 428 | # Create a copy of the test model (with freshly initialized weights). | STRING |
| MEDIUM | tensorflow/python/keras/layers/recurrent.py | 2545 | # Create a layer composed sequentially of the peephole LSTM cells. | STRING |
| MEDIUM | tensorflow/python/keras/utils/metrics_utils.py | 171 | # Creating a wrapper for merge_fn. merge_call invokes the given merge_fn | COMMENT |
| MEDIUM | …ython/keras/distribute/distribute_coordinator_utils.py | 364 | # This method is not thread-safe. | COMMENT |
| 488 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | RELEASE.md | 845 | * Remove the `tf.keras.dtensor.experimental.layout_map_scope()`. You can user the `tf.keras.dtensor.experimental.Layou | COMMENT |
| CRITICAL | RELEASE.md | 2987 | tf.distribute.experimental.rpc.Server.create("grpc", "127.0.0.1:1234") | CODE |
| CRITICAL | RELEASE.md | 2995 | tf.distribute.experimental.rpc.Client.create("grpc", address) a = | CODE |
| CRITICAL | …rty/xla/xla/backends/gpu/tests/gpu_pjrt_codegen_test.h | 114 | return "void @llvm.nvvm.barrier.cta.sync.aligned.all(i32 0)"; | CODE |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 520 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 529 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 539 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 549 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 585 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=2.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 594 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=2.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 603 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0)\n", | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 611 | "tf.compat.v1.keras.initializers.VarianceScaling(12.0, " | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 1764 | expected_text = ("tf.compat.v1.keras.initializers.VarianceScaling(" | STRING |
| CRITICAL⚡ | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 1770 | expected_text = ("tf.compat.v1.keras.initializers.VarianceScaling(" | STRING |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 560 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, " | STRING |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 572 | "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, " | STRING |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 1043 | "tf.compat.v1.keras.experimental.export_saved_model(model, " | STRING |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2.py | 808 | "tf.compat.v2.summary.experimental.write_raw_pb() which also accepts " | CODE |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2056 | tf.compat.v1.keras.initializers.VarianceScaling( | STRING |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2086 | tf.compat.v1.keras.initializers.VarianceScaling( | STRING |
| CRITICAL | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2166 | tf.compat.v1.keras.initializers.VarianceScaling( | STRING |
| CRITICAL | tensorflow/python/keras/mixed_precision/policy.py | 118 | casting behavior with `tf.compat.v1.keras.layers.enable_v2_dtype_behavior()`. | STRING |
| CRITICAL | tensorflow/python/keras/mixed_precision/policy.py | 497 | '"tf.compat.v1.keras.layers.enable_v2_dtype_behavior()"') | CODE |
| CRITICAL | …w/python/keras/mixed_precision/loss_scale_optimizer.py | 924 | >>> loss_scale = tf.compat.v1.mixed_precision.experimental.DynamicLossScale( | STRING |
| CRITICAL | tensorflow/python/keras/legacy_tf_layers/base.py | 65 | self.rnn = tf.compat.v1.nn.rnn_cell.MultiRNNCell( | STRING |
| CRITICAL | tensorflow/python/keras/legacy_tf_layers/base.py | 66 | [tf.compat.v1.nn.rnn_cell.LSTMCell(64) for _ in range(2)]) | STRING |
| CRITICAL⚡ | tensorflow/python/keras/engine/base_layer.py | 2906 | self.__class__._call_full_argspec.fget.cache.pop(self, None) | CODE |
| CRITICAL⚡ | tensorflow/python/keras/engine/base_layer.py | 2907 | self.__class__._call_fn_args.fget.cache.pop(self, None) | CODE |
| CRITICAL⚡ | tensorflow/python/keras/engine/base_layer.py | 2908 | self.__class__._call_accepts_kwargs.fget.cache.pop(self, None) | CODE |
| CRITICAL | …orflow/python/keras/engine/base_preprocessing_layer.py | 199 | >>> layer = tf.keras.layers.experimental.preprocessing.Normalization( | STRING |
| CRITICAL | …orflow/python/keras/engine/base_preprocessing_layer.py | 212 | >>> layer = tf.keras.layers.experimental.preprocessing.Normalization( | STRING |
| CRITICAL⚡ | tensorflow/python/keras/engine/base_layer_v1.py | 2280 | self.__class__._call_full_argspec.fget.cache.pop(self, None) | CODE |
| CRITICAL⚡ | tensorflow/python/keras/engine/base_layer_v1.py | 2281 | self.__class__._call_fn_args.fget.cache.pop(self, None) | CODE |
| CRITICAL⚡ | tensorflow/python/keras/engine/base_layer_v1.py | 2282 | self.__class__._call_accepts_kwargs.fget.cache.pop(self, None) | CODE |
| CRITICAL | tensorflow/python/saved_model/loader_impl.py | 334 | tf.compat.v1.saved_model.loader.load(sess, ["foo-tag"], export_dir) | STRING |
| CRITICAL | tensorflow/python/saved_model/loader.py | 36 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(export_dir) | STRING |
| CRITICAL | tensorflow/python/saved_model/loader.py | 56 | tf.compat.v1.saved_model.loader.load(sess, ["foo-tag"], export_dir) | STRING |
| CRITICAL | tensorflow/python/saved_model/method_name_updater.py | 41 | updater = tf.compat.v1.saved_model.signature_def_utils.MethodNameUpdater( | STRING |
| CRITICAL | tensorflow/python/training/saver.py | 702 | To replace, `tf.compat.v1.train.Saver.save(write_meta_graph=True)`, use | STRING |
| CRITICAL | tensorflow/python/distribute/distribute_lib.py | 770 | self._context.strategy.extended._lazy_variable_tracker.initialize_all() | CODE |
| CRITICAL | …nsorflow/python/distribute/experimental/rpc/rpc_ops.py | 84 | >>> server = tf.distribute.experimental.rpc.Server.create("grpc", address) | STRING |
| CRITICAL | …nsorflow/python/distribute/experimental/rpc/rpc_ops.py | 179 | >>> server = tf.distribute.experimental.rpc.Server.create("grpc", address) | STRING |
| CRITICAL | …nsorflow/python/distribute/experimental/rpc/rpc_ops.py | 184 | >>> client = tf.distribute.experimental.rpc.Client.create("grpc", | STRING |
| CRITICAL | tensorflow/python/distribute/coordinator/values.py | 160 | `tf.distribute.experimental.coordinator.ClusterCoordinator.schedule()`, the | STRING |
| CRITICAL | tensorflow/python/ops/init_ops.py | 192 | >>> initializer = tf.compat.v1.keras.initializers.ones() | STRING |
| CRITICAL | tensorflow/python/ops/rnn.py | 525 | rnn_cell = tf.compat.v1.nn.rnn_cell.BasicRNNCell(hidden_size) | STRING |
| CRITICAL | tensorflow/python/ops/rnn.py | 540 | rnn_layers = [tf.compat.v1.nn.rnn_cell.LSTMCell(size) for size in [128, 256]] | STRING |
| CRITICAL | tensorflow/python/ops/rnn.py | 543 | multi_rnn_cell = tf.compat.v1.nn.rnn_cell.MultiRNNCell(rnn_layers) | STRING |
| CRITICAL | tensorflow/python/ops/rnn.py | 643 | rnn_layers = [tf.compat.v1.nn.rnn_cell.LSTMCell(size) for size in [128, 256]] | STRING |
| CRITICAL | tensorflow/python/ops/rnn.py | 646 | multi_rnn_cell = tf.compat.v1.nn.rnn_cell.MultiRNNCell(rnn_layers) | STRING |
| CRITICAL | tensorflow/python/ops/rnn.py | 1044 | cell = tf.compat.v1.nn.rnn_cell.LSTMCell(num_units) | STRING |
| CRITICAL | …flow/python/eager/benchmarks/resnet50/resnet50_test.py | 197 | tf.compat.v2.summary.experimental.set_step( | CODE |
| CRITICAL | tensorflow/security/advisory/tfsa-2021-161.md | 28 | converter = tf.compat.v1.lite.TFLiteConverter.from_session(sess, [params, indices], [out]) | CODE |
| CRITICAL⚡ | tensorflow/lite/g3doc/r1/convert/python_api.md | 9 | * `tf.compat.v1.lite.TFLiteConverter.from_saved_model()`: Converts a | COMMENT |
| CRITICAL⚡ | tensorflow/lite/g3doc/r1/convert/python_api.md | 11 | * `tf.compat.v1.lite.TFLiteConverter.from_keras_model_file()`: Converts a | COMMENT |
| CRITICAL⚡ | tensorflow/lite/g3doc/r1/convert/python_api.md | 13 | * `tf.compat.v1.lite.TFLiteConverter.from_session()`: Converts a GraphDef from | COMMENT |
| CRITICAL⚡ | tensorflow/lite/g3doc/r1/convert/python_api.md | 15 | * `tf.compat.v1.lite.TFLiteConverter.from_frozen_graph()`: Converts a Frozen | COMMENT |
| CRITICAL | tensorflow/lite/g3doc/r1/convert/python_api.md | 37 | converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model(saved_model_dir) | CODE |
| CRITICAL | tensorflow/lite/g3doc/r1/convert/python_api.md | 55 | converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file('keras_model.h5') | CODE |
| CRITICAL | tensorflow/lite/g3doc/r1/convert/python_api.md | 90 | converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file(keras_file) | CODE |
| 67 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 258 | CODE | |
| LOW | configure.py | 272 | CODE | |
| LOW | configure.py | 989 | CODE | |
| LOW | configure.py | 1092 | CODE | |
| LOW | configure.py | 1207 | CODE | |
| LOW | ci/official/utilities/extract_resultstore_links.py | 73 | CODE | |
| LOW | third_party/xla/xla/sh_test_with_runfiles.py | 25 | CODE | |
| LOW | third_party/xla/xla/python/xla_hlo_test.py | 30 | CODE | |
| LOW | third_party/xla/xla/python/xla_hlo_test.py | 246 | CODE | |
| LOW | third_party/xla/xla/python/xla_hlo_test.py | 459 | CODE | |
| LOW | third_party/xla/xla/python/xla_hlo_test.py | 510 | CODE | |
| LOW | …arty/xla/xla/tsl/lib/io/zip_writer_integration_test.py | 27 | CODE | |
| LOW | …xla/xla/backends/cpu/benchmarks/e2e/keras/benchmark.py | 110 | CODE | |
| LOW | …rty/xla/xla/tests/generate_complex_unary_op_samples.py | 53 | CODE | |
| LOW | …rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py | 300 | CODE | |
| LOW | third_party/xla/xla/benchmarks/benchmark_configs.py | 57 | CODE | |
| LOW | …a/benchmarks/jax_microbenchmarks/jax_profiler_utils.py | 81 | CODE | |
| LOW | third_party/xla/xla/benchmarks/core/benchmark.py | 125 | CODE | |
| LOW | third_party/xla/xla/benchmarks/core/flag_utils.py | 53 | CODE | |
| LOW | third_party/xla/xla/benchmarks/core/flag_utils.py | 118 | CODE | |
| LOW | …/xla/xla/benchmarks/dma_microbenchmarks/memory_base.py | 66 | CODE | |
| LOW | …la/xla/benchmarks/collectives/collectives_benchmark.py | 146 | CODE | |
| LOW | …party/xla/xla/service/fusion_explorer/viewer_server.py | 159 | CODE | |
| LOW | …party/xla/xla/service/fusion_explorer/viewer_server.py | 43 | CODE | |
| LOW | …la/third_party/py/setup_py_nvidia_dependencies_util.py | 46 | CODE | |
| LOW | …d_party/xla/third_party/mkl_dnn/gen_gpu_kernel_list.py | 133 | CODE | |
| LOW | third_party/xla/third_party/gpus/find_cuda_config.py | 223 | CODE | |
| LOW | third_party/xla/build_tools/lint/check_dwyu.py | 165 | CODE | |
| LOW | third_party/xla/build_tools/configure/configure.py | 319 | CODE | |
| LOW | third_party/xla/build_tools/ci/build.py | 958 | CODE | |
| LOW | third_party/xla/build_tools/ci/bazel_diff.py | 304 | CODE | |
| LOW | third_party/xla/build_tools/ci/bazel_diff.py | 433 | CODE | |
| LOW | third_party/xla/build_tools/ci/clang_tidy_diff.py | 307 | CODE | |
| LOW | third_party/xla/build_tools/ci/clang_tidy_diff.py | 351 | CODE | |
| LOW | tensorflow/dtensor/python/accelerator_util.py | 45 | CODE | |
| LOW | tensorflow/dtensor/python/api.py | 38 | CODE | |
| LOW | tensorflow/dtensor/python/d_variable.py | 152 | CODE | |
| LOW | tensorflow/dtensor/python/d_checkpoint.py | 59 | CODE | |
| LOW | tensorflow/dtensor/python/d_checkpoint.py | 107 | CODE | |
| LOW | tensorflow/dtensor/python/d_checkpoint.py | 315 | CODE | |
| LOW | tensorflow/dtensor/python/d_checkpoint.py | 416 | CODE | |
| LOW | tensorflow/dtensor/python/tpu_util.py | 326 | CODE | |
| LOW | tensorflow/dtensor/python/tests/rng_test.py | 358 | CODE | |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 232 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 192 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 252 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 198 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2_test.py | 276 | CODE | |
| LOW | tensorflow/tools/compatibility/ast_edits.py | 37 | CODE | |
| LOW | tensorflow/tools/compatibility/ast_edits.py | 694 | CODE | |
| LOW | tensorflow/tools/compatibility/ast_edits.py | 41 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1573 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1850 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2395 | CODE | |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2451 | CODE | |
| LOW | tensorflow/tools/compatibility/ipynb.py | 99 | CODE | |
| LOW | …/tools/compatibility/update/generate_v2_renames_map.py | 90 | CODE | |
| LOW | tensorflow/tools/benchmark/parse_onednn_benchmarks.py | 41 | CODE | |
| LOW | tensorflow/tools/proto_splitter/util.py | 93 | CODE | |
| LOW | tensorflow/tools/ci_build/copy_binary.py | 46 | CODE | |
| 1473 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …odegen/intrinsic/accuracy/generate_golden_baselines.py | 0 | /* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "lice | STRING |
| HIGH | …rd_party/xla/xla/hlo/builder/lib/generate_math_impl.py | 0 | /* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "lice | STRING |
| HIGH | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 0 | /* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "lice | STRING |
| HIGH | …eleration/compatibility/convert_binary_to_cc_source.py | 0 | /* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "lice | STRING |
| HIGH | tensorflow/lite/python/util.py | 0 | /* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "lice | STRING |
| HIGH | …ntization/tensorflow/gen_quantized_function_library.py | 0 | /* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "lice | STRING |
| HIGH | tensorflow/compat_template_v1.__init__.py | 0 | bring in all of the public tensorflow interface into this module. | STRING |
| HIGH | tensorflow/compat_template.__init__.py | 0 | bring in all of the public tensorflow interface into this module. | STRING |
| HIGH | tensorflow/api_template_v1.__init__.py | 0 | bring in all of the public tensorflow interface into this module. | STRING |
| HIGH | tensorflow/tools/compatibility/tf_upgrade.py | 0 | list of maps that describe what changed in the api. | STRING |
| HIGH | tensorflow/tools/compatibility/tf_upgrade_v2_safety.py | 0 | list of maps that describe what changed in the api. | STRING |
| HIGH | tensorflow/tools/compatibility/tf_upgrade_v2.py | 0 | list of maps that describe what changed in the api. | STRING |
| HIGH | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 0 | returns a sensible default tolerance for comparing results of a given type. args: dtype: a datatype. | STRING |
| HIGH | …sorflow/python/kernel_tests/math_ops/cwise_ops_test.py | 0 | returns a sensible default tolerance for comparing results of a given type. args: dtype: a datatype. | STRING |
| HIGH | …w/python/kernel_tests/math_ops/cwise_ops_unary_test.py | 0 | returns a sensible default tolerance for comparing results of a given type. args: dtype: a datatype. | STRING |
| HIGH | …/python/kernel_tests/math_ops/cwise_ops_binary_test.py | 0 | returns a sensible default tolerance for comparing results of a given type. args: dtype: a datatype. | STRING |
| HIGH | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 0 | get all the valid tests configs to run. returns: all the valid test configs as tuples of data_format and use_gpu. | STRING |
| HIGH | tensorflow/python/kernel_tests/nn_ops/conv_ops_test.py | 0 | get all the valid tests configs to run. returns: all the valid test configs as tuples of data_format and use_gpu. | STRING |
| HIGH | …flow/python/kernel_tests/nn_ops/pooling_ops_3d_test.py | 0 | get all the valid tests configs to run. returns: all the valid test configs as tuples of data_format and use_gpu. | STRING |
| HIGH | …sorflow/python/kernel_tests/nn_ops/conv_ops_3d_test.py | 0 | get all the valid tests configs to run. returns: all the valid test configs as tuples of data_format and use_gpu. | STRING |
| HIGH | tensorflow/tools/test/system_info_lib.py | 0 | library for getting system information during tensorflow tests. | STRING |
| HIGH | tensorflow/tools/test/system_info.py | 0 | library for getting system information during tensorflow tests. | STRING |
| HIGH | tensorflow/tools/test/gpu_info_lib.py | 0 | library for getting system information during tensorflow tests. | STRING |
| HIGH | tensorflow/tools/test/run_and_gather_logs_lib.py | 0 | library for getting system information during tensorflow tests. | STRING |
| HIGH | …core/tfrt/saved_model/tests/gen_sparse_tensor_input.py | 0 | generates a saved model with tf.pow to trigger placer and grappler. | STRING |
| HIGH | tensorflow/core/tfrt/saved_model/tests/gen_pow.py | 0 | generates a saved model with tf.pow to trigger placer and grappler. | STRING |
| HIGH | …re/tfrt/saved_model/tests/gen_ref_type_tensor_input.py | 0 | generates a saved model with tf.pow to trigger placer and grappler. | STRING |
| HIGH | tensorflow/python/keras/layers/rnn_cell_wrapper_v2.py | 0 | operator adding dropout to inputs and outputs of the given cell. | STRING |
| HIGH | …ython/keras/layers/legacy_rnn/rnn_cell_wrapper_impl.py | 0 | operator adding dropout to inputs and outputs of the given cell. | STRING |
| HIGH | …orflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py | 0 | operator adding dropout to inputs and outputs of the given cell. | STRING |
| HIGH | tensorflow/python/keras/layers/rnn_cell_wrapper_v2.py | 0 | rnncell wrapper that ensures cell inputs are added to the outputs. | STRING |
| HIGH | …ython/keras/layers/legacy_rnn/rnn_cell_wrapper_impl.py | 0 | rnncell wrapper that ensures cell inputs are added to the outputs. | STRING |
| HIGH | …orflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py | 0 | rnncell wrapper that ensures cell inputs are added to the outputs. | STRING |
| HIGH | …flow/python/keras/mixed_precision/autocast_variable.py | 0 | pass resource_variable_ops.is_resource_variable check. | STRING |
| HIGH | tensorflow/python/distribute/values.py | 0 | pass resource_variable_ops.is_resource_variable check. | STRING |
| HIGH | tensorflow/python/distribute/ps_values.py | 0 | pass resource_variable_ops.is_resource_variable check. | STRING |
| HIGH | tensorflow/python/distribute/sharded_variable.py | 0 | pass resource_variable_ops.is_resource_variable check. | STRING |
| HIGH | tensorflow/python/keras/utils/control_flow_util.py | 0 | return either `true_fn()` if predicate `pred` is true else `false_fn()`. if `pred` is a bool or has a constant value, we | STRING |
| HIGH | tensorflow/python/layers/utils.py | 0 | return either `true_fn()` if predicate `pred` is true else `false_fn()`. if `pred` is a bool or has a constant value, we | STRING |
| HIGH | tensorflow/python/framework/smart_cond.py | 0 | return either `true_fn()` if predicate `pred` is true else `false_fn()`. if `pred` is a bool or has a constant value, we | STRING |
| HIGH | tensorflow/python/keras/legacy_tf_layers/base.py | 0 | contains the base layer class, from which all layers inherit. | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer.py | 0 | contains the base layer class, from which all layers inherit. | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer_v1.py | 0 | contains the base layer class, from which all layers inherit. | STRING |
| HIGH | tensorflow/python/layers/base.py | 0 | contains the base layer class, from which all layers inherit. | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer.py | 0 | retrieves the input tensor(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to | STRING |
| HIGH | tensorflow/python/keras/engine/functional.py | 0 | retrieves the input tensor(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer_v1.py | 0 | retrieves the input tensor(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer.py | 0 | retrieves the output tensor(s) of a layer. only applicable if the layer has exactly one output, i.e. if it is connected | STRING |
| HIGH | tensorflow/python/keras/engine/functional.py | 0 | retrieves the output tensor(s) of a layer. only applicable if the layer has exactly one output, i.e. if it is connected | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer_v1.py | 0 | retrieves the output tensor(s) of a layer. only applicable if the layer has exactly one output, i.e. if it is connected | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer.py | 0 | retrieves the input shape(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to | STRING |
| HIGH | tensorflow/python/keras/engine/functional.py | 0 | retrieves the input shape(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer_v1.py | 0 | retrieves the input shape(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer.py | 0 | retrieves the output shape(s) of a layer. only applicable if the layer has one output, or if all outputs have the same s | STRING |
| HIGH | tensorflow/python/keras/engine/functional.py | 0 | retrieves the output shape(s) of a layer. only applicable if the layer has one output, or if all outputs have the same s | STRING |
| HIGH | tensorflow/python/keras/engine/base_layer_v1.py | 0 | retrieves the output shape(s) of a layer. only applicable if the layer has one output, or if all outputs have the same s | STRING |
| HIGH | tensorflow/python/keras/initializers/initializers_v2.py | 0 | returns the configuration of the initializer as a json-serializable dict. returns: a json-serializable python dict. | STRING |
| HIGH | tensorflow/python/ops/init_ops.py | 0 | returns the configuration of the initializer as a json-serializable dict. returns: a json-serializable python dict. | STRING |
| HIGH | tensorflow/python/ops/init_ops_v2.py | 0 | returns the configuration of the initializer as a json-serializable dict. returns: a json-serializable python dict. | STRING |
| HIGH | tensorflow/python/keras/initializers/initializers_v2.py | 0 | validate and return floating point type based on `dtype`. `dtype` must be a floating point type. args: dtype: the data t | STRING |
| 190 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/xla/xla/python/xla_client.py | 24 | CODE | |
| LOW | third_party/xla/xla/python/xla_client.py | 34 | CODE | |
| LOW | third_party/xla/xla/python/xla_client.py | 36 | CODE | |
| LOW | third_party/xla/xla/python/xla_client.py | 37 | CODE | |
| LOW | third_party/xla/xla/python/xla_extension.py | 18 | CODE | |
| LOW | third_party/xla/xla/python/xla_extension.py | 20 | CODE | |
| LOW | third_party/xla/xla/mlir_hlo/tests/python/smoketest.py | 19 | CODE | |
| LOW | third_party/xla/xla/mlir_hlo/tests/python/smoketest.py | 20 | CODE | |
| LOW | …xla/xla/mlir_hlo/bindings/python/mlir/dialects/mhlo.py | 19 | CODE | |
| LOW | …xla/xla/mlir_hlo/bindings/python/mlir/dialects/mhlo.py | 20 | CODE | |
| LOW | …rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py | 91 | CODE | |
| LOW | third_party/xla/build_tools/ci/clang_tidy_diff.py | 25 | CODE | |
| LOW | tensorflow/api_template.__init__.py | 40 | CODE | |
| LOW | tensorflow/api_template.__init__.py | 95 | CODE | |
| LOW | tensorflow/api_template.__init__.py | 70 | CODE | |
| LOW | tensorflow/__init__.py | 20 | CODE | |
| LOW | tensorflow/virtual_root_template_v2.__init__.py | 87 | CODE | |
| LOW | tensorflow/api_template_v1.__init__.py | 25 | CODE | |
| LOW | tensorflow/api_template_v1.__init__.py | 141 | CODE | |
| LOW | tensorflow/api_template_v1.__init__.py | 70 | CODE | |
| LOW | tensorflow/virtual_root_template_v1.__init__.py | 89 | CODE | |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 34 | CODE | |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 36 | CODE | |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 37 | CODE | |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 38 | CODE | |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 39 | CODE | |
| LOW | …tools/compatibility/update/generate_v2_reorders_map.py | 26 | CODE | |
| LOW | …/tools/compatibility/update/generate_v2_renames_map.py | 29 | CODE | |
| LOW | …/tools/compatibility/update/generate_v2_renames_map.py | 30 | CODE | |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 26 | CODE | |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 27 | CODE | |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 28 | CODE | |
| LOW | tensorflow/tools/test/run_and_gather_logs.py | 39 | CODE | |
| LOW | tensorflow/tools/test/run_and_gather_logs.py | 40 | CODE | |
| LOW | tensorflow/tools/api/tests/api_compatibility_test.py | 48 | CODE | |
| LOW | tensorflow/core/config/flags.py | 18 | CODE | |
| LOW | …sorflow/core/function/runtime_client/runtime_client.py | 18 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 28 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 29 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 30 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 31 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 32 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 33 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 34 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 35 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 36 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 37 | CODE | |
| LOW | tensorflow/core/function/trace_type/__init__.py | 38 | CODE | |
| LOW | tensorflow/core/function/testing/test_pass.py | 18 | CODE | |
| LOW | tensorflow/python/pywrap_sanitizers.py | 18 | CODE | |
| LOW | tensorflow/python/pywrap_sanitizers.py | 19 | CODE | |
| LOW | tensorflow/python/pywrap_tfe_monitoring_reader.py | 24 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 25 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 26 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 27 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 28 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 29 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 30 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 31 | CODE | |
| LOW | tensorflow/python/modules_with_exports.py | 32 | CODE | |
| 1438 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | third_party/xla/xla/sh_test_with_runfiles.py | 109 | except FileNotFoundError: | CODE |
| HIGH | third_party/xla/xla/sh_test_with_runfiles.py | 51 | except FileExistsError: | CODE |
| HIGH | …ols/buffer_debug_log/check_thunk_output_consistency.py | 37 | except message.DecodeError: | CODE |
| HIGH | …odegen/intrinsic/accuracy/generate_golden_baselines.py | 145 | except ValueError: | CODE |
| HIGH | …a/benchmarks/jax_microbenchmarks/jax_profiler_utils.py | 122 | except ValueError: | CODE |
| HIGH | …party/xla/xla/service/fusion_explorer/viewer_server.py | 201 | except webbrowser.Error: | CODE |
| HIGH | …party/xla/xla/service/fusion_explorer/viewer_server.py | 214 | except KeyboardInterrupt: | CODE |
| HIGH | …party/xla/xla/service/fusion_explorer/viewer_server.py | 66 | except sqlite3.OperationalError: | CODE |
| HIGH | tensorflow/api_template.__init__.py | 164 | except (ImportError, AttributeError): | CODE |
| HIGH | tensorflow/api_template.__init__.py | 176 | except NameError: | CODE |
| HIGH | tensorflow/api_template.__init__.py | 180 | except NameError: | CODE |
| HIGH | tensorflow/api_template.__init__.py | 184 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v2.__init__.py | 94 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v2.__init__.py | 99 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v2.__init__.py | 104 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v2.__init__.py | 109 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v2.__init__.py | 114 | except NameError: | CODE |
| HIGH | tensorflow/api_template_v1.__init__.py | 195 | except NameError: | CODE |
| HIGH | tensorflow/api_template_v1.__init__.py | 199 | except NameError: | CODE |
| HIGH | tensorflow/api_template_v1.__init__.py | 203 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v1.__init__.py | 101 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v1.__init__.py | 106 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v1.__init__.py | 111 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v1.__init__.py | 116 | except NameError: | CODE |
| HIGH | tensorflow/virtual_root_template_v1.__init__.py | 121 | except NameError: | CODE |
| HIGH | …/tools/compatibility/update/generate_v2_renames_map.py | 101 | except: # pylint: disable=bare-except | CODE |
| HIGH | tensorflow/tools/test/system_info_lib.py | 84 | except errors.OpError: | CODE |
| HIGH | tensorflow/tools/test/system_info_lib.py | 112 | except errors.OpError: | CODE |
| HIGH | tensorflow/tools/test/gpu_info_lib.py | 171 | except (IOError, ValueError, errors.OpError): | CODE |
| HIGH | tensorflow/tools/test/run_and_gather_logs_lib.py | 188 | except OSError: | CODE |
| HIGH | tensorflow/tools/docs/generate2.py | 119 | except AttributeError: | CODE |
| HIGH | tensorflow/tools/docs/generate2.py | 270 | except AttributeError: | CODE |
| HIGH | tensorflow/tools/docs/generate2.py | 236 | except AttributeError: | CODE |
| HIGH | tensorflow/tools/docs/tf_doctest.py | 68 | except (AttributeError, ImportError): | CODE |
| HIGH | …orflow/tools/api/lib/python_object_to_proto_visitor.py | 402 | except ValueError: | CODE |
| HIGH | tensorflow/core/function/capture/restore_captures.py | 114 | except ValueError: | CODE |
| HIGH | tensorflow/python/pywrap_tensorflow.py | 81 | except ModuleNotFoundError: | CODE |
| HIGH | tensorflow/python/pywrap_tensorflow.py | 93 | except (ImportError, RuntimeError, OSError): | CODE |
| HIGH | tensorflow/python/autograph/impl/conversion.py | 225 | except TypeError: | CODE |
| HIGH | tensorflow/python/autograph/operators/py_builtins.py | 55 | except LookupError: | CODE |
| HIGH | tensorflow/python/autograph/tests/early_return_test.py | 152 | except ValueError: | CODE |
| HIGH | tensorflow/python/autograph/tests/early_return_test.py | 162 | except ValueError: | CODE |
| HIGH | …orflow/python/autograph/tests/loop_distributed_test.py | 113 | except StopIteration: | CODE |
| HIGH | tensorflow/python/autograph/tests/datasets_test.py | 147 | except StopIteration: | CODE |
| HIGH | …low/python/autograph/tests/nested_control_flow_test.py | 67 | except ValueError: | CODE |
| HIGH | tensorflow/python/autograph/pyct/inspect_utils.py | 152 | except ValueError: | CODE |
| HIGH | tensorflow/python/autograph/pyct/parser.py | 71 | except tokenize.TokenError: | CODE |
| HIGH | tensorflow/python/autograph/pyct/transpiler.py | 390 | except NotImplementedError: | CODE |
| HIGH | …python/autograph/pyct/static_analysis/liveness_test.py | 80 | except: # pylint:disable=bare-except | CODE |
| HIGH | …python/autograph/pyct/static_analysis/liveness_test.py | 360 | except: # pylint:disable=bare-except | CODE |
| HIGH | …python/autograph/pyct/static_analysis/liveness_test.py | 377 | except: # pylint:disable=bare-except | CODE |
| HIGH | …raph/pyct/static_analysis/reaching_definitions_test.py | 109 | except: # pylint:disable=bare-except | CODE |
| HIGH | …raph/pyct/static_analysis/reaching_definitions_test.py | 127 | except TestException: # pylint:disable=undefined-variable,unused-variable | CODE |
| HIGH | tensorflow/python/keras/backend.py | 6257 | except OSError: | CODE |
| HIGH | tensorflow/python/keras/backend.py | 6272 | except IOError: | CODE |
| HIGH | tensorflow/python/keras/layers/recurrent.py | 562 | except (ValueError, TypeError): | CODE |
| HIGH | tensorflow/python/keras/utils/generic_utils.py | 303 | except TypeError: | CODE |
| HIGH | tensorflow/python/keras/utils/data_utils.py | 770 | except queue.Empty: | CODE |
| HIGH | tensorflow/python/keras/utils/tf_inspect.py | 25 | except: | CODE |
| HIGH | tensorflow/python/keras/utils/tf_inspect.py | 139 | except TypeError: | CODE |
| 170 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci/official/any.sh | 41 | # Any request that includes "nightly_upload" should just use the | COMMENT |
| MEDIUM | third_party/xla/xla/pjrt/cpu/abstract_cpu_buffer.h | 57 | // robust by using setting the AsyncValue in the destructor. | COMMENT |
| MEDIUM | …/distributed/coordination/coordination_service_agent.h | 181 | // The agent does not need to be connected to utilize the key-value store. | COMMENT |
| MEDIUM | …a/pjrt/distributed/coordination/coordination_service.h | 191 | // connected to utilize the distributed key-value store. | COMMENT |
| MEDIUM | third_party/xla/xla/python_api/xla_literal_test.py | 53 | # To facilitate iteration over different test cases, we collect similar array | COMMENT |
| MEDIUM | third_party/xla/xla/tools/hlo_dump/hlo_lexer.h | 32 | // 2. The HTML dumper needs to be robust to malformed or partial HLO text | COMMENT |
| MEDIUM | …_party/xla/xla/python/ifrt_proxy/server/ifrt_backend.h | 52 | // service to interact with a variety of backend runtime system it can utilize. | COMMENT |
| MEDIUM | third_party/xla/xla/python/ifrt/client.h | 177 | // robust cleanup, it is strongly recommended to capture RAII objects in the | COMMENT |
| MEDIUM | …ird_party/xla/xla/python/ifrt/ir/program_interpreter.h | 58 | // 1. It allows us to leverage the static information available in the program | COMMENT |
| MEDIUM | third_party/xla/xla/tsl/framework/cancellation.h | 124 | // is robust to `callback` being invoked asynchronously (e.g. from | COMMENT |
| MEDIUM | third_party/xla/xla/tsl/lib/gtl/int_type.h | 24 | // other operations from other similar integer-like types. Essentially, the | COMMENT |
| MEDIUM | third_party/xla/xla/tsl/lib/gtl/int_type.h | 133 | // The following bad usage is permissible although discouraged. Essentially, it | COMMENT |
| MEDIUM | …uted_runtime/coordination/coordination_service_agent.h | 191 | // The agent does not need to be connected to utilize the key-value store. | COMMENT |
| MEDIUM | …istributed_runtime/coordination/coordination_service.h | 191 | // connected to utilize the distributed key-value store. | COMMENT |
| MEDIUM | third_party/xla/xla/backends/gpu/runtime/while_loop.h | 49 | // storage. Essentially we keep a thread local stack of `WhileLoopState` entries | COMMENT |
| MEDIUM | …ty/xla/xla/backends/gpu/transforms/conv_fp8_fallback.h | 54 | // rewriting the convolution earlier is not robust because inserted converts | COMMENT |
| MEDIUM | …arty/xla/xla/backends/gpu/transforms/splitk_rewriter.h | 29 | // Rewrites dot instructions that don't fully utilize cores but have a long K | COMMENT |
| MEDIUM | …xla/xla/hlo/tools/hlo_diff/matchers/gumgraph_matcher.h | 49 | // output types, ensuring seamless integration and compatibility within any | COMMENT |
| MEDIUM | third_party/xla/xla/service/compiler.h | 196 | // Note: The default implementation of the API here does not utilize the given | COMMENT |
| MEDIUM | third_party/xla/xla/service/hlo_runner_interface.h | 238 | // Note: The default implementation of the API here does not utilize the given | COMMENT |
| MEDIUM | third_party/xla/xla/service/hlo_runner_interface.h | 263 | // Note: The default implementation of the API here does not utilize the given | COMMENT |
| MEDIUM | third_party/xla/xla/service/batchnorm_expander.h | 30 | // big operation into smaller operations helps leverage our generic fusion | COMMENT |
| MEDIUM | third_party/xla/xla/service/local_service.h | 39 | // Service implementation that extends the XLA Service to leverage running | COMMENT |
| MEDIUM | third_party/xla/xla/service/hlo_graph_dumper.h | 35 | // Fundamentally all graphs are rendered using the DOT language, but they can be | COMMENT |
| MEDIUM | …/xla/xla/service/spmd/spmd_partitioner_util_internal.h | 38 | // NOTE: If provided sharding does not utilize all the partitions, we skip | COMMENT |
| MEDIUM | …arty/xla/xla/service/heap_simulator/allocation_block.h | 75 | // composed of slices. In such cases, the repacker can utilize | COMMENT |
| LOW | …y/xla/tools/ci_build/gpu_build/parallel_gpu_execute.sh | 41 | # If the file path is already fully specified, simply return it. | COMMENT |
| LOW | …y/xla/tools/ci_build/gpu_build/parallel_gpu_execute.sh | 44 | # If the file exists in the $TEST_SRCDIR then just use it. | COMMENT |
| LOW | third_party/xla/build_tools/ci/parallel_gpu_execute.sh | 41 | # If the file path is already fully specified, simply return it. | COMMENT |
| LOW | third_party/xla/build_tools/ci/parallel_gpu_execute.sh | 44 | # If the file exists in the $TEST_SRCDIR then just use it. | COMMENT |
| LOW | …ird_party/xla/build_tools/rocm/parallel_gpu_execute.sh | 50 | # If the file path is already fully specified, simply return it. | COMMENT |
| LOW | …ird_party/xla/build_tools/rocm/parallel_gpu_execute.sh | 53 | # If the file exists in the $TEST_SRCDIR then just use it. | COMMENT |
| LOW | tensorflow/dtensor/python/save_restore.py | 206 | # For now, we just use the current `internal` API and aim at migrating in | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1746 | # the arg order if we just set them to 0. | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1832 | # the arg order if we just set them to 0. | COMMENT |
| LOW | …rflow/tools/ci_build/gpu_build/parallel_gpu_execute.sh | 41 | # If the file path is already fully specified, simply return it. | COMMENT |
| LOW | …rflow/tools/ci_build/gpu_build/parallel_gpu_execute.sh | 44 | # If the file exists in the $TEST_SRCDIR then just use it. | COMMENT |
| MEDIUM | tensorflow/tools/lib_package/libtensorflow_test.sh | 54 | # are in DYLD_LIBRARY_PATH in the test harness for OS X. | COMMENT |
| MEDIUM | tensorflow/go/session_test.go | 372 | // nuanced conversion to C types. | COMMENT |
| MEDIUM | tensorflow/core/kernels/quantization_utils.h | 552 | // Return std::array instead of pointer to leverage return value optimization | COMMENT |
| MEDIUM | tensorflow/core/framework/collective.h | 223 | // Graphs which utilize Collective Ops in a common instance must | COMMENT |
| MEDIUM | …rflow/core/grappler/optimizers/graph_optimizer_stage.h | 82 | // make all updates in place. This helps to make robust node placement | COMMENT |
| LOW | tensorflow/python/autograph/converters/lists_test.py | 91 | # For now, we just pass a regular Python list of lists just to verify that | COMMENT |
| MEDIUM | tensorflow/python/autograph/pyct/inspect_utils.py | 272 | # namespace. This is inefficient but more robust a method. | COMMENT |
| MEDIUM | tensorflow/python/autograph/pyct/parser.py | 247 | # This method is more robust that just calling inspect.getsource(mod), as it | COMMENT |
| MEDIUM⚡ | …/python/autograph/pyct/common_transformers/anf_test.py | 413 | a.b = c + d # Should be a.b = tmp? (Definitely not tmp = c + d) | CODE |
| MEDIUM⚡ | …/python/autograph/pyct/common_transformers/anf_test.py | 414 | a[b] = c + d # Should be a[b] = tmp? (Definitely not tmp = c + d) | CODE |
| MEDIUM⚡ | …/python/autograph/pyct/common_transformers/anf_test.py | 415 | a += c + d # Should be a += tmp? (Definitely not tmp = c + d) | CODE |
| MEDIUM | tensorflow/python/keras/backend.py | 165 | # We assume our devices don't change henceforth. | COMMENT |
| MEDIUM | tensorflow/python/keras/models.py | 665 | # Allows this method to be robust to switching graph and eager classes. | COMMENT |
| MEDIUM | tensorflow/python/keras/callbacks.py | 1547 | # use that as it is more robust than `os.path.getmtime()`. | COMMENT |
| LOW | tensorflow/python/keras/layers/core.py | 1332 | # (For standard layers users could just set `name` when creating the | COMMENT |
| LOW | tensorflow/python/keras/utils/generic_utils.py | 328 | # serialized this config. If so, just use that config. This will store an | COMMENT |
| LOW | tensorflow/python/keras/utils/data_utils.py | 800 | # If a worker dies during init, the pool will just create a replacement. | COMMENT |
| LOW | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | 129 | # In eager mode, simply call minimize to update the list of variables. | STRING |
| LOW | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | 246 | # In eager mode, simply call minimize to update the list of variables. | STRING |
| MEDIUM | tensorflow/python/keras/engine/base_layer.py | 399 | # Used in symbolic mode only, only in conjunction with graph-networks | COMMENT |
| MEDIUM | tensorflow/python/keras/engine/training_v1.py | 2526 | # For subclassed models, a robust input spec is not available so we | COMMENT |
| LOW | tensorflow/python/keras/engine/training_v1.py | 2328 | # In graph mode, if we had just set inputs and targets as symbolic tensors | COMMENT |
| MEDIUM | tensorflow/python/keras/engine/base_layer_v1.py | 214 | # Used in symbolic mode only, only in conjunction with graph-networks | COMMENT |
| 93 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | third_party/xla/xla/online_topsort.h | 513 | // Step 1: test order: if w is already higher than v in the lexicographical | COMMENT |
| LOW⚡ | third_party/xla/xla/online_topsort.h | 523 | // Step 2: search backwards from v, until we either find `w`, which means we | COMMENT |
| LOW | third_party/xla/xla/online_topsort.h | 547 | // Step 3: search forwards from w, following outgoing edges only from nodes | COMMENT |
| LOW | third_party/xla/xla/online_topsort.h | 565 | // Step 4: update indices. | COMMENT |
| LOW | third_party/xla/xla/online_topsort.h | 581 | // Step 5: add the edge. | COMMENT |
| LOW | third_party/xla/xla/tsl/platform/test.h | 76 | // NOTE: This function is not thread-safe. | COMMENT |
| LOW | third_party/xla/xla/tsl/profiler/utils/xplane_utils.h | 248 | // NOTE: This class assumes that the ancestors are ordered with respect to the | COMMENT |
| LOW | …_party/xla/xla/tsl/distributed_runtime/rpc/grpc_call.h | 255 | // NOTE: This method must be called before this call is enqueued on a | COMMENT |
| LOW | third_party/xla/xla/hlo/ir/tile_assignment.h | 180 | // NOTE: This class is immutable. | COMMENT |
| LOW | third_party/xla/xla/hlo/builder/lib/matrix.h | 118 | // NOTE: This function is meant for testing, there is no need to call it | COMMENT |
| LOW⚡ | …rd_party/xla/xla/service/mapped_ptr_container_sorter.h | 369 | // Step 1: build a set of the ptrs in unordered_container | COMMENT |
| LOW⚡ | …rd_party/xla/xla/service/mapped_ptr_container_sorter.h | 376 | // Step 2: for mapped elements (in unordered_container), create a map from | COMMENT |
| LOW | …rd_party/xla/xla/service/mapped_ptr_container_sorter.h | 398 | // Step 3: create sorted unordered element indices | COMMENT |
| LOW | third_party/xla/docs/pjrt/pjrt_integration.md | 8 | ### Step 1: Implement [PJRT C API interface](https://github.com/openxla/xla/blob/71a4e6e6e4e9f0f8b8f25c07a32ad489aff1923 | COMMENT |
| LOW | third_party/xla/docs/pjrt/pjrt_integration.md | 38 | ### Step 2: Implement GetPjRtApi | COMMENT |
| LOW | third_party/xla/docs/pjrt/pjrt_integration.md | 50 | ### Step 3: Test C API implementations | COMMENT |
| LOW | third_party/xla/docs/pjrt/pjrt_integration.md | 56 | ### Step 1: Set up JAX | COMMENT |
| LOW | third_party/xla/docs/pjrt/pjrt_integration.md | 76 | ### Step 2: Use jax\_plugins namespace or set up entry\_point | COMMENT |
| LOW | third_party/xla/docs/pjrt/pjrt_integration.md | 104 | ### Step 3: Implement an initialize() method | COMMENT |
| LOW | third_party/xla/.github/workflows/benchmarks/README.md | 130 | ### Step 1: Prepare Your Benchmark Artifact | COMMENT |
| LOW | third_party/xla/.github/workflows/benchmarks/README.md | 148 | ### Step 2: Define the Benchmark Configuration in `benchmark_registry.pbtxt` | COMMENT |
| LOW | third_party/xla/.github/workflows/benchmarks/README.md | 163 | ### Step 3: Establish Baselines & Thresholds | COMMENT |
| LOW | …sorflow/dtensor/mlir/expansions/gather_spmd_expander.h | 79 | // Step 1: If the params are sharded on dim axis, an unconditional | COMMENT |
| LOW | …sorflow/dtensor/mlir/expansions/gather_spmd_expander.h | 140 | // Step 2: Check the output layout. If it requires all-relayouting indices. | COMMENT |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 241 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 260 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/core/kernels/training_op_helpers.h | 48 | // NOTE: This function uses variable's `copy_on_read_mode` flag to decide if | COMMENT |
| LOW | …flow/core/util/quantization/uniform_quant_ops_params.h | 32 | // NOTE: This class instance is fully loaded and valid, only after (1) One of | COMMENT |
| LOW | …flow/core/util/quantization/uniform_quant_ops_params.h | 78 | // NOTE: This method should be called only after calling one of | COMMENT |
| LOW⚡ | tensorflow/core/grappler/utils/grappler_test.h | 63 | // NOTE: This function uses EXPECT/ASSERT macros to check node properties | COMMENT |
| LOW⚡ | tensorflow/core/grappler/utils/grappler_test.h | 69 | // NOTE: This function uses EXPECT/ASSERT macros to check node properties | COMMENT |
| LOW⚡ | tensorflow/core/grappler/utils/grappler_test.h | 76 | // NOTE: This function uses EXPECT/ASSERT macros to check node properties | COMMENT |
| LOW | tensorflow/core/distributed_runtime/message_wrappers.h | 537 | // NOTE: This method is not implemented. See | COMMENT |
| LOW | tensorflow/core/distributed_runtime/message_wrappers.h | 681 | // NOTE: This method is not implemented. See | COMMENT |
| LOW | …rnel_tests/sparse_ops/sparse_serialization_ops_test.py | 274 | # NOTE: The following test is a no-op as it is currently not possible to | COMMENT |
| LOW | tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py | 1154 | ########### Step 1: Run static graph and generate readouts | COMMENT |
| LOW | tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py | 1214 | ########## Step 2: Run dynamic graph and generate readouts | COMMENT |
| LOW | tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py | 1290 | ######### Step 3: Comparisons | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 82 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 97 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 309 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 324 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 488 | # Step 1: the momentum accumulators are 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 511 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 561 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 576 | # Step 2: the second momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 314 | # Step 1: the rms accumulators where 1. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 333 | # Step 2: the root mean square accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 384 | # Step 1: rms = 1, mom = 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 414 | # Step 2: the root mean square accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 476 | # Step 1: the rms accumulators where 1. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 490 | # Step 2: the root mean square accumulators contain the previous update. | COMMENT |
| LOW⚡ | tensorflow/python/ops/distributions/distribution.py | 109 | # Step 0: Prepend spaces to all lines of append_str. This is | COMMENT |
| LOW⚡ | tensorflow/python/ops/distributions/distribution.py | 113 | # Step 1: Find mention of "Args": | COMMENT |
| LOW | tensorflow/python/data/experimental/ops/batching.py | 109 | # NOTE: The following examples use `{ ... }` to represent the | STRING |
| LOW | tensorflow/python/data/experimental/ops/batching.py | 279 | # NOTE: The following example uses `{ ... }` to represent the contents | STRING |
| LOW | …nsorflow/python/data/experimental/ops/enumerate_ops.py | 29 | # NOTE: The following examples use `{ ... }` to represent the | STRING |
| LOW | tensorflow/python/data/ops/dataset_ops.py | 2149 | # NOTE: The following examples use `{ ... }` to represent the | STRING |
| LOW | tensorflow/python/compiler/tensorrt/utils.py | 195 | # Step 1: Parsing the graph and drawing OPs one by one. | COMMENT |
| LOW | tensorflow/python/compiler/tensorrt/utils.py | 232 | # Step 2: Creating the DType Nodes previously found in Step 1. | COMMENT |
| 126 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …la/backends/cpu/codegen/dot/dot_kernel_emitter_test.py | 47 | CODE | |
| LOW | tensorflow/dtensor/python/tests/conv_test.py | 122 | CODE | |
| LOW | …sorflow/core/function/capture/free_vars_detect_test.py | 184 | CODE | |
| LOW | tensorflow/python/autograph/core/ag_ctx.py | 52 | CODE | |
| LOW | …ython/autograph/pyct/static_analysis/type_inference.py | 157 | CODE | |
| LOW | …autograph/pyct/static_analysis/reaching_definitions.py | 82 | CODE | |
| LOW | tensorflow/python/keras/metrics.py | 2058 | CODE | |
| LOW | tensorflow/python/keras/callbacks_v1.py | 113 | CODE | |
| LOW | tensorflow/python/keras/testing_utils.py | 87 | CODE | |
| LOW | tensorflow/python/keras/callbacks.py | 74 | CODE | |
| LOW | tensorflow/python/keras/callbacks.py | 2146 | CODE | |
| LOW | tensorflow/python/keras/callbacks.py | 2627 | CODE | |
| LOW | tensorflow/python/keras/losses.py | 2024 | CODE | |
| LOW | tensorflow/python/keras/layers/merge.py | 693 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 109 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 486 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 645 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 791 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 917 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 1186 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 1494 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 1758 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 1990 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 2179 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 2348 | CODE | |
| LOW | tensorflow/python/keras/layers/convolutional.py | 2527 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 1297 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 1520 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 1734 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 2055 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 2295 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 2552 | CODE | |
| LOW | tensorflow/python/keras/layers/recurrent.py | 2725 | CODE | |
| LOW | tensorflow/python/keras/layers/core.py | 222 | CODE | |
| LOW | tensorflow/python/keras/layers/core.py | 1131 | CODE | |
| LOW | …sorflow/python/keras/layers/convolutional_recurrent.py | 487 | CODE | |
| LOW | …sorflow/python/keras/layers/convolutional_recurrent.py | 843 | CODE | |
| LOW | …ython/keras/layers/legacy_rnn/rnn_cell_wrapper_impl.py | 38 | CODE | |
| LOW | …orflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py | 855 | CODE | |
| LOW | tensorflow/python/keras/utils/data_utils.py | 163 | CODE | |
| LOW | tensorflow/python/keras/optimizer_v2/ftrl.py | 100 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 115 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 318 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 529 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 865 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 987 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 1201 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 1385 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 77 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 280 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 491 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 704 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 818 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 1164 | CODE | |
| LOW | …sorflow/python/keras/legacy_tf_layers/convolutional.py | 1347 | CODE | |
| LOW | tensorflow/python/keras/legacy_tf_layers/core.py | 107 | CODE | |
| LOW | tensorflow/python/keras/legacy_tf_layers/core.py | 79 | CODE | |
| LOW | …w/python/keras/legacy_tf_layers/variable_scope_shim.py | 153 | CODE | |
| LOW | …w/python/keras/legacy_tf_layers/variable_scope_shim.py | 388 | CODE | |
| LOW | …w/python/keras/legacy_tf_layers/variable_scope_shim.py | 297 | CODE | |
| 236 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | configure.py | 1230 | print('Error retrieving bazel version: ', e.output.decode('UTF-8').strip()) | CODE |
| LOW | tools/tf_env_collect.sh | 289 | except Exception as e: # noqa: BLE001 - diagnostic best-effort | STRING |
| LOW | tools/tf_env_collect.sh | 478 | except Exception as e: # noqa: BLE001 - diagnostic best-effort | STRING |
| LOW | tools/tf_env_collect.sh | 480 | except Exception as e: # noqa: BLE001 - diagnostic best-effort | STRING |
| LOW | …ols/buffer_debug_log/check_thunk_output_consistency.py | 94 | except Exception as e: | CODE |
| LOW | …ols/buffer_debug_log/check_thunk_output_consistency.py | 104 | except Exception as e: | CODE |
| MEDIUM | …xla/xla/backends/cpu/benchmarks/e2e/keras/benchmark.py | 74 | print(f"Error: max_len {max_len} should be >= 1") | CODE |
| LOW | …a/benchmarks/jax_microbenchmarks/jax_profiler_utils.py | 75 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …a/benchmarks/jax_microbenchmarks/jax_profiler_utils.py | 134 | except Exception: # pylint: disable=broad-except | CODE |
| LOW⚡ | …party/xla/xla/service/fusion_explorer/viewer_server.py | 177 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM⚡ | …party/xla/xla/service/fusion_explorer/viewer_server.py | 178 | print(f"Error extracting database: {e}") | CODE |
| LOW⚡ | …party/xla/xla/service/fusion_explorer/viewer_server.py | 185 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| LOW | …party/xla/xla/service/fusion_explorer/viewer_server.py | 209 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | third_party/xla/.github/workflows/pr_size_check.py | 77 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/dtensor/python/heartbeat.py | 82 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/tools/test/upload_test_benchmarks.py | 132 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/tools/test/upload_test_benchmarks.py | 208 | except Exception as e: # pylint: disable=broad-except | CODE |
| MEDIUM | tensorflow/tools/test/upload_test_benchmarks.py | 128 | def trylock(fd): | CODE |
| MEDIUM⚡ | …/tensorflow_builder/config_detector/config_detector.py | 354 | print("Error: Cannot retrieve CUDA default version.\nStopping...") | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 163 | print("Error in detecting platform:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 165 | print("Error: Detected unsupported operating system.\nStopping...") | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 184 | print("Error in detecting CPU type:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 199 | print("Error in detecting CPU arch:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 214 | print("Error in detecting distribution:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 254 | print("Error in detecting GPU type:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 283 | print("Error in detecting GPU count:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 316 | print("Error in detecting CUDA version:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 407 | print("Error in finding `cudnn.h`:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 413 | print("Error in detecting cuDNN version:\n %s" % str(err_re)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 430 | print("Error in detecting GCC version:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 445 | print("Error in detecting GCC version:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 460 | print("Error in detecting libstdc++ version:\n %s" % str(err)) | CODE |
| MEDIUM | …/tensorflow_builder/config_detector/config_detector.py | 478 | print("Error in detecting supported ISA:\n %s" % str(err)) | CODE |
| LOW⚡ | …/tensorflow_builder/config_detector/config_detector.py | 347 | except Exception as e: | CODE |
| LOW | …g_build_dockerfiles/devel.usertools/squash_testlogs.py | 54 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/core/function/capture/free_vars_detect.py | 270 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/core/function/capture/free_vars_detect.py | 297 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/core/function/transform/transform.py | 356 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/python/autograph/impl/api.py | 409 | except Exception as e: # pylint:disable=broad-except | CODE |
| LOW | tensorflow/python/autograph/impl/api.py | 430 | except Exception as e: # pylint:disable=broad-except | CODE |
| LOW | tensorflow/python/autograph/impl/api.py | 442 | except Exception as e: | CODE |
| LOW | tensorflow/python/autograph/impl/api.py | 691 | except Exception as e: # pylint:disable=broad-except | CODE |
| LOW | …nsorflow/python/autograph/tests/reference_test_base.py | 62 | except Exception as e: # pylint:disable=broad-except | CODE |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 923 | def test_fn(a): | CODE |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 1245 | def test_fn(a): | CODE |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 1272 | def test_fn(a): | CODE |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 1329 | def test_fn(a): | CODE |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 1362 | def test_fn(a): | CODE |
| LOW | tensorflow/python/keras/callbacks.py | 2003 | except Exception as exc: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/python/keras/utils/data_utils.py | 392 | except Exception as e: | CODE |
| LOW | tensorflow/python/keras/utils/data_utils.py | 772 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/python/keras/utils/data_utils.py | 896 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/python/keras/engine/training_utils_v1.py | 406 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/python/tools/inspect_checkpoint.py | 100 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | tensorflow/python/tools/saved_model_cli.py | 546 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | tensorflow/python/tools/saved_model_cli.py | 970 | except Exception as exc: | CODE |
| LOW | tensorflow/python/tools/saved_model_cli.py | 1277 | except Exception as exc: | CODE |
| MEDIUM | …flow/python/tools/selective_registration_header_lib.py | 245 | print('Error reading graph!') | STRING |
| LOW | …low/python/tools/api/generator2/extractor/extractor.py | 73 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| LOW | …low/python/tools/api/generator2/extractor/extractor.py | 85 | except Exception as e: # pylint: disable=broad-exception-caught | CODE |
| 141 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | tensorflow/python/autograph/converters/control_flow.py | 199 | return scope_vars, undefined, nouts | CODE |
| HIGH⚡ | tensorflow/python/autograph/converters/control_flow.py | 206 | cond_vars, undefined, nouts = self._get_block_vars( | CODE |
| HIGH⚡ | tensorflow/python/autograph/converters/control_flow.py | 209 | undefined_assigns = self._create_undefined_assigns(undefined) | CODE |
| HIGH | tensorflow/python/autograph/converters/control_flow.py | 262 | loop_vars, undefined, _ = self._get_block_vars(node, body_scope.bound) | STRING |
| HIGH | tensorflow/python/autograph/converters/control_flow.py | 264 | undefined_assigns = self._create_undefined_assigns(undefined) | STRING |
| HIGH | tensorflow/python/autograph/converters/control_flow.py | 313 | loop_vars, undefined, _ = self._get_block_vars( | STRING |
| HIGH | tensorflow/python/autograph/converters/control_flow.py | 316 | undefined_assigns = self._create_undefined_assigns(undefined) | STRING |
| HIGH | …thon/tools/print_selective_registration_header_test.py | 284 | return false | CODE |
| HIGH | tensorflow/python/framework/ops.py | 4759 | context.context().context_switches.push(default.building_function, | CODE |
| HIGH | …sorflow/python/framework/experimental/context_stack.py | 33 | _default_ctx_stack.push(ctx) | CODE |
| HIGH | …sorflow/python/kernel_tests/linalg/linalg_grad_test.py | 307 | # log|det(A)| is -inf for a singular A, so its gradient is undefined, but | COMMENT |
| HIGH | tensorflow/python/ops/array_grad.py | 956 | # If only one dimension is undefined, we can use a wildcard dimension in | COMMENT |
| HIGH | tensorflow/python/ops/control_flow_case.py | 94 | if (x < y && x > z) raise OpError("Only one predicate may evaluate to True"); | STRING |
| HIGH | tensorflow/python/ops/control_flow_case.py | 203 | if (x < y && x > z) raise OpError("Only one predicate may evaluate to True"); | STRING |
| HIGH | tensorflow/python/ops/state_ops.py | 151 | undefined, but may exhibit less contention. | STRING |
| HIGH | tensorflow/python/ops/state_ops.py | 222 | will be protected by a lock; otherwise the behavior is undefined, but may | STRING |
| HIGH | tensorflow/python/ops/state_ops.py | 295 | will be protected by a lock; otherwise the behavior is undefined, but may | STRING |
| HIGH | tensorflow/python/ops/state_ops.py | 422 | otherwise the behavior is undefined, but may exhibit less contention. | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 484 | be protected by a lock; otherwise the behavior is undefined, | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 536 | otherwise the behavior is undefined, but may exhibit less contention. | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 600 | otherwise the behavior is undefined, but may exhibit less contention. | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 654 | otherwise the behavior is undefined, but may exhibit less contention. | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 717 | be protected by a lock; otherwise the behavior is undefined, | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 769 | will be protected by a lock; otherwise the behavior is undefined, but may | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 821 | will be protected by a lock; otherwise the behavior is undefined, but may | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 876 | will be protected by a lock; otherwise the behavior is undefined, but may | CODE |
| HIGH | tensorflow/python/ops/state_ops.py | 931 | will be protected by a lock; otherwise the behavior is undefined, but may | CODE |
| HIGH⚡ | tensorflow/python/ops/distributions/categorical.py | 328 | """Calculate the batched KL divergence KL(a || b) with a and b Categorical. | STRING |
| HIGH⚡ | tensorflow/python/ops/distributions/categorical.py | 337 | Batchwise KL(a || b) | STRING |
| HIGH | tensorflow/python/ops/distributions/dirichlet.py | 338 | """Batchwise KL divergence KL(d1 || d2) with d1 and d2 Dirichlet. | STRING |
| HIGH | tensorflow/python/ops/distributions/dirichlet.py | 347 | Batchwise KL(d1 || d2) | STRING |
| HIGH | tensorflow/python/ops/distributions/normal.py | 272 | """Calculate the batched KL divergence KL(n_a || n_b) with n_a and n_b Normal. | STRING |
| HIGH | tensorflow/python/ops/distributions/normal.py | 281 | Batchwise KL(n_a || n_b) | STRING |
| HIGH | tensorflow/python/ops/distributions/beta.py | 380 | """Calculate the batchwise KL divergence KL(d1 || d2) with d1 and d2 Beta. | STRING |
| HIGH | tensorflow/python/ops/distributions/beta.py | 389 | Batchwise KL(d1 || d2) | STRING |
| HIGH | tensorflow/python/ops/distributions/bijector_impl.py | 403 | the `Invert` bijector. If undefined, a slightly less efficiently | CODE |
| HIGH | tensorflow/python/ops/distributions/distribution.py | 595 | undefined, e.g., if a distribution's pdf does not achieve a maximum within | STRING |
| HIGH | tensorflow/python/ops/distributions/distribution.py | 597 | undefined, then by definition the variance is undefined. E.g. the mean for | STRING |
| HIGH | tensorflow/python/ops/distributions/bernoulli.py | 167 | """Calculate the batched KL divergence KL(a || b) with a and b Bernoulli. | STRING |
| HIGH | tensorflow/python/ops/distributions/bernoulli.py | 176 | Batchwise KL(a || b) | STRING |
| HIGH | tensorflow/python/ops/distributions/kullback_leibler.py | 62 | """Get the KL-divergence KL(distribution_a || distribution_b). | STRING |
| HIGH | tensorflow/python/ops/distributions/kullback_leibler.py | 98 | "No KL(distribution_a || distribution_b) registered for distribution_a " | CODE |
| HIGH | tensorflow/python/ops/distributions/gamma.py | 315 | """Calculate the batched KL divergence KL(g0 || g1) with g0 and g1 Gamma. | STRING |
| HIGH | tensorflow/python/ops/distributions/gamma.py | 324 | kl_gamma_gamma: `Tensor`. The batchwise KL(g0 || g1). | STRING |
| HIGH | tensorflow/python/data/experimental/ops/readers.py | 87 | # If the field is null, it gives no extra information about its type | COMMENT |
| HIGH | tensorflow/python/data/ops/dataset_ops.py | 2320 | undefined, so the values of output elements may not be deterministic | STRING |
| HIGH | tensorflow/python/eager/context.py | 358 | self.push( | CODE |
| HIGH | tensorflow/python/eager/context.py | 1162 | self.context_switches.push(False, eager_mode, None) | CODE |
| HIGH | tensorflow/lite/tools/visualize.py | 158 | d.fx = d.fy = null; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | configure.py | 194 | # Check if the path is valid | COMMENT |
| LOW | configure.py | 439 | # Check if current bazel version can be detected properly. | COMMENT |
| LOW | configure.py | 931 | # Check if current clang version can be detected properly. | COMMENT |
| LOW | ci/official/utilities/rename_and_verify_wheels.sh | 109 | # Check if size is too big. TFCI_WHL_SIZE_LIMIT is in find's format, which can be | COMMENT |
| LOW | ci/official/utilities/setup_macos.sh | 67 | # Check if pyenv is managed by homebrew. If so, update and upgrade pyenv. | COMMENT |
| LOW | third_party/xla/xla/python/xla_hlo_test.py | 234 | # Check if we can find expected opcodes in the main computation. | STRING |
| LOW | tensorflow/dtensor/python/config.py | 189 | # Check if TPU is present from initialized context. | COMMENT |
| LOW | tensorflow/dtensor/python/layout.py | 127 | # Check if input args are valid. | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1697 | # Check if we have a keep_prob keyword arg | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1789 | # Check if we have a labels keyword arg | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1916 | # Check if we have a uniform_noise keyword arg | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2251 | # Check if we have a scale or scope keyword arg | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 2304 | # Check if we have a scale or scope keyword arg | COMMENT |
| LOW | tensorflow/tools/proto_splitter/python/saved_model.py | 42 | # Check if the proto size is still larger than the max size. | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/pip_new.sh | 196 | # Check if only the major version of python is provided by the user. | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/pip_new.sh | 219 | # Check if all versions match. | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/pip_new.sh | 308 | # Check if in a virtualenv and exit if yes. | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/pip_new.sh | 473 | # Set path to pip. | COMMENT |
| LOW | tensorflow/tools/pip_package/check_load_py_test.py | 67 | # Check if BUILD files load py_test. | COMMENT |
| LOW | tensorflow/tools/pip_package/pip_smoke_test.py | 161 | # Check if the dependency is in the pip package, the dependency denylist, | COMMENT |
| LOW | …ls/tensorflow_builder/compat_checker/compat_checker.py | 785 | # Check if all `Required` configs are found in user configs. | COMMENT |
| LOW | …ls/tensorflow_builder/compat_checker/compat_checker.py | 863 | # Check if user config has a dependency in the following sequence: | COMMENT |
| LOW | tensorflow/tools/api/tests/api_compatibility_test.py | 309 | # Write files if requested. | COMMENT |
| LOW | tensorflow/core/function/capture/capture_container.py | 220 | # Check if the capture exists in self._by_ref | COMMENT |
| LOW | tensorflow/python/keras/optimizer_v1.py | 61 | # Set this to False, indicating `apply_gradients` does not take the | COMMENT |
| LOW | tensorflow/python/keras/callbacks.py | 102 | # Check if callbacks have already been configured. | COMMENT |
| LOW | …w/python/keras/mixed_precision/loss_scale_optimizer.py | 147 | # Set aggregation to NONE, as loss scaling variables should never be | COMMENT |
| LOW | tensorflow/python/keras/utils/generic_utils.py | 556 | # Check if `cls_config` is a list. If it is a list, return the class and the | COMMENT |
| LOW | …ython/keras/distribute/distribute_coordinator_utils.py | 352 | # Check if the Server is already running. If so, assert that no configuration | COMMENT |
| LOW | tensorflow/python/keras/optimizer_v2/optimizer_v2.py | 1181 | # Set trainable to be false when variable is to be synced on read. | COMMENT |
| LOW | tensorflow/python/keras/legacy_tf_layers/base.py | 399 | # Set trainable to be false when variable is to be synced on read. | COMMENT |
| LOW⚡ | tensorflow/python/keras/engine/base_layer_utils.py | 343 | # Check if running in V1 graph mode. | COMMENT |
| LOW⚡ | tensorflow/python/keras/engine/base_layer_utils.py | 348 | # Check if inside Keras FuncGraph. | COMMENT |
| LOW | tensorflow/python/keras/engine/base_layer.py | 612 | # Set trainable to be false when variable is to be synced on read. | COMMENT |
| LOW | tensorflow/python/keras/engine/base_layer.py | 2814 | # Append value to list of trainable / non-trainable weights if relevant | COMMENT |
| LOW | tensorflow/python/keras/engine/functional.py | 1434 | # Check if module.__call__ has a `training` arg or accepts `**kwargs`. | COMMENT |
| LOW | tensorflow/python/keras/engine/training_arrays_v1.py | 270 | # Loop over dataset until `OutOfRangeError` is raised. | COMMENT |
| LOW | tensorflow/python/keras/engine/training_arrays_v1.py | 273 | # Loop over dataset for the specified number of steps. | COMMENT |
| LOW | tensorflow/python/keras/engine/training_generator_v1.py | 209 | # Loop over dataset until `OutOfRangeError` is raised. | COMMENT |
| LOW | tensorflow/python/keras/engine/training_generator_v1.py | 212 | # Loop over dataset for the specified number of steps. | COMMENT |
| LOW | tensorflow/python/keras/engine/base_layer_v1.py | 404 | # Set trainable to be false when variable is to be synced on read. | COMMENT |
| LOW | tensorflow/python/keras/engine/base_layer_v1.py | 2246 | # Append value to list of trainable / non-trainable weights if relevant | COMMENT |
| LOW | tensorflow/python/tools/saved_model_cli.py | 825 | # Check if input tensor keys are valid. | COMMENT |
| LOW | tensorflow/python/tools/saved_model_cli.py | 1131 | # Check if npz file only contains a single numpy ndarray. | COMMENT |
| LOW | …orflow/python/tools/api/generator/create_python_api.py | 151 | # Check if we are trying to expose two different symbols with same name. | COMMENT |
| LOW | tensorflow/python/saved_model/load_test.py | 3468 | # Check if variables work as expected across multiple iterations. | COMMENT |
| LOW | …nsorflow/python/saved_model/signature_serialization.py | 252 | # Check if `outputs` is a namedtuple. | COMMENT |
| LOW | tensorflow/python/saved_model/nested_structure_coder.py | 442 | # Check if it's a registered type. | COMMENT |
| LOW | tensorflow/python/util/dispatch.py | 587 | # Check if dispatch_target registered by `@dispatch_for_api` | COMMENT |
| LOW | tensorflow/python/util/dispatch.py | 595 | # Check if dispatch_target registered by `@dispatch_for_*_elementwise_apis` | COMMENT |
| LOW⚡ | tensorflow/python/framework/subscribe.py | 234 | # Check if the given tensor has a numpy compatible type (see dtypes.py). | COMMENT |
| LOW⚡ | tensorflow/python/framework/subscribe.py | 244 | # Check if the given tensor has already been subscribed by inspecting its | COMMENT |
| LOW | tensorflow/python/framework/op_def_library.py | 369 | # Check if all inputs are already tf.Tensor | COMMENT |
| LOW | tensorflow/python/framework/test_util.py | 2579 | # Check if the mlir bridge has been explicitly enabled or disabled. If | COMMENT |
| LOW | tensorflow/python/framework/test_util.py | 3295 | # Check if a and/or b are namedtuples. | COMMENT |
| LOW | tensorflow/python/framework/test_util_test.py | 227 | # Check if the assertion failure message contains the content of | STRING |
| LOW | …orflow/python/kernel_tests/array_ops/array_ops_test.py | 1403 | # Check if equal | COMMENT |
| LOW | …orflow/python/kernel_tests/array_ops/array_ops_test.py | 1420 | # Assign vector to scalar (rank-0) using newaxis | COMMENT |
| LOW | tensorflow/python/training/session_manager_test.py | 209 | # Set max_wait_secs to allow us to try a few times. | COMMENT |
| LOW | tensorflow/python/training/session_manager_test.py | 819 | # Set max_wait_secs to allow us to try a few times. | COMMENT |
| 60 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | third_party/xla/xla/debug_options_flags.h | 132 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/reference_util.h | 599 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/tsl/util/sorted_range.h | 29 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/tsl/util/sorted_range.h | 49 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/tsl/util/fixed_option_set_flag.h | 47 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/tsl/platform/debug_me_context.h | 47 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/tsl/platform/errors.h | 201 | // Example usage: | COMMENT |
| LOW | …la/tsl/platform/cloud/compute_engine_metadata_client.h | 50 | /// Example usage: | COMMENT |
| LOW | third_party/xla/xla/tsl/lib/gtl/value_or_die.h | 21 | // Example usage: | COMMENT |
| LOW | …party/xla/xla/tsl/lib/monitoring/collection_registry.h | 499 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/tests/xla_test_backend_predicates.h | 118 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/hlo/analysis/shape_tracker.h | 42 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/hlo/ir/hlo_computation.h | 180 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/service/pattern_matcher.h | 3244 | // Example usage: | COMMENT |
| LOW | third_party/xla/xla/service/cpu/ir_function.h | 46 | // Example usage: | COMMENT |
| LOW | …party/xla/xla/stream_executor/kernel_symbol_registry.h | 85 | // Example usage: | COMMENT |
| LOW | …stream_executor/gpu/scoped_command_buffer_annotation.h | 28 | // Example usage: | COMMENT |
| LOW | tensorflow/tools/proto_splitter/merge.h | 35 | // Example usage: | COMMENT |
| LOW | tensorflow/tools/proto_splitter/merge.h | 49 | // Example usage: | COMMENT |
| LOW | tensorflow/tools/ci_build/update_version.py | 19 | # Usage: | COMMENT |
| LOW | tensorflow/tools/ci_build/copy_binary.py | 19 | # Usage: | COMMENT |
| LOW | …sorflow/tools/ci_build/install/install_deb_packages.sh | 17 | # Usage: | COMMENT |
| LOW | tensorflow/tools/ci_build/ctpu/ctpu.sh | 40 | # Usage: | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/print_build_info.sh | 23 | # Usage: | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/run_pip_tests.sh | 20 | # Usage: | COMMENT |
| LOW | tensorflow/tools/ci_build/builds/pip_new.sh | 19 | # Usage: | COMMENT |
| LOW | tensorflow/tools/gcs_test/gcs_smoke.sh | 19 | # Usage: | COMMENT |
| LOW | tensorflow/tools/gcs_test/gcs_smoke_wrapper.sh | 21 | # Usage: | COMMENT |
| LOW | tensorflow/core/kernels/record_yielder.h | 43 | // Usage example: | COMMENT |
| LOW | …sorflow/core/framework/dataset_stateful_op_allowlist.h | 67 | // Example usage: | COMMENT |
| LOW | …e/common_runtime/input_colocation_exemption_registry.h | 35 | // Example usage: | COMMENT |
| LOW | tensorflow/core/common_runtime/eager/attr_builder.h | 72 | // Example usage: | COMMENT |
| LOW | tensorflow/core/tfrt/mlrt/interpreter/async_handle.h | 37 | // Example usage: | COMMENT |
| LOW | tensorflow/core/lib/jxl/jxl_io.h | 18 | // Example usage: | COMMENT |
| LOW | tensorflow/core/data/standalone.h | 57 | // Example usage: | COMMENT |
| LOW | tensorflow/core/data/serialization_utils.h | 163 | // Usage example: | COMMENT |
| LOW | tensorflow/core/data/service/byte_size.h | 30 | // Usage example: | COMMENT |
| LOW | tensorflow/core/data/service/cross_trainer_cache.h | 51 | // Example usage: | COMMENT |
| LOW | …/core/data/service/snapshot/parallel_tfrecord_writer.h | 43 | // Usage example: | COMMENT |
| LOW | …core/data/service/snapshot/prefetched_split_provider.h | 41 | // Usage example: | COMMENT |
| LOW | tensorflow/python/training/coordinator.py | 34 | #### Usage: | STRING |
| LOW | tensorflow/python/training/session_manager.py | 86 | ### Usage: | STRING |
| LOW | tensorflow/python/lib/core/py_exception_registry.h | 34 | // Example usage: | COMMENT |
| LOW | tensorflow/lite/kernels/shim/op_kernel.h | 154 | // Example usage: | COMMENT |
| LOW | tensorflow/lite/kernels/shim/tflite_op_wrapper.h | 149 | // Example usage: | COMMENT |
| LOW | tensorflow/lite/kernels/shim/tensor_view.h | 59 | // Example usage: | COMMENT |
| LOW | …imental/acceleration/compatibility/gpu_compatibility.h | 39 | // Example usage: | COMMENT |
| LOW⚡ | tensorflow/lite/testing/zip_test_utils.py | 47 | # Usage: | COMMENT |
| LOW | tensorflow/lite/delegates/gpu/api.h | 19 | // Usage example: | COMMENT |
| LOW | tensorflow/lite/delegates/gpu/common/task/util.h | 60 | // Example usage: | COMMENT |
| LOW | tensorflow/lite/delegates/gpu/cl/api.h | 33 | // Usage example: | COMMENT |
| LOW | …c/experimental/pluggable_profiler/pluggable_profiler.h | 46 | // Example usage: | COMMENT |
| LOW | tensorflow/c/experimental/grappler/grappler.h | 50 | // Example usage: | COMMENT |
| LOW | …rflow/c/experimental/stream_executor/stream_executor.h | 45 | // Example usage: | COMMENT |
| LOW | tensorflow/compiler/tf2xla/python/xla.py | 482 | # Usage: | COMMENT |
| LOW | tensorflow/compiler/jit/node_matchers.h | 18 | // Example usage: | COMMENT |
| LOW | tensorflow/compiler/jit/xla_host_send_device_context.h | 32 | // Example usage: | COMMENT |
| LOW | tensorflow/compiler/jit/xla_host_recv_device_context.h | 32 | // Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …arty/xla/build_tools/lint/generate_compile_commands.py | 53 | def _setup_external_symlink(xla_src_root: pathlib.Path) -> None: | STRING |
| LOW | third_party/xla/build_tools/ci/clang_tidy_diff.py | 174 | def _set_log_level(log_level: str) -> None: | CODE |
| LOW | third_party/xla/build_tools/ci/clang_tidy_diff.py | 184 | def _set_level(level: int) -> None: | CODE |
| LOW | tensorflow/dtensor/python/tests/test_util.py | 403 | __all__ = [ | CODE |
| LOW | tensorflow/tools/pip_package/build_pip_package.py | 348 | def update_xla_tsl_imports(srcs_dir: str) -> None: | CODE |
| LOW | tensorflow/tools/common/traverse.py | 22 | __all__ = ['traverse'] | CODE |
| LOW | …sorflow/core/function/trace_type/trace_type_builder.py | 89 | def update_naming_scope(self, naming_scope: Optional[str]) -> None: | CODE |
| LOW | tensorflow/python/__init__.py | 34 | __all__ = [s for s in dir() if s in _exported_dunders or not s.startswith('_')] | CODE |
| LOW | …low/python/tools/api/generator2/generator/generator.py | 634 | __all__ = [_s for _s in dir() if not _s.startswith('_')] | CODE |
| LOW | …orflow/python/tools/api/generator/create_python_api.py | 249 | __all__ = [_s for _s in dir() if not _s.startswith('_')] | CODE |
| LOW | tensorflow/python/util/all_util.py | 115 | __all__ = [ | CODE |
| LOW | tensorflow/python/framework/test_util.py | 4141 | def set_producer_version(graph: ops.Graph, producer_version: int) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1385 | def _set_control_flow_context(self, ctx) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1601 | def _set_attr(self, attr_name, attr_value) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1610 | def _set_attr_with_buf(self, attr_name, attr_buf) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1617 | def _set_func_attr(self, attr_name, func_name) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1622 | def _set_func_list_attr(self, attr_name, func_names) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1629 | def _set_type_list_attr(self, attr_name, data_types) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 1638 | def _set_shape_list_attr(self, attr_name, shapes) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 2408 | def _set_control_flow_context(self, ctx) -> None: | CODE |
| LOW⚡ | tensorflow/python/framework/ops.py | 6199 | def set_dtype_conversion_mode(dtype_conversion_mode) -> None: | CODE |
| LOW | tensorflow/python/framework/ops.py | 635 | def set_shape(self, shape) -> None: | CODE |
| LOW | tensorflow/python/framework/ops.py | 1494 | def _set_device(self, device) -> None: # pylint: disable=redefined-outer-name | CODE |
| LOW | tensorflow/python/framework/ops.py | 1502 | def _update_input(self, index, tensor) -> None: | CODE |
| LOW | tensorflow/python/framework/ops.py | 1862 | def set_shape_and_handle_data_for_outputs(_) -> None: | CODE |
| LOW | tensorflow/python/framework/ops.py | 6257 | def set_int_list_attr(op, attr_name, ints) -> None: | CODE |
| LOW | tensorflow/python/framework/versions.py | 89 | __all__ = [ | CODE |
| LOW | tensorflow/python/training/checkpoint_utils.py | 40 | __all__ = [ | CODE |
| LOW | tensorflow/python/ops/check_ops.py | 47 | __all__ = [ | CODE |
| LOW | tensorflow/python/ops/variable_scope.py | 45 | __all__ = [ | CODE |
| LOW | tensorflow/python/ops/template.py | 30 | __all__ = ["make_template"] | CODE |
| LOW | tensorflow/python/ops/critical_section_ops.py | 33 | __all__ = ["CriticalSection"] | CODE |
| LOW | tensorflow/python/ops/partitioned_variables.py | 59 | __all__ = [ | CODE |
| LOW | …rflow/python/ops/linalg/linear_operator_householder.py | 29 | __all__ = ["LinearOperatorHouseholder",] | CODE |
| LOW | tensorflow/python/ops/linalg/linear_operator_diag.py | 29 | __all__ = ["LinearOperatorDiag",] | CODE |
| LOW | …sorflow/python/ops/linalg/linear_operator_inversion.py | 22 | __all__ = ["LinearOperatorInversion"] | CODE |
| LOW | …/python/ops/linalg/linear_operator_lower_triangular.py | 26 | __all__ = [ | CODE |
| LOW | …nsorflow/python/ops/linalg/linear_operator_identity.py | 36 | __all__ = [ | CODE |
| LOW | …orflow/python/ops/linalg/linear_operator_block_diag.py | 31 | __all__ = ["LinearOperatorBlockDiag"] | CODE |
| LOW | …rflow/python/ops/linalg/linear_operator_composition.py | 32 | __all__ = ["LinearOperatorComposition"] | CODE |
| LOW | …nsorflow/python/ops/linalg/linear_operator_toeplitz.py | 30 | __all__ = ["LinearOperatorToeplitz",] | CODE |
| LOW | tensorflow/python/ops/linalg/linear_operator_tridiag.py | 31 | __all__ = ['LinearOperatorTridiag',] | CODE |
| LOW | …rflow/python/ops/linalg/linear_operator_permutation.py | 32 | __all__ = ["LinearOperatorPermutation",] | CODE |
| LOW | tensorflow/python/ops/linalg/slicing.py | 27 | __all__ = ['batch_slice'] | CODE |
| LOW | tensorflow/python/ops/linalg/linear_operator_zeros.py | 34 | __all__ = [ | CODE |
| LOW | …nsorflow/python/ops/linalg/linear_operator_addition.py | 29 | __all__ = [] | CODE |
| LOW | …w/python/ops/linalg/linear_operator_low_rank_update.py | 30 | __all__ = [ | CODE |
| LOW | …n/ops/linalg/linear_operator_block_lower_triangular.py | 36 | __all__ = ["LinearOperatorBlockLowerTriangular"] | CODE |
| LOW | …sorflow/python/ops/linalg/linear_operator_circulant.py | 35 | __all__ = [ | CODE |
| LOW | …rflow/python/ops/linalg/linear_operator_full_matrix.py | 26 | __all__ = ["LinearOperatorFullMatrix"] | CODE |
| LOW | …sorflow/python/ops/linalg/linear_operator_kronecker.py | 31 | __all__ = ["LinearOperatorKronecker"] | CODE |
| LOW | tensorflow/python/ops/linalg/linear_operator.py | 52 | __all__ = ["LinearOperator"] | CODE |
| LOW | tensorflow/python/ops/linalg/linear_operator_adjoint.py | 25 | __all__ = ["LinearOperatorAdjoint"] | CODE |
| LOW | tensorflow/python/ops/linalg/sparse/sparse.py | 24 | __all__ = [ | CODE |
| LOW | …flow/python/ops/linalg/sparse/sparse_csr_matrix_ops.py | 35 | __all__ = [ | CODE |
| LOW | …nsorflow/python/ops/distributions/identity_bijector.py | 22 | __all__ = [ | CODE |
| LOW | tensorflow/python/ops/distributions/laplace.py | 36 | __all__ = [ | CODE |
| LOW | tensorflow/python/ops/distributions/dirichlet.py | 33 | __all__ = [ | CODE |
| LOW | …w/python/ops/distributions/transformed_distribution.py | 32 | __all__ = [ | CODE |
| LOW | tensorflow/python/ops/distributions/student_t.py | 36 | __all__ = [ | CODE |
| 12 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | third_party/xla/xla/online_topsort.h | 513 | // Step 1: test order: if w is already higher than v in the lexicographical | COMMENT |
| LOW⚡ | third_party/xla/xla/online_topsort.h | 523 | // Step 2: search backwards from v, until we either find `w`, which means we | COMMENT |
| LOW | third_party/xla/xla/online_topsort.h | 547 | // Step 3: search forwards from w, following outgoing edges only from nodes | COMMENT |
| LOW | third_party/xla/xla/online_topsort.h | 565 | // Step 4: update indices. | COMMENT |
| LOW | third_party/xla/xla/online_topsort.h | 581 | // Step 5: add the edge. | COMMENT |
| LOW⚡ | …rd_party/xla/xla/service/mapped_ptr_container_sorter.h | 369 | // Step 1: build a set of the ptrs in unordered_container | COMMENT |
| LOW⚡ | …rd_party/xla/xla/service/mapped_ptr_container_sorter.h | 376 | // Step 2: for mapped elements (in unordered_container), create a map from | COMMENT |
| LOW | …rd_party/xla/xla/service/mapped_ptr_container_sorter.h | 398 | // Step 3: create sorted unordered element indices | COMMENT |
| LOW | …sorflow/dtensor/mlir/expansions/gather_spmd_expander.h | 79 | // Step 1: If the params are sharded on dim axis, an unconditional | COMMENT |
| LOW | …sorflow/dtensor/mlir/expansions/gather_spmd_expander.h | 140 | // Step 2: Check the output layout. If it requires all-relayouting indices. | COMMENT |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 241 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | …ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py | 260 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/keras/legacy_tf_layers/base.py | 116 | The purpose of this function is to allow users of existing layers to | STRING |
| LOW | tensorflow/python/framework/tensor_util.py | 1309 | For example, in the following code block: | STRING |
| LOW | tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py | 1154 | ########### Step 1: Run static graph and generate readouts | COMMENT |
| LOW | tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py | 1214 | ########## Step 2: Run dynamic graph and generate readouts | COMMENT |
| LOW | tensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py | 1290 | ######### Step 3: Comparisons | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 82 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 97 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 309 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 324 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 488 | # Step 1: the momentum accumulators are 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 511 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 561 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/momentum_test.py | 576 | # Step 2: the second momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 314 | # Step 1: the rms accumulators where 1. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 333 | # Step 2: the root mean square accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 384 | # Step 1: rms = 1, mom = 0. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 414 | # Step 2: the root mean square accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 476 | # Step 1: the rms accumulators where 1. So we should see a normal | COMMENT |
| LOW | tensorflow/python/training/rmsprop_test.py | 490 | # Step 2: the root mean square accumulators contain the previous update. | COMMENT |
| LOW⚡ | tensorflow/python/ops/distributions/distribution.py | 109 | # Step 0: Prepend spaces to all lines of append_str. This is | COMMENT |
| LOW⚡ | tensorflow/python/ops/distributions/distribution.py | 113 | # Step 1: Find mention of "Args": | COMMENT |
| LOW | tensorflow/python/compiler/tensorrt/utils.py | 195 | # Step 1: Parsing the graph and drawing OPs one by one. | COMMENT |
| LOW | tensorflow/python/compiler/tensorrt/utils.py | 232 | # Step 2: Creating the DType Nodes previously found in Step 1. | COMMENT |
| LOW | tensorflow/python/compiler/tensorrt/utils.py | 245 | # Step 3: Alignment of the legend with the graph. | COMMENT |
| LOW | tensorflow/compiler/tests/momentum_test.py | 62 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/compiler/tests/momentum_test.py | 77 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| LOW | tensorflow/compiler/tests/momentum_test.py | 148 | # Step 1: the momentum accumulators where 0. So we should see a normal | COMMENT |
| LOW | tensorflow/compiler/tests/momentum_test.py | 163 | # Step 2: the momentum accumulators contain the previous update. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tensorflow/dtensor/python/tests/layout_test.py | 151 | mesh._name = 'fake_name' | CODE |
| LOW | tensorflow/go/operation_test.go | 160 | placeholder, err := Placeholder(graph, "placeholder", dummyTensor.DataType()) | CODE |
| LOW | tensorflow/core/framework/function.h | 106 | // it starts with "$", we construct a AttrValue of "placeholder". | COMMENT |
| LOW | tensorflow/core/example/feature_util.h | 37 | // *tag->Add() = "lorem ipsum"; | COMMENT |
| LOW | …sorflow/core/function/capture/free_vars_detect_test.py | 386 | glob = "dummy_value" | CODE |
| LOW | tensorflow/core/grappler/utils/functions.h | 129 | // body is parametrized, if it has at least one node with a 'placeholder' | COMMENT |
| LOW | tensorflow/core/data/dataset_utils.h | 230 | // This op is used to provide a resource "placeholder" for ops such as | COMMENT |
| LOW | tensorflow/python/trackable/resource_test.py | 169 | dummy_0 = _DummyResource1(handle_name="fake_name") | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1394 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1403 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1440 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1448 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1508 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1521 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1551 | input_arg {name: "placeholder" type: DT_FLOAT} | CODE |
| LOW | …nsorflow/python/framework/convert_to_constants_test.py | 1563 | input_arg {name: "placeholder" type: DT_RESOURCE} | CODE |
| LOW | tensorflow/python/framework/op_def_util_test.py | 130 | "placeholder: ''", # 'placeholder' not supported. | CODE |
| LOW | …python/kernel_tests/strings_ops/reduce_join_op_test.py | 236 | placeholder = array_ops.placeholder(dtypes.string, name="placeholder") | CODE |
| LOW | …python/kernel_tests/strings_ops/reduce_join_op_test.py | 250 | placeholder = array_ops.placeholder(dtypes.int32, name="placeholder") | CODE |
| LOW | …python/kernel_tests/strings_ops/reduce_join_op_test.py | 329 | placeholder = array_ops.placeholder(dtypes.string, name="placeholder") | CODE |
| LOW | …python/kernel_tests/strings_ops/reduce_join_op_test.py | 340 | placeholder = array_ops.placeholder(dtypes.int32, name="placeholder") | CODE |
| LOW | …flow/python/kernel_tests/control_flow/while_v2_test.py | 1646 | name: "placeholder" | CODE |
| LOW | …flow/python/kernel_tests/control_flow/while_v2_test.py | 1665 | input: "placeholder" | CODE |
| LOW | …flow/python/kernel_tests/control_flow/while_v2_test.py | 1832 | name: "placeholder" | CODE |
| LOW | …flow/python/kernel_tests/control_flow/while_v2_test.py | 1867 | input: "placeholder" | CODE |
| LOW⚡ | …sorflow/python/distribute/multi_process_runner_test.py | 56 | return 'dummy_data' | CODE |
| LOW⚡ | …sorflow/python/distribute/multi_process_runner_test.py | 116 | self.assertEqual(return_value[0], 'dummy_data') | CODE |
| LOW⚡ | …sorflow/python/distribute/multi_process_runner_test.py | 117 | self.assertEqual(return_value[1], 'dummy_data') | CODE |
| LOW⚡ | …ow/python/distribute/collective_all_reduce_strategy.py | 1052 | dummy_value = array_ops.identity([]) | CODE |
| LOW⚡ | …ow/python/distribute/collective_all_reduce_strategy.py | 1060 | dummy_value, | CODE |
| LOW⚡ | …ow/python/distribute/collective_all_reduce_strategy.py | 1061 | dummy_value, | CODE |
| LOW | tensorflow/python/ops/array_ops.py | 3028 | @tf_export(v1=["placeholder"]) | CODE |
| LOW | tensorflow/python/summary/summary_v2_test.py | 302 | i = constant_op.constant('lorem ipsum', dtype=dtypes.string) | CODE |
| LOW | …thon/debug/examples/v1/examples_v1_debug_mnist_test.sh | 54 | cat << EOF | ${DEBUG_MNIST_BIN} --debug --max_steps=1 --fake_data --ui_type=readline --use_random_config_path | CODE |
| LOW | tensorflow/python/debug/examples/v1/debug_mnist_v1.py | 76 | "--fake_data", | CODE |
| LOW | tensorflow/python/debug/examples/v1/debug_mnist_v1.py | 110 | if FLAGS.fake_data: | CODE |
| LOW | tensorflow/python/debug/examples/v1/examples_v1_test.sh | 80 | cat << EOF | ${DEBUG_MNIST_BIN} --debug --max_steps=1 --fake_data --ui_type=readline --use_random_config_path | CODE |
| LOW | tensorflow/python/debug/examples/v2/debug_mnist_v2.py | 71 | "--fake_data", | CODE |
| LOW | tensorflow/python/debug/examples/v2/debug_mnist_v2.py | 135 | if FLAGS.fake_data: | CODE |
| LOW⚡ | tensorflow/python/debug/examples/v2/examples_v2_test.sh | 58 | ${DEBUG_MNIST_BIN} --max_steps=4 --fake_data | CODE |
| LOW⚡ | tensorflow/python/debug/examples/v2/examples_v2_test.sh | 62 | ${DEBUG_MNIST_BIN} --max_steps=1 --fake_data --check_numerics | CODE |
| LOW⚡ | tensorflow/python/debug/examples/v2/examples_v2_test.sh | 65 | ! ${DEBUG_MNIST_BIN} --max_steps=4 --fake_data --check_numerics | CODE |
| LOW⚡ | tensorflow/python/debug/examples/v2/examples_v2_test.sh | 69 | ${DEBUG_MNIST_BIN} --max_steps=4 --fake_data --dump_dir="${TMP_DIR}" | CODE |
| LOW⚡ | tensorflow/lite/testing/op_tests/mirror_pad.py | 46 | "type": ["placeholder"], | CODE |
| LOW⚡ | tensorflow/lite/testing/op_tests/mirror_pad.py | 53 | "type": ["placeholder"], | CODE |
| LOW⚡ | tensorflow/lite/testing/op_tests/mirror_pad.py | 60 | "type": ["placeholder"], | CODE |
| LOW | tensorflow/lite/testing/op_tests/mirror_pad.py | 82 | "type": ["placeholder"], | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 518 | CODE | |
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 523 | CODE | |
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 524 | CODE | |
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 525 | CODE | |
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 527 | CODE | |
| MEDIUM | …w/dtensor/python/tests/multi_client_input_util_test.py | 549 | CODE | |
| MEDIUM | …orflow/python/autograph/operators/control_flow_test.py | 832 | CODE | |
| MEDIUM | …/python/autograph/converters/return_statements_test.py | 42 | CODE | |
| MEDIUM | …/python/autograph/converters/return_statements_test.py | 43 | CODE | |
| MEDIUM | …/python/autograph/converters/return_statements_test.py | 51 | CODE | |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 189 | CODE | |
| MEDIUM | tensorflow/python/autograph/pyct/cfg_test.py | 1430 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 320 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 324 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 325 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 328 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 329 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 332 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 333 | CODE | |
| MEDIUM | tensorflow/python/ops/control_flow_ops_test.py | 336 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tensorflow/python/autograph/impl/api_test.py | 380 | def test_function(self): | CODE |
| LOW | tensorflow/python/autograph/pyct/transformer_test.py | 73 | def test_function(a): | CODE |
| LOW | tensorflow/python/autograph/pyct/transformer_test.py | 132 | def test_function(a): | CODE |
| LOW | tensorflow/python/autograph/pyct/transformer_test.py | 169 | def test_function(x, y): | CODE |
| LOW | tensorflow/python/autograph/pyct/transformer_test.py | 200 | def test_function(x): | CODE |
| LOW | tensorflow/python/autograph/pyct/transformer_test.py | 231 | def test_function(x): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 84 | def test_function(): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 95 | def test_function(x, y, z): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 108 | def test_function(a, b, c, e, f, g): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 125 | def test_function(b, c, d, e): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 139 | def test_function(call_something, a, b, y, z, c, d, e, f, g, h, i): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 155 | def test_function(a, b, c): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 171 | def test_function(a, b, c): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 191 | def test_function(a): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 211 | def test_function(): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 227 | def test_function(a, b, c, d, e, f): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 241 | def test_function(a, b, c, d, e, f): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 256 | def test_function(a, b, c, d, e, f): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 270 | def test_function(foo, bar, baz): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 285 | def test_function(a, d): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 298 | def test_function(a, b, c, d, e, f): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 311 | def test_function(a, x, y, z): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 327 | def test_function(a, c, some_computed, exception): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 342 | def test_function(foo, bar, function, quux, quozzle, w, x, y, z): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 365 | def test_function(foo, quux): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 380 | def test_function(compute, something, complicated, foo): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 400 | def test_function(b, c, d, f): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 464 | def test_function(x, frob): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 486 | def test_function(x, foo, bar): | CODE |
| LOW | …/python/autograph/pyct/common_transformers/anf_test.py | 505 | def test_function(f): | CODE |
| LOW | tensorflow/python/keras/engine/training.py | 1328 | def test_function(iterator): | CODE |
| LOW | tensorflow/python/keras/engine/training.py | 1334 | def test_function(iterator): | CODE |
| LOW⚡ | tensorflow/python/util/tf_decorator_test.py | 68 | def test_function(x): | CODE |
| LOW | tensorflow/python/util/decorator_utils_test.py | 36 | def test_function(self): | CODE |
| LOW | tensorflow/python/util/decorator_utils_test.py | 97 | def test_function(self): | CODE |
| LOW | …orflow/python/kernel_tests/control_flow/map_fn_test.py | 218 | def test_function(x): | CODE |
| LOW | tensorflow/python/ops/custom_gradient.py | 653 | >>> def my_function(x): | STRING |
| LOW | …ager/polymorphic_function/polymorphic_function_test.py | 1528 | def my_function(_): | CODE |
| LOW | …eager/polymorphic_function/tracing_compilation_test.py | 305 | def test_function(val): | CODE |
| LOW | …ow/python/eager/polymorphic_function/gradients_test.py | 440 | def my_function(x): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | third_party/xla/xla/packed_literal_reader.h | 33 | // Reads packed data from a metadata-less file as requested by a user (who must | COMMENT |
| HIGH | third_party/xla/docs/contributing.md | 201 | ### AI-generated contributions | COMMENT |
| HIGH | third_party/xla/docs/contributing.md | 220 | their PRs in detail regardless of whether it was generated by AI or not. | CODE |
| HIGH | tensorflow/python/distribute/multi_process_lib.py | 150 | # 3. Spawn any process as requested by the "spawn" method. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tensorflow/core/framework/reader_base.h | 118 | // In this implementation all the records come from the same work unit. | COMMENT |
| HIGH | tensorflow/python/training/saver.py | 1523 | # tf.get_collection() returns a list. In this example we only want | STRING |
| HIGH | …flow/python/distribute/parameter_server_strategy_v2.py | 306 | # In this example, we're assuming having 3 ps. | STRING |
| HIGH | tensorflow/examples/custom_ops_doc/sleep/sleep_op.py | 31 | # In this example, this Python function is a trivial wrapper for the C++ Op: | COMMENT |
| HIGH | …/examples/custom_ops_doc/multiplex_1/multiplex_1_op.py | 29 | # In this example, this Python function is a trivial wrapper for the C++ Op: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 94 | # Only keyword args are handled, so make sure to also put any function in | COMMENT |
| LOW | tensorflow/tools/compatibility/tf_upgrade_v2.py | 1386 | # - node, if node was modified in place (make sure to use | COMMENT |
| LOW | tensorflow/tools/api/tests/api_compatibility_test.py | 89 | # we make sure to resolve symbolic links before creating new files. | STRING |
| MEDIUM | …ernels/batching_util/adaptive_shared_batch_scheduler.h | 107 | // Lower bound for in_flight_batches_limit_. As discussed above, can be used | COMMENT |
| MEDIUM | tensorflow/python/keras/constraints.py | 40 | Here's a simple example of a non-negative weight constraint: | STRING |
| LOW | tensorflow/python/keras/engine/training.py | 2605 | # Also make sure to exclude Model class itself which has build() defined. | COMMENT |
| MEDIUM | tensorflow/python/keras/initializers/initializers_v2.py | 50 | Here's a simple example: a random normal initializer. | STRING |
| LOW | …orflow/python/checkpoint/sharding/sharding_policies.py | 217 | # If the tensor has already been sliced, make sure to keep track of its | COMMENT |
| MEDIUM | tensorflow/python/framework/test_combinations.py | 17 | Here is a simple example for testing various optimizers in Eager and Graph: | STRING |
| MEDIUM | tensorflow/python/framework/test_util.py | 4271 | For example, here is how you can measure how long `tf.linalg.matmul` runs: | STRING |
| MEDIUM | tensorflow/python/training/sync_replicas_optimizer.py | 107 | # Note that if you want to have 2 backup replicas, you can change | STRING |
| MEDIUM | tensorflow/python/distribute/cross_device_ops.py | 589 | Here is how you can use `ReductionToOneDevice` in | STRING |
| MEDIUM | tensorflow/python/distribute/cross_device_ops.py | 969 | Here is how you can use `NcclAllReduce` in `tf.distribute.MirroredStrategy`: | STRING |
| MEDIUM | tensorflow/python/distribute/cross_device_ops.py | 1011 | Here is how you can use `HierarchicalCopyAllReduce` in | STRING |
| MEDIUM | tensorflow/python/client/session.py | 173 | #then after invoking this register function, you can use as follows: | STRING |
| LOW | tensorflow/lite/python/lite.py | 1595 | # We make sure to clear the saved_model_dir as there is some | COMMENT |
| MEDIUM | .github/bot_config.yml | 86 | * The easiest way to use TF will be to switch to [google colab](https://colab.sandbox.google.com/notebooks/welc | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …/xla/tools/hlo_isolation/hlo_inf_nan_intent_analyzer.h | 48 | // numerical guardrails) rather than genuine numerical errors. | COMMENT |
| MEDIUM | third_party/xla/build_tools/ci/run_clang_tidy.sh | 79 | # TODO(sohaibiftikhar): Move the bash orchestration to python. | COMMENT |
| MEDIUM | tensorflow/python/training/monitored_session.py | 166 | # NOTE(touts): modifying the init function to be passed the scaffold is a | COMMENT |