Repository Analysis

tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

17.7 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of tensorflow/tensorflow, a C++ project with 196,650 GitHub stars. SynthScan v2.0 examined 2,482,628 lines of code across 11806 source files, recording 27714 pattern matches distributed across 25 syntactic categories. The overall adjusted score of 17.7 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

17.7
Adjusted Score
17.7
Raw Score
100%
Time Factor
2026-08-01
Last Push
196.7K
Stars
C++
Language
2.5M
Lines of Code
11.8K
Files
27.7K
Pattern Hits
2026-08-02
Scan Date
0.17
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 127HIGH 1928MEDIUM 4541LOW 21118

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 27714 distinct pattern matches across 25 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Decorative Section Separators3829 hits · 11545 pts
SeverityFileLineSnippetContext
MEDIUMconfigure.py14# ==============================================================================COMMENT
MEDIUMtools/tf_env_collect.sh15# ==============================================================================COMMENT
MEDIUMtools/tf_env_collect.sh54# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/tf_env_collect.sh56# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/tf_env_collect.sh86# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/tf_env_collect.sh88# ----------------------------------------------------------------------------COMMENT
MEDIUMtools/tf_env_collect.sh150 # ==========================================================================COMMENT
MEDIUMtools/tf_env_collect.sh152 # ==========================================================================COMMENT
MEDIUMtools/tf_env_collect.sh229 # ==========================================================================STRING
MEDIUMtools/tf_env_collect.sh231 # ==========================================================================STRING
MEDIUMtools/tf_env_collect.sh298 # ==========================================================================STRING
MEDIUMtools/tf_env_collect.sh300 # ==========================================================================STRING
MEDIUMtools/tf_env_collect.sh395# ----------------------------------------------------------------------------STRING
MEDIUMtools/tf_env_collect.sh397# ----------------------------------------------------------------------------STRING
MEDIUMci/official/code_check_full.sh15# ==============================================================================COMMENT
MEDIUMci/official/pycpp.sh15# ==============================================================================COMMENT
MEDIUMci/official/any.sh15# ==============================================================================COMMENT
MEDIUMci/official/wheel.sh15# ==============================================================================COMMENT
MEDIUMci/official/upload.sh15# ==============================================================================COMMENT
MEDIUMci/official/debug_tfci.sh15# ==============================================================================COMMENT
MEDIUMci/official/bisect.sh15# ==============================================================================COMMENT
MEDIUMci/official/code_check_changed_files.sh15# ==============================================================================COMMENT
MEDIUMci/official/utilities/cleanup_docker.sh15# ==============================================================================COMMENT
MEDIUMci/official/utilities/setup.sh15# ==============================================================================COMMENT
MEDIUMci/official/utilities/setup_docker.sh15# ==============================================================================COMMENT
MEDIUMci/official/utilities/generate_index_html.sh15# ==============================================================================COMMENT
MEDIUMci/official/utilities/windows.sh15# ==============================================================================COMMENT
MEDIUMci/official/utilities/cleanup_summary.sh15# ==============================================================================COMMENT
MEDIUM…/official/utilities/convert_msys_paths_to_win_paths.py15# ==============================================================================COMMENT
MEDIUMci/official/utilities/rename_and_verify_wheels.sh16# ==============================================================================COMMENT
MEDIUMci/official/utilities/extract_resultstore_links.py14# ==============================================================================COMMENT
MEDIUMci/official/utilities/setup_macos.sh15# ==============================================================================COMMENT
MEDIUMci/official/containers/ml_build/setup.sources.cudnn.sh16# ==============================================================================COMMENT
MEDIUMci/official/containers/ml_build/setup.sources.sh16# ==============================================================================COMMENT
MEDIUMci/official/containers/ml_build/setup.python.sh16# ==============================================================================COMMENT
MEDIUMci/official/containers/ml_build/setup.packages.sh16# ==============================================================================COMMENT
MEDIUM…/official/containers/ml_build/setup.toolchain.cmake.sh16# ==============================================================================COMMENT
MEDIUM…ial/containers/ml_build/builder.devtoolset/fixlinks.sh15# ==============================================================================COMMENT
MEDIUM…ainers/ml_build/builder.devtoolset/build_devtoolset.sh15# ==============================================================================COMMENT
MEDIUM…al/containers/ml_build/builder.devtoolset/rpm-patch.sh15# ==============================================================================COMMENT
MEDIUMthird_party/xla/xla/python_api/types_.py14# ======================================COMMENT
MEDIUMthird_party/xla/xla/python_api/xla_literal.py14# ======================================COMMENT
MEDIUMthird_party/xla/xla/python_api/xla_literal_test.py14# ======================================COMMENT
MEDIUMthird_party/xla/xla/python_api/xla_shape.py14# ======================================COMMENT
MEDIUMthird_party/xla/xla/python_api/xla_shape_test.py14# ======================================COMMENT
MEDIUM…ols/buffer_debug_log/check_thunk_output_consistency.py14# ==============================================================================COMMENT
MEDIUM…xla/tools/buffer_debug_log/checksum_mismatch_report.py14# ==============================================================================COMMENT
MEDIUM…ools/buffer_debug_log/checksum_mismatch_report_test.py14# ==============================================================================COMMENT
MEDIUM…_party/xla/xla/tools/benchmarks/json_to_tensorboard.py14# ============================================================================COMMENT
MEDIUM…y/xla/xla/tools/benchmarks/test_json_to_tensorboard.py14# ============================================================================COMMENT
MEDIUM…a/xla/tools/benchmarks/registries/default_registry.yml14# ============================================================================COMMENT
MEDIUM…/tools/benchmarks/bap/hlo_workload_executor/action.yml14# ============================================================================COMMENT
MEDIUM…/xla/tools/benchmarks/baseline/postsubmit_baseline.yml14# ============================================================================COMMENT
MEDIUM…xla/xla/tools/benchmarks/baseline/nightly_baseline.yml14# ============================================================================COMMENT
MEDIUM…a/tools/multihost_hlo_runner/python_hlo_runner_test.py14# ==============================================================================COMMENT
MEDIUMthird_party/xla/xla/python/xla_transform_test.py14# ==============================================================================COMMENT
MEDIUMthird_party/xla/xla/python/xla_client.py14# ==============================================================================COMMENT
MEDIUMthird_party/xla/xla/python/xla_compiler_test.py14# ==============================================================================COMMENT
MEDIUMthird_party/xla/xla/python/xla_hlo_test.py14# ==============================================================================COMMENT
MEDIUMthird_party/xla/xla/python/status_casters_test.py14# ==============================================================================COMMENT
3769 more matches not shown…
Over-Commented Block10343 hits · 10117 pts
SeverityFileLineSnippetContext
LOWconfigure.py1# Copyright 2017 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWrequirements_lock_3_14.txt1#COMMENT
LOWrequirements_lock_3_14.txt541 # ml-dtypesCOMMENT
LOWrequirements_lock_3_14.txt561 # -r ci/official/requirements_updater/nvidia-constraints.txtCOMMENT
LOWrequirements_lock_3_14.txt601 # viaCOMMENT
LOWrequirements_lock_3_14.txt641 # viaCOMMENT
LOWrequirements_lock_3_14.txt681 # viaCOMMENT
LOWrequirements_lock_3_14.txt721 --hash=sha256:ecd0a012051abc20c1aa87328841efa8cade3ced65803046e38c2f03c0891feaCOMMENT
LOWrequirements_lock_3_14.txt741 # -r ci/official/requirements_updater/nvidia-requirements.txtCOMMENT
LOWrequirements_lock_3_13.txt1#COMMENT
LOWrequirements_lock_3_13.txt441 --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \COMMENT
LOWrequirements_lock_3_13.txt601 # -r ci/official/requirements_updater/nvidia-constraints.txtCOMMENT
LOWrequirements_lock_3_13.txt621 --hash=sha256:edd81538446786ec3b73972543e53bb43bcaf0bfc8ef76cb679fcc390ffe136d \COMMENT
LOWrequirements_lock_3_13.txt641 --hash=sha256:e782564d705ff0bf61ac3e1bf730166da66dd2fe9012f111ede5fc49b64ae697 \COMMENT
LOWrequirements_lock_3_12.txt1#COMMENT
LOWrequirements_lock_3_12.txt441 --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \COMMENT
LOWrequirements_lock_3_12.txt601 # -r ci/official/requirements_updater/nvidia-constraints.txtCOMMENT
LOWrequirements_lock_3_12.txt621 --hash=sha256:edd81538446786ec3b73972543e53bb43bcaf0bfc8ef76cb679fcc390ffe136d \COMMENT
LOWrequirements_lock_3_12.txt641 --hash=sha256:e782564d705ff0bf61ac3e1bf730166da66dd2fe9012f111ede5fc49b64ae697 \COMMENT
LOWrequirements_lock_3_10.txt1#COMMENT
LOWrequirements_lock_3_10.txt441 --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \COMMENT
LOWrequirements_lock_3_10.txt601 # -r ci/official/requirements_updater/nvidia-constraints.txtCOMMENT
LOWrequirements_lock_3_10.txt621 --hash=sha256:edd81538446786ec3b73972543e53bb43bcaf0bfc8ef76cb679fcc390ffe136d \COMMENT
LOWrequirements_lock_3_10.txt641 --hash=sha256:98103729cc5226e13ca319a10bbf9433bbbd44ef64fe72f45f067cacc14b8d27 \COMMENT
LOWrequirements_lock_3_10.txt661 # viaCOMMENT
LOWrequirements_lock_3_11.txt1#COMMENT
LOWrequirements_lock_3_11.txt441 --hash=sha256:e6ecde441aaf0bb74ed538cfb3b18aa374f452aebf0162088bcb10942f7bbc33 \COMMENT
LOWrequirements_lock_3_11.txt601 # -r ci/official/requirements_updater/nvidia-constraints.txtCOMMENT
LOWrequirements_lock_3_11.txt621 --hash=sha256:edd81538446786ec3b73972543e53bb43bcaf0bfc8ef76cb679fcc390ffe136d \COMMENT
LOWrequirements_lock_3_11.txt641 # viaCOMMENT
LOWrequirements_lock_3_11.txt1081 # viaCOMMENT
LOWtools/tf_env_collect.sh1#!/usr/bin/env bashCOMMENT
LOWci/official/code_check_full.sh1#!/bin/bashCOMMENT
LOWci/official/pycpp.sh1#!/bin/bashCOMMENT
LOWci/official/any.sh1#!/bin/bashCOMMENT
LOWci/official/any.sh21# export TF_ANY_TARGETS="quoted list of targets, like on the command line"COMMENT
LOWci/official/wheel.sh1#!/bin/bashCOMMENT
LOWci/official/README.md41COMMENT
LOWci/official/README.md61# "public_cache,disk_cache".COMMENT
LOWci/official/README.md81# Ex. rbe -- Use RBE for faster builds (Googlers only; see below)COMMENT
LOWci/official/README.md101COMMENT
LOWci/official/README.md121# to transfer ownership to your user.COMMENT
LOWci/official/upload.sh1#!/bin/bashCOMMENT
LOWci/official/debug_tfci.sh1#!/bin/bashCOMMENT
LOWci/official/bisect.sh1#!/bin/bashCOMMENT
LOWci/official/bisect.sh21# TF_BISECT_BAD: First bad commit (e.g. commit from the first failing job)COMMENT
LOWci/official/code_check_changed_files.sh1#!/bin/bashCOMMENT
LOWci/official/utilities/cleanup_docker.sh1#!/bin/bashCOMMENT
LOWci/official/utilities/setup.sh1#!/bin/bashCOMMENT
LOWci/official/utilities/setup.sh21# specifically. Use your best judgment to keep the scripts in this directoryCOMMENT
LOWci/official/utilities/setup.sh41# "TFCI" may optionally be set to the name of an env-type file with TFCICOMMENT
LOWci/official/utilities/setup.sh101 source ./ci/official/utilities/setup_macos.shCOMMENT
LOWci/official/utilities/setup_docker.sh1#!/bin/bashCOMMENT
LOWci/official/utilities/generate_index_html.sh1#!/bin/bashCOMMENT
LOWci/official/utilities/windows.sh1#!/bin/bashCOMMENT
LOWci/official/utilities/cleanup_summary.sh1#!/bin/bashCOMMENT
LOW…/official/utilities/convert_msys_paths_to_win_paths.py1#!/usr/bin/python3COMMENT
LOWci/official/utilities/rename_and_verify_wheels.sh1#!/usr/bin/env bashCOMMENT
LOWci/official/utilities/extract_resultstore_links.py1# Copyright 2023 The TensorFlow Authors. All Rights Reserved.COMMENT
LOWci/official/utilities/setup_macos.sh1#!/bin/bashCOMMENT
10283 more matches not shown…
Docstring Block Structure1620 hits · 7780 pts
SeverityFileLineSnippetContext
HIGHconfigure.py279Get boolean input from user. If var_name is not set in env, ask user to enable query_item or not. If the response iSTRING
HIGHconfigure.py551Loop over user prompts for an ENV param until receiving a valid response. For the env param var_name, read from the eSTRING
HIGH…rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py219Passes `input_stream` through an optimizer; output is another stream. Args: input_stream: An iterator over the liSTRING
HIGH…rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py301Returns the next item in the sub-stream corresponding to `target_buffer`. Args: target_buffer: The queue backSTRING
HIGHthird_party/xla/build_tools/configure/configure.py62Finds executable and resolves symlinks or raises RuntimeError. Resolving symlinks is sometimes necessary for finding STRING
HIGHthird_party/xla/build_tools/ci/clang_tidy_diff.py306Parses a Bazel BEP JSON file and returns a list of paths to .clang-tidy.yaml files. Args: bep_path: Path to the BSTRING
HIGHthird_party/xla/.github/workflows/github_api.py39Helper method to make a request and raise an HTTPError if one occurred. Arguments: verb: The HTTP verb to useSTRING
HIGHtensorflow/dtensor/python/dtensor_device.py122Packs tensors into a DTensor handle on this DTensor device. Packing and unpacking are inverse operations: ``` STRING
HIGHtensorflow/dtensor/python/dtensor_device.py169Unpacks a DTensor handle on this DTensor device. Packing and unpacking are inverse operations: ``` * unpacSTRING
HIGHtensorflow/dtensor/python/dtensor_device.py215Fetches the layout of the DTensor. Args: dtensor: The DTensor whose layout is to be fetched. Returns: STRING
HIGHtensorflow/dtensor/python/dtensor_device.py243Check whether the input tensor is a DTensor. In Python, a DTensor has the same type as a `tf.Tensor`. This method wSTRING
HIGHtensorflow/dtensor/python/api.py193Packs `tf.Tensor` components into a DTensor. Packing and unpacking are inverse operations: ``` * unpack(pack(tenSTRING
HIGHtensorflow/dtensor/python/api.py344Unpacks a DTensor into `tf.Tensor` components. Packing and unpacking are inverse operations: ``` * unpack(pack(tSTRING
HIGHtensorflow/dtensor/python/api.py381Fetches the layout of a DTensor. Args: tensor: The DTensor whose layout is to be fetched. Returns: The `LaSTRING
HIGHtensorflow/dtensor/python/tpu_util.py381Enumerates all possible core locations under the axis iteration order. Args: bounds: A list of 4 positive integerSTRING
HIGHtensorflow/tools/test/run_and_gather_logs_lib.py99Run 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.py30Compare two versions and return information on which is smaller vs. larger. Args: v1: String that is a version toSTRING
HIGH…orflow/tools/api/lib/python_object_to_proto_visitor.py265Get an ArgSpec string from a pybind11-style docstring. For example: `foo_function(a: int, *args, **kwargs) -> None` STRING
HIGHtensorflow/tools/git/gen_git_source.py35Given a filename of a .git/HEAD file return ref path. In particular, if git is in detached head state, this will reSTRING
HIGHtensorflow/core/function/capture/capture_container.py91Captures `tensor` if it's external to this graph. If `tensor` is from a different graph, returns a placeholder for STRING
HIGHtensorflow/core/function/capture/restore_captures.py35Resolves a saved model graph node into a tensor to be captured. Args: node: a tensor, variable, or resource to beSTRING
HIGHtensorflow/python/autograph/impl/api.py709Converts a Python entity into a TensorFlow graph. Also see: `tf.autograph.to_code`, `tf.function`. Unlike `tf.funcSTRING
HIGHtensorflow/python/autograph/impl/api.py785Converts a Python entity into a TensorFlow graph. Also see: `tf.autograph.to_code`, `tf.function`. Unlike `tf.funcSTRING
HIGH…nsorflow/python/autograph/operators/data_structures.py168The list append function. Note: it is unspecified where list_ will be mutated or not. If list_ is a TensorFlow entiSTRING
HIGH…nsorflow/python/autograph/operators/data_structures.py232The list pop function. Note: it is unspecified where list_ will be mutated or not. If list_ is a TensorFlow entity,STRING
HIGHtensorflow/python/autograph/operators/exceptions.py23Functional form of an assert statement. This follows the semantics of the Python assert statement, however the concSTRING
HIGHtensorflow/python/autograph/operators/slices.py35The slice read operator (i.e. __getitem__). Note: it is unspecified whether target will be mutated or not. In generalSTRING
HIGHtensorflow/python/autograph/operators/slices.py97The slice write operator (i.e. __setitem__). Note: it is unspecified whether target will be mutated or not. In generaSTRING
HIGHtensorflow/python/autograph/converters/directives.py52Maps AST call nodes to the actual function's arguments. Args: call_node: ast.Call function: Callable[..., AnySTRING
HIGHtensorflow/python/autograph/utils/misc.py25Wraps any Tensor arguments with an identity op. Any other argument, including Variables, is returned unchanged. ArSTRING
HIGHtensorflow/python/autograph/utils/type_registry.py46Looks up 'obj'. Args: obj: The object to lookup within the registry. Returns: Value for 'obj' in tSTRING
HIGHtensorflow/python/autograph/lang/special_functions.py57Creates an tensor list and populates it with the given elements. This function provides a more uniform access to tensSTRING
HIGHtensorflow/python/autograph/lang/special_functions.py89Stacks the input, if it admits the notion of stacking. For example, a list of tensors can be stacked into a larger teSTRING
HIGHtensorflow/python/autograph/pyct/inspect_utils.py233Resolves a function's owner, e.g. a method's class. Note that this returns the object that the function was retrieSTRING
HIGHtensorflow/python/autograph/pyct/ast_util.py280Walks two ASTs in parallel. The two trees must have identical structure. Args: node: Union[ast.AST, Iterable[aSTRING
HIGHtensorflow/python/autograph/pyct/parser.py343Returns the AST of given identifier. Args: src: A piece of code that represents a single Python expression RetuSTRING
HIGHtensorflow/python/autograph/pyct/transpiler.py267Transforms a Python object. Users typically call this method. Args: obj: A Python object, function, typeSTRING
HIGHtensorflow/python/autograph/pyct/templates.py231Replaces placeholders in a Python template. AST Name and Tuple nodes always receive the context that inferred from STRING
HIGHtensorflow/python/keras/metrics.py3614Retrieves a Keras metric as a `function`/`Metric` class instance. The `identifier` may be the string name of a metricSTRING
HIGHtensorflow/python/keras/backend.py472Provides a scope within which the learning phase is equal to `value`. The learning phase gets restored to its originaSTRING
HIGHtensorflow/python/keras/backend.py499An internal-only version of `learning_phase_scope`. Unlike the public method, this method does not raise a deprecatioSTRING
HIGHtensorflow/python/keras/backend.py553Internal scope that sets the learning phase in eager / tf.function only. Args: value: Learning phase value, eitSTRING
HIGHtensorflow/python/keras/backend.py617Returns the appropriate graph to use for the given inputs. This library method provides a consistent algorithm for chSTRING
HIGHtensorflow/python/keras/backend.py855Check if the current device is explicitly set on the device type specified. Args: device_type: A string containSTRING
HIGHtensorflow/python/keras/backend.py969Converts a sparse tensor into a dense tensor and returns it. Args: tensor: A tensor instance (potentially sparsSTRING
HIGHtensorflow/python/keras/backend.py1024Instantiates a variable and returns it. Args: value: Numpy array, initial value of the tensor. dtype: TenSTRING
HIGHtensorflow/python/keras/backend.py1205Returns whether `x` is a Keras tensor. A "Keras tensor" is a tensor that was returned by a Keras layer, (`Layer` clSTRING
HIGHtensorflow/python/keras/backend.py1264Instantiates a placeholder tensor and returns it. Args: shape: Shape of the placeholder (integer tuplSTRING
HIGHtensorflow/python/keras/backend.py1376Returns the symbolic shape of a tensor or variable. Args: x: A tensor or variable. Returns: A symbolicSTRING
HIGHtensorflow/python/keras/backend.py1400Returns the shape of tensor or variable as a tuple of int or None entries. Args: x: Tensor or variable. RetuSTRING
HIGHtensorflow/python/keras/backend.py1430Returns the number of axes in a tensor, as an integer. Args: x: Tensor or variable. Returns: Integer (STRING
HIGHtensorflow/python/keras/backend.py1456Returns the dtype of a Keras tensor or variable, as a string. Args: x: Tensor or variable. Returns: StSTRING
HIGHtensorflow/python/keras/backend.py1501Evaluates the value of a variable. Args: x: A variable. Returns: A Numpy array. Examples: >>> kvSTRING
HIGHtensorflow/python/keras/backend.py1790Casts a tensor to a different dtype and returns it. You can cast a Keras variable but it still returns a Keras tensorSTRING
HIGHtensorflow/python/keras/backend.py1905Multiplies 2 tensors (and/or variables) and returns a tensor. This operation corresponds to `numpy.dot(a, b, out=NoneSTRING
HIGHtensorflow/python/keras/backend.py1971Batchwise dot product. `batch_dot` is used to compute dot product of `x` and `y` when `x` and `y` are data in batchSTRING
HIGHtensorflow/python/keras/backend.py2160Transposes a tensor and returns it. Args: x: Tensor or variable. Returns: A tensor. Examples: >>STRING
HIGHtensorflow/python/keras/backend.py2192Retrieves the elements of indices `indices` in the tensor `reference`. Args: reference: A tensor. indicesSTRING
HIGHtensorflow/python/keras/backend.py2721Element-wise maximum of two tensors. Args: x: Tensor or variable. y: Tensor or variable. Returns: STRING
HIGHtensorflow/python/keras/backend.py3085Resizes the images contained in a 4D tensor. Args: x: Tensor or variable to resize. height_factor: PositiSTRING
1560 more matches not shown…
Hyper-Verbose Identifiers6697 hits · 6207 pts
SeverityFileLineSnippetContext
LOWconfigure.py118def write_action_env_to_bazelrc(var_name, var):CODE
LOWconfigure.py122def write_repo_env_to_bazelrc(config_name, var_name, var):CODE
LOWconfigure.py253def reset_tf_configure_bazelrc():CODE
LOWconfigure.py515def get_from_env_or_user_or_default(environ_cp, var_name, ask_for_var,CODE
LOWconfigure.py542def prompt_loop_or_load_from_env(environ_cp,CODE
LOWconfigure.py608def set_clang_cuda_compiler_path(environ_cp):CODE
LOWconfigure.py777def set_gcc_host_compiler_path(environ_cp):CODE
LOWconfigure.py863def set_clang_compiler_path_win(environ_cp):CODE
LOWconfigure.py939def disable_clang_offsetof_extension(clang_version):CODE
LOWconfigure.py944def set_hermetic_cuda_version(environ_cp):CODE
LOWconfigure.py960def set_hermetic_cudnn_version(environ_cp):CODE
LOWconfigure.py976def set_hermetic_cuda_compute_capabilities(environ_cp):CODE
LOWconfigure.py1074def system_specific_test_config(environ_cp):CODE
LOW…ols/buffer_debug_log/check_thunk_output_consistency.py33def parse_binary_or_text_proto(data: bytes, proto_type):CODE
LOW…xla/tools/buffer_debug_log/checksum_mismatch_report.py182def _find_inconsistent_output_checksums(CODE
LOW…xla/tools/buffer_debug_log/checksum_mismatch_report.py210def _find_inconsistent_thunks(CODE
LOW…ools/buffer_debug_log/checksum_mismatch_report_test.py25 def test_from_protos_loads_metadata(self):CODE
LOW…ools/buffer_debug_log/checksum_mismatch_report_test.py71 def test_from_protos_finds_mismatches_in_single_proto(self):STRING
LOW…ools/buffer_debug_log/checksum_mismatch_report_test.py129 def test_from_protos_finds_mismatches_in_multiple_protos(self):STRING
LOW…ools/buffer_debug_log/checksum_mismatch_report_test.py180 def test_from_protos_does_not_include_consistent_executions(self):STRING
LOW…a/tools/multihost_hlo_runner/python_hlo_runner_test.py28def _register_transformer_engine_custom_calls():CODE
LOWthird_party/xla/xla/python/xla_transform_test.py23 def test_register_hlo_xla_transform(self):CODE
LOWthird_party/xla/xla/python/xla_transform_test.py34 def test_core_assignment_unimplemented_on_cpu(self):CODE
LOWthird_party/xla/xla/python/xla_client.py131def current_source_info_metadata(op_type=None, op_name=None, skip_frames=1):CODE
LOWthird_party/xla/xla/python/xla_client.py166def window_padding_type_to_pad_values(CODE
LOWthird_party/xla/xla/python/xla_client.py265def make_dot_dimension_numbers(CODE
LOWthird_party/xla/xla/python/xla_client.py321def make_convolution_dimension_numbers(CODE
LOWthird_party/xla/xla/python/xla_client.py437def _make_replica_group_proto(replica_group):CODE
LOWthird_party/xla/xla/python/xla_client.py454def get_backend_config_string(instruction_proto, module_proto=None) -> str:CODE
LOWthird_party/xla/xla/python/profile_data_test.py22 def test_find_plane_with_name(self):CODE
LOWthird_party/xla/xla/python/profile_data_test.py160 def test_visit_event_missing_metadata(self):STRING
LOWthird_party/xla/xla/python/profile_data_test.py196 def test_create_profile_data_from_file(self):STRING
LOW…ird_party/xla/xla/python/profiler/profile_data_test.py23 def test_find_plane_with_name(self):CODE
LOW…ird_party/xla/xla/python/profiler/profile_data_test.py161 def test_visit_event_missing_metadata(self):STRING
LOW…ird_party/xla/xla/python/profiler/profile_data_test.py197 def test_create_profile_data_from_file(self):STRING
LOW…arty/xla/xla/tsl/lib/io/zip_writer_integration_test.py27 def test_generated_zip_validity(self):CODE
LOW…rty/xla/xla/backends/gpu/codegen/tools/ncu_rep_test.py23 def test_get_metrics_by_kernel(self):CODE
LOW…rty/xla/xla/backends/gpu/codegen/tools/ncu_rep_test.py47 def test_aggregate_kernel_metrics(self):CODE
LOW…rty/xla/xla/backends/gpu/codegen/tools/ncu_rep_test.py107 def test_write_metrics_markdown(self):CODE
LOW…ackends/cpu/codegen/computation_kernel_emitter_test.py30def create_trivial_add_computation(CODE
LOW…la/backends/cpu/codegen/scatter_kernel_emitter_test.py28def create_sclar_add_computation(CODE
LOW…la/backends/cpu/codegen/scatter_kernel_emitter_test.py204 def test_out_of_bounds_scatter(self):CODE
LOW…ty/xla/xla/backends/cpu/codegen/fusion_emitter_test.py206 def test_constant_with_layout(self):STRING
LOW…la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py274 def test_dot_fusion_single_tile(self):STRING
LOW…la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py412 def test_reduction_outer_inner(self):STRING
LOW…la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py445 def test_reduction_unsigned_add(self):STRING
LOW…la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py477 def test_broadcast_in_dim_inner(self):STRING
LOW…la/xla/backends/cpu/codegen/tiled/tiled_kernel_test.py502 def test_broadcast_in_dim_outer(self):STRING
LOW…la/backends/cpu/codegen/dot/dot_kernel_emitter_test.py132 def test_matrix_multiplication(self, emitter_type, shapes, dtype):CODE
LOW…ackends/cpu/benchmarks/e2e/gemma2/flax_2b/benchmark.py52def benchmark_generation_time(output_token_len):CODE
LOW…ackends/cpu/benchmarks/e2e/gemma2/flax_2b/benchmark.py73def display_benchmark_results(timer_list, metric_name):CODE
LOW…ends/cpu/benchmarks/e2e/gemma2/pytorch_2b/benchmark.py60def benchmark_generation_time(output_token_len):CODE
LOW…ends/cpu/benchmarks/e2e/gemma2/pytorch_2b/benchmark.py85def display_benchmark_results(timer_list, metric_name):CODE
LOW…/backends/cpu/testlib/elemental_kernel_emitter_test.py120 def test_elemental_kernel_emitter(CODE
LOW…/backends/cpu/testlib/elemental_kernel_emitter_test.py206 def test_elemental_comparision_kernel_emitter(self, op_def, shape, dtype):CODE
LOW…rty/xla/xla/backends/cpu/testlib/kernel_runner_test.py28 def test_llvm_ir_kernel_runner(self):CODE
LOWthird_party/xla/xla/mlir_hlo/tests/python/attributes.py39def test_comparison_direction_attr():CODE
LOWthird_party/xla/xla/mlir_hlo/tests/python/attributes.py47def test_comparison_type_attr():CODE
LOWthird_party/xla/xla/mlir_hlo/tests/python/attributes.py55def test_conv_dimension_numbers():CODE
LOWthird_party/xla/xla/mlir_hlo/tests/python/attributes.py81def test_dequantize_mode_attr():CODE
6637 more matches not shown…
Self-Referential Comments549 hits · 1374 pts
SeverityFileLineSnippetContext
MEDIUMtools/tf_env_collect.sh128# Create a string of HEADER_WIDTH "=" charactersCOMMENT
MEDIUM…ainers/ml_build/builder.devtoolset/build_devtoolset.sh159# Create the devtoolset libstdc++ linkerscript that links dynamically againstCOMMENT
MEDIUM…la/backends/cpu/benchmarks/e2e/gemma2/flax_2b/setup.sh26 # Create a virtual environmentCOMMENT
MEDIUM…backends/cpu/benchmarks/e2e/gemma2/pytorch_2b/setup.sh27 # Create a virtual environmentCOMMENT
MEDIUM…y/xla/tools/ci_build/gpu_build/parallel_gpu_execute.sh27# This function is used below in rlocation to check that a path is absoluteCOMMENT
MEDIUMthird_party/xla/build_tools/ci/parallel_gpu_execute.sh27# This function is used below in rlocation to check that a path is absoluteCOMMENT
MEDIUM…ird_party/xla/build_tools/rocm/parallel_gpu_execute.sh36# This function is used below in rlocation to check that a path is absoluteCOMMENT
MEDIUM…d_party/xla/.github/workflows/postsubmit_benchmark.yml142 # Create the output directory; scripts will assume it existsCOMMENT
MEDIUM…ird_party/xla/.github/workflows/nightly_benchmarks.yml117 # Create the output directory; scripts will assume it existsCOMMENT
MEDIUM…y/xla/.github/workflows/benchmarks/prepare_artifact.sh26# Create the directory HERE, inside this script, right before using it.COMMENT
MEDIUMtensorflow/dtensor/python/__init__.py17# This file is left empty intentionally.COMMENT
MEDIUMtensorflow/dtensor/python/tpu_util.py193 # Create a one-time use mesh and layout just for merging core IDs.COMMENT
MEDIUMtensorflow/dtensor/python/tpu_util.py780 # Create the mesh by manually specifying local_device_ids.COMMENT
MEDIUM…low/dtensor/python/tests/tpu_device_assignment_test.py525 # Create a 4x8 mesh on a 4x4 DF slice, disallowing splitting hosts.COMMENT
MEDIUM…low/dtensor/python/tests/tpu_device_assignment_test.py567 # Create a 4x8 mesh on a 4x4 DF slice with at most 2, 2, 1, 2 devices fromCOMMENT
MEDIUM…low/dtensor/python/tests/tpu_device_assignment_test.py610 # Create a 4x8 mesh on a 4x4 DF slice, allowing splitting hosts.COMMENT
MEDIUM…low/dtensor/python/tests/tpu_device_assignment_test.py652 # Create a 2x64 mesh on a 4x4x4 PF slice, allowing splitting hosts.COMMENT
MEDIUM…sorflow/dtensor/python/tests/multi_client_test_util.py143 # The following function call never returns.COMMENT
MEDIUMtensorflow/dtensor/python/tests/rng_test.py50# Create a random local IDs to make tests more challenging.COMMENT
MEDIUMtensorflow/dtensor/python/tests/multi_client_test.py84 # Initialize DTensor variables.COMMENT
MEDIUMtensorflow/dtensor/python/tests/collective_test.py252 # Create a 2x4 batch-sharded d-tensor, with batch IDs in its first columnCOMMENT
MEDIUMtensorflow/dtensor/python/tests/collective_test.py259 # Create a 4x4 y-sharded d-tensor filled with ones.COMMENT
MEDIUMtensorflow/dtensor/python/tests/mnist_test.py134 # Initialize DTensor variables.COMMENT
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py509 # Create a mesh on the main test process. The tensor components returnedCOMMENT
MEDIUMtensorflow/tools/compatibility/ast_edits.py866 """This class represents an analysis result and how it should be logged.STRING
MEDIUMtensorflow/tools/compatibility/ast_edits.py1143 # Create a link to the new location of the target fileCOMMENT
MEDIUMtensorflow/tools/proto_splitter/split_graph_def.py237 # Create a new GraphDef chunk if the current list of nodes is too large.COMMENT
MEDIUMtensorflow/tools/proto_splitter/python/saved_model.py44 # Create a chunk for the GraphDef, and ensure the GraphDef is merged inCOMMENT
MEDIUM…nsorflow/tools/ci_build/devtoolset/build_devtoolset.sh159# Create the devtoolset libstdc++ linkerscript that links dynamically againstCOMMENT
MEDIUM…ow/tools/ci_build/linux/mkl/install_openmpi_horovod.sh46# Create a wrapper for OpenMPI to allow running as root by defaultCOMMENT
MEDIUMtensorflow/tools/ci_build/windows/bazel/cpu_win_test.sh186# Define the batch script contentCOMMENT
MEDIUM…rflow/tools/ci_build/gpu_build/parallel_gpu_execute.sh27# This function is used below in rlocation to check that a path is absoluteCOMMENT
MEDIUMtensorflow/tools/test/upload_test_benchmarks.py154 # Create the Test Entity containing all the test information as aCOMMENT
MEDIUM…ls/tensorflow_builder/compat_checker/compat_checker.py439 # Create a _Reqs() instance for each rule and store it underCOMMENT
MEDIUM…ild_dockerfiles/builder.devtoolset/build_devtoolset.sh159# Create the devtoolset libstdc++ linkerscript that links dynamically againstCOMMENT
MEDIUM…orflow/tools/api/lib/python_object_to_proto_visitor.py419 # Create a module object.COMMENT
MEDIUM…/tools/graph_transforms/python/transform_graph_test.py51 # Create an add that has two constants as inputs.COMMENT
MEDIUM…/tools/graph_transforms/python/transform_graph_test.py59 # Create a relu that reads from the add.COMMENT
MEDIUMtensorflow/core/function/transform/transform.py222 # Create a new FuncGraph from the modified FunctionDef.COMMENT
MEDIUM…core/tfrt/saved_model/tests/gen_hash_table_asset_v1.py59 # Create the graphCOMMENT
MEDIUM…core/tfrt/saved_model/tests/gen_sparse_tensor_input.py41 # Create the graphCOMMENT
MEDIUMtensorflow/core/tfrt/saved_model/tests/gen_pow.py40 # Create the graphCOMMENT
MEDIUMtensorflow/core/tfrt/saved_model/tests/gen_error_v1.py39 # Create the graphCOMMENT
MEDIUM…flow/core/tfrt/saved_model/tests/gen_saved_model_v1.py42 # Create the graphCOMMENT
MEDIUM…re/tfrt/saved_model/tests/gen_ref_type_tensor_input.py42 # Create the graphCOMMENT
MEDIUM…/core/tfrt/saved_model/tests/gen_resource_gather_v1.py40 # Create the graphCOMMENT
MEDIUM…w/core/tfrt/saved_model/tests/gen_dtype_coverage_v1.py39 # Create the graphCOMMENT
MEDIUMtensorflow/core/tfrt/saved_model/tests/gen_while_v1.py42 # Create the graphCOMMENT
MEDIUMtensorflow/core/tfrt/saved_model/tests/gen_if_v1.py44 # Create the graphCOMMENT
MEDIUM…untime_fallback/test/saved_model/gen_saved_model_v1.py42 # Create the graphCOMMENT
MEDIUMtensorflow/python/__init__.py18# This file is imported whenever TensorFlow is imported.COMMENT
MEDIUMtensorflow/python/autograph/operators/__init__.py15"""This module implements operators that AutoGraph overloads.STRING
MEDIUM…rflow/python/autograph/converters/control_flow_test.py305 # This class is ok to be in a tf.while's state.COMMENT
MEDIUMtensorflow/python/autograph/pyct/parser.py247 # This method is more robust that just calling inspect.getsource(mod), as itCOMMENT
MEDIUMtensorflow/python/autograph/pyct/origin_info_test.py57 # Creating a source map with the source code as output will createSTRING
MEDIUMtensorflow/python/keras/backend.py168# The below functions are kept accessible from backend for compatibility.COMMENT
MEDIUMtensorflow/python/keras/backend.py310 # Create the learning phase placeholder in graph using the default factory.COMMENT
MEDIUMtensorflow/python/keras/models.py422 # Create a test Sequential model.STRING
MEDIUMtensorflow/python/keras/models.py428 # Create a copy of the test model (with freshly initialized weights).STRING
MEDIUMtensorflow/python/keras/layers/recurrent.py2545 # Create a layer composed sequentially of the peephole LSTM cells.STRING
489 more matches not shown…
Hallucination Indicators127 hits · 1355 pts
SeverityFileLineSnippetContext
CRITICALRELEASE.md771* Remove the `tf.keras.dtensor.experimental.layout_map_scope()`. You can user the `tf.keras.dtensor.experimental.LayouCOMMENT
CRITICALRELEASE.md2913 tf.distribute.experimental.rpc.Server.create("grpc", "127.0.0.1:1234")CODE
CRITICALRELEASE.md2921 tf.distribute.experimental.rpc.Client.create("grpc", address) a =CODE
CRITICAL…rty/xla/xla/backends/gpu/tests/gpu_pjrt_codegen_test.h112 return "void @llvm.nvvm.barrier.cta.sync.aligned.all(i32 0)";CODE
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py520 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py529 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py539 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py549 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py585 "tf.compat.v1.keras.initializers.VarianceScaling(scale=2.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py594 "tf.compat.v1.keras.initializers.VarianceScaling(scale=2.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py603 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0)\n",STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py611 "tf.compat.v1.keras.initializers.VarianceScaling(12.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py1764 expected_text = ("tf.compat.v1.keras.initializers.VarianceScaling("STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py1770 expected_text = ("tf.compat.v1.keras.initializers.VarianceScaling("STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py560 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py572 "tf.compat.v1.keras.initializers.VarianceScaling(scale=1.0, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2_test.py1043 "tf.compat.v1.keras.experimental.export_saved_model(model, "STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2.py808 "tf.compat.v2.summary.experimental.write_raw_pb() which also accepts "CODE
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2.py2056 tf.compat.v1.keras.initializers.VarianceScaling(STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2.py2086 tf.compat.v1.keras.initializers.VarianceScaling(STRING
CRITICALtensorflow/tools/compatibility/tf_upgrade_v2.py2166 tf.compat.v1.keras.initializers.VarianceScaling(STRING
CRITICALtensorflow/python/keras/mixed_precision/policy.py118 casting behavior with `tf.compat.v1.keras.layers.enable_v2_dtype_behavior()`.STRING
CRITICALtensorflow/python/keras/mixed_precision/policy.py497 '"tf.compat.v1.keras.layers.enable_v2_dtype_behavior()"')CODE
CRITICAL…w/python/keras/mixed_precision/loss_scale_optimizer.py924 >>> loss_scale = tf.compat.v1.mixed_precision.experimental.DynamicLossScale(STRING
CRITICALtensorflow/python/keras/legacy_tf_layers/base.py65 self.rnn = tf.compat.v1.nn.rnn_cell.MultiRNNCell(STRING
CRITICALtensorflow/python/keras/legacy_tf_layers/base.py66 [tf.compat.v1.nn.rnn_cell.LSTMCell(64) for _ in range(2)])STRING
CRITICALtensorflow/python/keras/engine/base_layer.py2906 self.__class__._call_full_argspec.fget.cache.pop(self, None)CODE
CRITICALtensorflow/python/keras/engine/base_layer.py2907 self.__class__._call_fn_args.fget.cache.pop(self, None)CODE
CRITICALtensorflow/python/keras/engine/base_layer.py2908 self.__class__._call_accepts_kwargs.fget.cache.pop(self, None)CODE
CRITICAL…orflow/python/keras/engine/base_preprocessing_layer.py199 >>> layer = tf.keras.layers.experimental.preprocessing.Normalization(STRING
CRITICAL…orflow/python/keras/engine/base_preprocessing_layer.py212 >>> layer = tf.keras.layers.experimental.preprocessing.Normalization(STRING
CRITICALtensorflow/python/keras/engine/base_layer_v1.py2280 self.__class__._call_full_argspec.fget.cache.pop(self, None)CODE
CRITICALtensorflow/python/keras/engine/base_layer_v1.py2281 self.__class__._call_fn_args.fget.cache.pop(self, None)CODE
CRITICALtensorflow/python/keras/engine/base_layer_v1.py2282 self.__class__._call_accepts_kwargs.fget.cache.pop(self, None)CODE
CRITICALtensorflow/python/saved_model/loader_impl.py334 tf.compat.v1.saved_model.loader.load(sess, ["foo-tag"], export_dir)STRING
CRITICALtensorflow/python/saved_model/loader.py36builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(export_dir)STRING
CRITICALtensorflow/python/saved_model/loader.py56 tf.compat.v1.saved_model.loader.load(sess, ["foo-tag"], export_dir)STRING
CRITICALtensorflow/python/saved_model/method_name_updater.py41 updater = tf.compat.v1.saved_model.signature_def_utils.MethodNameUpdater(STRING
CRITICALtensorflow/python/training/saver.py702 To replace, `tf.compat.v1.train.Saver.save(write_meta_graph=True)`, useSTRING
CRITICALtensorflow/python/distribute/distribute_lib.py770 self._context.strategy.extended._lazy_variable_tracker.initialize_all()CODE
CRITICAL…nsorflow/python/distribute/experimental/rpc/rpc_ops.py84 >>> server = tf.distribute.experimental.rpc.Server.create("grpc", address)STRING
CRITICAL…nsorflow/python/distribute/experimental/rpc/rpc_ops.py179 >>> server = tf.distribute.experimental.rpc.Server.create("grpc", address)STRING
CRITICAL…nsorflow/python/distribute/experimental/rpc/rpc_ops.py184 >>> client = tf.distribute.experimental.rpc.Client.create("grpc",STRING
CRITICALtensorflow/python/distribute/coordinator/values.py160 `tf.distribute.experimental.coordinator.ClusterCoordinator.schedule()`, theSTRING
CRITICALtensorflow/python/ops/init_ops.py192 >>> initializer = tf.compat.v1.keras.initializers.ones()STRING
CRITICALtensorflow/python/ops/rnn.py525 rnn_cell = tf.compat.v1.nn.rnn_cell.BasicRNNCell(hidden_size)STRING
CRITICALtensorflow/python/ops/rnn.py540 rnn_layers = [tf.compat.v1.nn.rnn_cell.LSTMCell(size) for size in [128, 256]]STRING
CRITICALtensorflow/python/ops/rnn.py543 multi_rnn_cell = tf.compat.v1.nn.rnn_cell.MultiRNNCell(rnn_layers)STRING
CRITICALtensorflow/python/ops/rnn.py643 rnn_layers = [tf.compat.v1.nn.rnn_cell.LSTMCell(size) for size in [128, 256]]STRING
CRITICALtensorflow/python/ops/rnn.py646 multi_rnn_cell = tf.compat.v1.nn.rnn_cell.MultiRNNCell(rnn_layers)STRING
CRITICALtensorflow/python/ops/rnn.py1045 cell = tf.compat.v1.nn.rnn_cell.LSTMCell(num_units)STRING
CRITICAL…flow/python/eager/benchmarks/resnet50/resnet50_test.py197 tf.compat.v2.summary.experimental.set_step(CODE
CRITICALtensorflow/security/advisory/tfsa-2021-161.md28 converter = tf.compat.v1.lite.TFLiteConverter.from_session(sess, [params, indices], [out])CODE
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md9* `tf.compat.v1.lite.TFLiteConverter.from_saved_model()`: Converts aCOMMENT
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md11* `tf.compat.v1.lite.TFLiteConverter.from_keras_model_file()`: Converts aCOMMENT
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md13* `tf.compat.v1.lite.TFLiteConverter.from_session()`: Converts a GraphDef fromCOMMENT
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md15* `tf.compat.v1.lite.TFLiteConverter.from_frozen_graph()`: Converts a FrozenCOMMENT
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md37converter = tf.compat.v1.lite.TFLiteConverter.from_saved_model(saved_model_dir)CODE
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md55converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file('keras_model.h5')CODE
CRITICALtensorflow/lite/g3doc/r1/convert/python_api.md90converter = tf.compat.v1.lite.TFLiteConverter.from_keras_model_file(keras_file)CODE
67 more matches not shown…
Deep Nesting1495 hits · 1283 pts
SeverityFileLineSnippetContext
LOWconfigure.py258CODE
LOWconfigure.py272CODE
LOWconfigure.py976CODE
LOWconfigure.py1074CODE
LOWconfigure.py1189CODE
LOWci/official/utilities/extract_resultstore_links.py73CODE
LOWthird_party/xla/xla/python/xla_hlo_test.py30CODE
LOWthird_party/xla/xla/python/xla_hlo_test.py246CODE
LOWthird_party/xla/xla/python/xla_hlo_test.py440CODE
LOWthird_party/xla/xla/python/xla_hlo_test.py491CODE
LOW…arty/xla/xla/tsl/lib/io/zip_writer_integration_test.py27CODE
LOW…xla/xla/backends/cpu/benchmarks/e2e/keras/benchmark.py110CODE
LOW…rty/xla/xla/tests/generate_complex_unary_op_samples.py53CODE
LOW…rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py300CODE
LOW…party/xla/xla/service/fusion_explorer/viewer_server.py159CODE
LOW…party/xla/xla/service/fusion_explorer/viewer_server.py43CODE
LOW…la/third_party/py/setup_py_nvidia_dependencies_util.py46CODE
LOW…d_party/xla/third_party/mkl_dnn/gen_gpu_kernel_list.py133CODE
LOWthird_party/xla/third_party/gpus/find_cuda_config.py223CODE
LOWthird_party/xla/build_tools/lint/check_dwyu.py134CODE
LOWthird_party/xla/build_tools/lint/check_dwyu.py171CODE
LOWthird_party/xla/build_tools/configure/configure.py319CODE
LOWthird_party/xla/build_tools/ci/clang_tidy_diff.py305CODE
LOWthird_party/xla/build_tools/ci/clang_tidy_diff.py349CODE
LOW…/.github/workflows/benchmarks/compare_with_baseline.py84CODE
LOWtensorflow/dtensor/python/api.py38CODE
LOWtensorflow/dtensor/python/d_variable.py152CODE
LOWtensorflow/dtensor/python/d_checkpoint.py59CODE
LOWtensorflow/dtensor/python/d_checkpoint.py107CODE
LOWtensorflow/dtensor/python/d_checkpoint.py315CODE
LOWtensorflow/dtensor/python/d_checkpoint.py416CODE
LOWtensorflow/dtensor/python/tpu_util.py326CODE
LOWtensorflow/dtensor/python/tests/rng_test.py358CODE
LOWtensorflow/dtensor/python/tests/test_util.py230CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2_test.py192CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2_test.py252CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2_test.py198CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2_test.py276CODE
LOWtensorflow/tools/compatibility/ast_edits.py37CODE
LOWtensorflow/tools/compatibility/ast_edits.py694CODE
LOWtensorflow/tools/compatibility/ast_edits.py41CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1573CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1850CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py2395CODE
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py2451CODE
LOWtensorflow/tools/compatibility/ipynb.py99CODE
LOW…/tools/compatibility/update/generate_v2_renames_map.py90CODE
LOWtensorflow/tools/benchmark/parse_onednn_benchmarks.py41CODE
LOWtensorflow/tools/proto_splitter/util.py93CODE
LOWtensorflow/tools/ci_build/copy_binary.py46CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py625CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py771CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py1123CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py2015CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py2030CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py2061CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py2093CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py2137CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py2797CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py4668CODE
1435 more matches not shown…
Cross-File Repetition250 hits · 1250 pts
SeverityFileLineSnippetContext
HIGH…odegen/intrinsic/accuracy/generate_golden_baselines.py0/* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "liceSTRING
HIGH…rd_party/xla/xla/hlo/builder/lib/generate_math_impl.py0/* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "liceSTRING
HIGH…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py0/* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "liceSTRING
HIGH…eleration/compatibility/convert_binary_to_cc_source.py0/* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "liceSTRING
HIGHtensorflow/lite/python/util.py0/* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "liceSTRING
HIGH…ntization/tensorflow/gen_quantized_function_library.py0/* copyright 2022 the tensorflow authors. all rights reserved. licensed under the apache license, version 2.0 (the "liceSTRING
HIGHtensorflow/compat_template_v1.__init__.py0bring in all of the public tensorflow interface into this module.STRING
HIGHtensorflow/compat_template.__init__.py0bring in all of the public tensorflow interface into this module.STRING
HIGHtensorflow/api_template_v1.__init__.py0bring in all of the public tensorflow interface into this module.STRING
HIGHtensorflow/tools/compatibility/tf_upgrade.py0list of maps that describe what changed in the api.STRING
HIGHtensorflow/tools/compatibility/tf_upgrade_v2_safety.py0list of maps that describe what changed in the api.STRING
HIGHtensorflow/tools/compatibility/tf_upgrade_v2.py0list of maps that describe what changed in the api.STRING
HIGH…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py0returns 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.py0returns 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.py0returns 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.py0returns 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.py0get all the valid tests configs to run. returns: all the valid test configs as tuples of data_format and use_gpu.STRING
HIGHtensorflow/python/kernel_tests/nn_ops/conv_ops_test.py0get 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.py0get 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.py0get all the valid tests configs to run. returns: all the valid test configs as tuples of data_format and use_gpu.STRING
HIGHtensorflow/tools/test/system_info_lib.py0library for getting system information during tensorflow tests.STRING
HIGHtensorflow/tools/test/system_info.py0library for getting system information during tensorflow tests.STRING
HIGHtensorflow/tools/test/gpu_info_lib.py0library for getting system information during tensorflow tests.STRING
HIGHtensorflow/tools/test/run_and_gather_logs_lib.py0library for getting system information during tensorflow tests.STRING
HIGH…core/tfrt/saved_model/tests/gen_sparse_tensor_input.py0generates a saved model with tf.pow to trigger placer and grappler.STRING
HIGHtensorflow/core/tfrt/saved_model/tests/gen_pow.py0generates a saved model with tf.pow to trigger placer and grappler.STRING
HIGH…re/tfrt/saved_model/tests/gen_ref_type_tensor_input.py0generates a saved model with tf.pow to trigger placer and grappler.STRING
HIGHtensorflow/python/keras/layers/rnn_cell_wrapper_v2.py0operator adding dropout to inputs and outputs of the given cell.STRING
HIGH…ython/keras/layers/legacy_rnn/rnn_cell_wrapper_impl.py0operator adding dropout to inputs and outputs of the given cell.STRING
HIGH…orflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py0operator adding dropout to inputs and outputs of the given cell.STRING
HIGHtensorflow/python/keras/layers/rnn_cell_wrapper_v2.py0rnncell wrapper that ensures cell inputs are added to the outputs.STRING
HIGH…ython/keras/layers/legacy_rnn/rnn_cell_wrapper_impl.py0rnncell wrapper that ensures cell inputs are added to the outputs.STRING
HIGH…orflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py0rnncell wrapper that ensures cell inputs are added to the outputs.STRING
HIGH…flow/python/keras/mixed_precision/autocast_variable.py0pass resource_variable_ops.is_resource_variable check.STRING
HIGHtensorflow/python/distribute/values.py0pass resource_variable_ops.is_resource_variable check.STRING
HIGHtensorflow/python/distribute/ps_values.py0pass resource_variable_ops.is_resource_variable check.STRING
HIGHtensorflow/python/distribute/sharded_variable.py0pass resource_variable_ops.is_resource_variable check.STRING
HIGHtensorflow/python/keras/utils/control_flow_util.py0return either `true_fn()` if predicate `pred` is true else `false_fn()`. if `pred` is a bool or has a constant value, weSTRING
HIGHtensorflow/python/layers/utils.py0return either `true_fn()` if predicate `pred` is true else `false_fn()`. if `pred` is a bool or has a constant value, weSTRING
HIGHtensorflow/python/framework/smart_cond.py0return either `true_fn()` if predicate `pred` is true else `false_fn()`. if `pred` is a bool or has a constant value, weSTRING
HIGHtensorflow/python/keras/legacy_tf_layers/base.py0contains the base layer class, from which all layers inherit.STRING
HIGHtensorflow/python/keras/engine/base_layer.py0contains the base layer class, from which all layers inherit.STRING
HIGHtensorflow/python/keras/engine/base_layer_v1.py0contains the base layer class, from which all layers inherit.STRING
HIGHtensorflow/python/layers/base.py0contains the base layer class, from which all layers inherit.STRING
HIGHtensorflow/python/keras/engine/base_layer.py0retrieves the input tensor(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected toSTRING
HIGHtensorflow/python/keras/engine/functional.py0retrieves the input tensor(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected toSTRING
HIGHtensorflow/python/keras/engine/base_layer_v1.py0retrieves the input tensor(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected toSTRING
HIGHtensorflow/python/keras/engine/base_layer.py0retrieves the output tensor(s) of a layer. only applicable if the layer has exactly one output, i.e. if it is connected STRING
HIGHtensorflow/python/keras/engine/functional.py0retrieves the output tensor(s) of a layer. only applicable if the layer has exactly one output, i.e. if it is connected STRING
HIGHtensorflow/python/keras/engine/base_layer_v1.py0retrieves the output tensor(s) of a layer. only applicable if the layer has exactly one output, i.e. if it is connected STRING
HIGHtensorflow/python/keras/engine/base_layer.py0retrieves the input shape(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to STRING
HIGHtensorflow/python/keras/engine/functional.py0retrieves the input shape(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to STRING
HIGHtensorflow/python/keras/engine/base_layer_v1.py0retrieves the input shape(s) of a layer. only applicable if the layer has exactly one input, i.e. if it is connected to STRING
HIGHtensorflow/python/keras/engine/base_layer.py0retrieves the output shape(s) of a layer. only applicable if the layer has one output, or if all outputs have the same sSTRING
HIGHtensorflow/python/keras/engine/functional.py0retrieves the output shape(s) of a layer. only applicable if the layer has one output, or if all outputs have the same sSTRING
HIGHtensorflow/python/keras/engine/base_layer_v1.py0retrieves the output shape(s) of a layer. only applicable if the layer has one output, or if all outputs have the same sSTRING
HIGHtensorflow/python/keras/initializers/initializers_v2.py0returns the configuration of the initializer as a json-serializable dict. returns: a json-serializable python dict.STRING
HIGHtensorflow/python/ops/init_ops.py0returns the configuration of the initializer as a json-serializable dict. returns: a json-serializable python dict.STRING
HIGHtensorflow/python/ops/init_ops_v2.py0returns the configuration of the initializer as a json-serializable dict. returns: a json-serializable python dict.STRING
HIGHtensorflow/python/keras/initializers/initializers_v2.py0validate and return floating point type based on `dtype`. `dtype` must be a floating point type. args: dtype: the data tSTRING
190 more matches not shown…
Unused Imports1498 hits · 1163 pts
SeverityFileLineSnippetContext
LOWthird_party/xla/xla/python/xla_client.py24CODE
LOWthird_party/xla/xla/python/xla_client.py34CODE
LOWthird_party/xla/xla/python/xla_client.py36CODE
LOWthird_party/xla/xla/python/xla_client.py37CODE
LOWthird_party/xla/xla/python/xla_extension.py18CODE
LOWthird_party/xla/xla/python/xla_extension.py20CODE
LOWthird_party/xla/xla/mlir_hlo/tests/python/smoketest.py19CODE
LOWthird_party/xla/xla/mlir_hlo/tests/python/smoketest.py20CODE
LOW…xla/xla/mlir_hlo/bindings/python/mlir/dialects/mhlo.py19CODE
LOW…xla/xla/mlir_hlo/bindings/python/mlir/dialects/mhlo.py20CODE
LOW…rd_party/xla/xla/hlo/tools/generate_hlo_test_checks.py91CODE
LOWthird_party/xla/build_tools/ci/clang_tidy_diff.py25CODE
LOWtensorflow/api_template.__init__.py40CODE
LOWtensorflow/api_template.__init__.py95CODE
LOWtensorflow/api_template.__init__.py70CODE
LOWtensorflow/__init__.py20CODE
LOWtensorflow/virtual_root_template_v2.__init__.py87CODE
LOWtensorflow/api_template_v1.__init__.py25CODE
LOWtensorflow/api_template_v1.__init__.py141CODE
LOWtensorflow/api_template_v1.__init__.py70CODE
LOWtensorflow/virtual_root_template_v1.__init__.py89CODE
LOWtensorflow/dtensor/python/tests/test_util.py34CODE
LOWtensorflow/dtensor/python/tests/test_util.py36CODE
LOWtensorflow/dtensor/python/tests/test_util.py37CODE
LOWtensorflow/dtensor/python/tests/test_util.py38CODE
LOWtensorflow/dtensor/python/tests/test_util.py39CODE
LOW…tools/compatibility/update/generate_v2_reorders_map.py26CODE
LOW…/tools/compatibility/update/generate_v2_renames_map.py29CODE
LOW…/tools/compatibility/update/generate_v2_renames_map.py30CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py24CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py25CODE
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py26CODE
LOWtensorflow/tools/test/run_and_gather_logs.py39CODE
LOWtensorflow/tools/test/run_and_gather_logs.py40CODE
LOWtensorflow/tools/api/tests/api_compatibility_test.py48CODE
LOWtensorflow/core/config/flags.py18CODE
LOW…sorflow/core/function/runtime_client/runtime_client.py18CODE
LOWtensorflow/core/function/trace_type/__init__.py28CODE
LOWtensorflow/core/function/trace_type/__init__.py29CODE
LOWtensorflow/core/function/trace_type/__init__.py30CODE
LOWtensorflow/core/function/trace_type/__init__.py31CODE
LOWtensorflow/core/function/trace_type/__init__.py32CODE
LOWtensorflow/core/function/trace_type/__init__.py33CODE
LOWtensorflow/core/function/trace_type/__init__.py34CODE
LOWtensorflow/core/function/trace_type/__init__.py35CODE
LOWtensorflow/core/function/trace_type/__init__.py36CODE
LOWtensorflow/core/function/trace_type/__init__.py37CODE
LOWtensorflow/core/function/trace_type/__init__.py38CODE
LOWtensorflow/core/function/testing/test_pass.py18CODE
LOWtensorflow/python/pywrap_sanitizers.py18CODE
LOWtensorflow/python/pywrap_sanitizers.py19CODE
LOWtensorflow/python/pywrap_tfe_monitoring_reader.py24CODE
LOWtensorflow/python/modules_with_exports.py25CODE
LOWtensorflow/python/modules_with_exports.py26CODE
LOWtensorflow/python/modules_with_exports.py27CODE
LOWtensorflow/python/modules_with_exports.py28CODE
LOWtensorflow/python/modules_with_exports.py29CODE
LOWtensorflow/python/modules_with_exports.py30CODE
LOWtensorflow/python/modules_with_exports.py31CODE
LOWtensorflow/python/modules_with_exports.py32CODE
1438 more matches not shown…
AI Slop Vocabulary154 hits · 342 pts
SeverityFileLineSnippetContext
LOWci/official/any.sh41# Any request that includes "nightly_upload" should just use theCOMMENT
MEDIUMthird_party/xla/xla/pjrt/cpu/abstract_cpu_buffer.h57// robust by using setting the AsyncValue in the destructor.COMMENT
MEDIUM…/distributed/coordination/coordination_service_agent.h176 // The agent does not need to be connected to utilize the key-value store.COMMENT
MEDIUM…a/pjrt/distributed/coordination/coordination_service.h191 // connected to utilize the distributed key-value store.COMMENT
MEDIUMthird_party/xla/xla/python_api/xla_literal_test.py53# To facilitate iteration over different test cases, we collect similar arrayCOMMENT
MEDIUMthird_party/xla/xla/tools/hlo_dump/hlo_lexer.h32// 2. The HTML dumper needs to be robust to malformed or partial HLO textCOMMENT
MEDIUM…_party/xla/xla/python/ifrt_proxy/server/ifrt_backend.h52// service to interact with a variety of backend runtime system it can utilize.COMMENT
MEDIUMthird_party/xla/xla/python/ifrt/client.h155 // robust cleanup, it is strongly recommended to capture RAII objects in theCOMMENT
MEDIUM…ird_party/xla/xla/python/ifrt/ir/program_interpreter.h58// 1. It allows us to leverage the static information available in the programCOMMENT
MEDIUMthird_party/xla/xla/tsl/framework/cancellation.h124 // is robust to `callback` being invoked asynchronously (e.g. fromCOMMENT
MEDIUMthird_party/xla/xla/tsl/lib/gtl/int_type.h24// other operations from other similar integer-like types. Essentially, theCOMMENT
MEDIUMthird_party/xla/xla/tsl/lib/gtl/int_type.h133// The following bad usage is permissible although discouraged. Essentially, itCOMMENT
MEDIUM…uted_runtime/coordination/coordination_service_agent.h191 // The agent does not need to be connected to utilize the key-value store.COMMENT
MEDIUM…istributed_runtime/coordination/coordination_service.h191 // connected to utilize the distributed key-value store.COMMENT
MEDIUMthird_party/xla/xla/backends/gpu/runtime/while_loop.h49// storage. Essentially we keep a thread local stack of `WhileLoopState` entriesCOMMENT
MEDIUM…ty/xla/xla/backends/gpu/transforms/conv_fp8_fallback.h54// rewriting the convolution earlier is not robust because inserted convertsCOMMENT
MEDIUM…arty/xla/xla/backends/gpu/transforms/splitk_rewriter.h29// Rewrites dot instructions that don't fully utilize cores but have a long KCOMMENT
MEDIUM…xla/xla/hlo/tools/hlo_diff/matchers/gumgraph_matcher.h49// output types, ensuring seamless integration and compatibility within anyCOMMENT
MEDIUMthird_party/xla/xla/service/compiler.h193 // Note: The default implementation of the API here does not utilize the givenCOMMENT
MEDIUMthird_party/xla/xla/service/hlo_runner_interface.h238 // Note: The default implementation of the API here does not utilize the givenCOMMENT
MEDIUMthird_party/xla/xla/service/hlo_runner_interface.h263 // Note: The default implementation of the API here does not utilize the givenCOMMENT
MEDIUMthird_party/xla/xla/service/batchnorm_expander.h30// big operation into smaller operations helps leverage our generic fusionCOMMENT
MEDIUMthird_party/xla/xla/service/local_service.h39// Service implementation that extends the XLA Service to leverage runningCOMMENT
MEDIUMthird_party/xla/xla/service/hlo_graph_dumper.h35// Fundamentally all graphs are rendered using the DOT language, but they can beCOMMENT
MEDIUM…/xla/xla/service/spmd/spmd_partitioner_util_internal.h38// NOTE: If provided sharding does not utilize all the partitions, we skipCOMMENT
MEDIUM…arty/xla/xla/service/heap_simulator/allocation_block.h75// composed of slices. In such cases, the repacker can utilizeCOMMENT
LOW…y/xla/tools/ci_build/gpu_build/parallel_gpu_execute.sh41 # If the file path is already fully specified, simply return it.COMMENT
LOW…y/xla/tools/ci_build/gpu_build/parallel_gpu_execute.sh44 # If the file exists in the $TEST_SRCDIR then just use it.COMMENT
LOWthird_party/xla/build_tools/ci/parallel_gpu_execute.sh41 # If the file path is already fully specified, simply return it.COMMENT
LOWthird_party/xla/build_tools/ci/parallel_gpu_execute.sh44 # If the file exists in the $TEST_SRCDIR then just use it.COMMENT
LOW…ird_party/xla/build_tools/rocm/parallel_gpu_execute.sh50 # If the file path is already fully specified, simply return it.COMMENT
LOW…ird_party/xla/build_tools/rocm/parallel_gpu_execute.sh53 # If the file exists in the $TEST_SRCDIR then just use it.COMMENT
MEDIUM…rty/xla/.github/workflows/benchmarks/run_comparison.sh25echo "CONFIG_ID for baseline lookup: $CONFIG_ID" # This is now the comprehensive IDCODE
LOWtensorflow/dtensor/python/save_restore.py206 # For now, we just use the current `internal` API and aim at migrating inCOMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1746 # the arg order if we just set them to 0.COMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1832 # the arg order if we just set them to 0.COMMENT
LOW…rflow/tools/ci_build/gpu_build/parallel_gpu_execute.sh41 # If the file path is already fully specified, simply return it.COMMENT
LOW…rflow/tools/ci_build/gpu_build/parallel_gpu_execute.sh44 # If the file exists in the $TEST_SRCDIR then just use it.COMMENT
MEDIUMtensorflow/tools/lib_package/libtensorflow_test.sh54# are in DYLD_LIBRARY_PATH in the test harness for OS X.COMMENT
MEDIUMtensorflow/go/session_test.go372 // nuanced conversion to C types.COMMENT
MEDIUMtensorflow/core/kernels/quantization_utils.h552// Return std::array instead of pointer to leverage return value optimizationCOMMENT
MEDIUMtensorflow/core/framework/collective.h223// Graphs which utilize Collective Ops in a common instance mustCOMMENT
MEDIUM…rflow/core/grappler/optimizers/graph_optimizer_stage.h82// make all updates in place. This helps to make robust node placementCOMMENT
LOWtensorflow/python/autograph/converters/lists_test.py91 # For now, we just pass a regular Python list of lists just to verify thatCOMMENT
MEDIUMtensorflow/python/autograph/pyct/inspect_utils.py272 # namespace. This is inefficient but more robust a method.COMMENT
MEDIUMtensorflow/python/autograph/pyct/parser.py247 # This method is more robust that just calling inspect.getsource(mod), as itCOMMENT
MEDIUM…/python/autograph/pyct/common_transformers/anf_test.py413 a.b = c + d # Should be a.b = tmp? (Definitely not tmp = c + d)CODE
MEDIUM…/python/autograph/pyct/common_transformers/anf_test.py414 a[b] = c + d # Should be a[b] = tmp? (Definitely not tmp = c + d)CODE
MEDIUM…/python/autograph/pyct/common_transformers/anf_test.py415 a += c + d # Should be a += tmp? (Definitely not tmp = c + d)CODE
MEDIUMtensorflow/python/keras/backend.py165# We assume our devices don't change henceforth.COMMENT
MEDIUMtensorflow/python/keras/models.py665 # Allows this method to be robust to switching graph and eager classes.COMMENT
MEDIUMtensorflow/python/keras/callbacks.py1547 # use that as it is more robust than `os.path.getmtime()`.COMMENT
LOWtensorflow/python/keras/layers/core.py1332 # (For standard layers users could just set `name` when creating theCOMMENT
LOWtensorflow/python/keras/utils/generic_utils.py328 # serialized this config. If so, just use that config. This will store anCOMMENT
LOWtensorflow/python/keras/utils/data_utils.py800 # If a worker dies during init, the pool will just create a replacement.COMMENT
LOWtensorflow/python/keras/optimizer_v2/optimizer_v2.py129 # In eager mode, simply call minimize to update the list of variables.STRING
LOWtensorflow/python/keras/optimizer_v2/optimizer_v2.py246 # In eager mode, simply call minimize to update the list of variables.STRING
MEDIUMtensorflow/python/keras/engine/base_layer.py399 # Used in symbolic mode only, only in conjunction with graph-networksCOMMENT
MEDIUMtensorflow/python/keras/engine/training_v1.py2526 # For subclassed models, a robust input spec is not available so weCOMMENT
LOWtensorflow/python/keras/engine/training_v1.py2328 # In graph mode, if we had just set inputs and targets as symbolic tensorsCOMMENT
94 more matches not shown…
Structural Annotation Overuse187 hits · 288 pts
SeverityFileLineSnippetContext
LOWthird_party/xla/xla/online_topsort.h492 // Step 1: test order: if w is already higher than v in the lexicographicalCOMMENT
LOWthird_party/xla/xla/online_topsort.h502 // Step 2: search backwards from v, until we either find `w`, which means weCOMMENT
LOWthird_party/xla/xla/online_topsort.h526 // Step 3: search forwards from w, following outgoing edges only from nodesCOMMENT
LOWthird_party/xla/xla/online_topsort.h539 // Step 4: update indices.COMMENT
LOWthird_party/xla/xla/online_topsort.h552 // Step 5: add the edge.COMMENT
LOWthird_party/xla/xla/tsl/platform/test.h76// NOTE: This function is not thread-safe.COMMENT
LOWthird_party/xla/xla/tsl/profiler/utils/xplane_utils.h248// NOTE: This class assumes that the ancestors are ordered with respect to theCOMMENT
LOW…_party/xla/xla/tsl/distributed_runtime/rpc/grpc_call.h255 // NOTE: This method must be called before this call is enqueued on aCOMMENT
LOWthird_party/xla/xla/hlo/ir/tile_assignment.h180// NOTE: This class is immutable.COMMENT
LOWthird_party/xla/xla/hlo/builder/lib/matrix.h118// NOTE: This function is meant for testing, there is no need to call itCOMMENT
LOW…rd_party/xla/xla/service/mapped_ptr_container_sorter.h369 // Step 1: build a set of the ptrs in unordered_containerCOMMENT
LOW…rd_party/xla/xla/service/mapped_ptr_container_sorter.h376 // Step 2: for mapped elements (in unordered_container), create a map fromCOMMENT
LOW…rd_party/xla/xla/service/mapped_ptr_container_sorter.h398 // Step 3: create sorted unordered element indicesCOMMENT
LOWthird_party/xla/docs/pjrt/pjrt_integration.md8### Step 1: Implement [PJRT C API interface](https://github.com/openxla/xla/blob/71a4e6e6e4e9f0f8b8f25c07a32ad489aff1923COMMENT
LOWthird_party/xla/docs/pjrt/pjrt_integration.md38### Step 2: Implement GetPjRtApiCOMMENT
LOWthird_party/xla/docs/pjrt/pjrt_integration.md50### Step 3: Test C API implementationsCOMMENT
LOWthird_party/xla/docs/pjrt/pjrt_integration.md56### Step 1: Set up JAXCOMMENT
LOWthird_party/xla/docs/pjrt/pjrt_integration.md76### Step 2: Use jax\_plugins namespace or set up entry\_pointCOMMENT
LOWthird_party/xla/docs/pjrt/pjrt_integration.md104### Step 3: Implement an initialize() methodCOMMENT
LOWthird_party/xla/.github/workflows/benchmarks/README.md33### Step 1: Prepare Your Benchmark ArtifactCOMMENT
LOWthird_party/xla/.github/workflows/benchmarks/README.md42### Step 2: Define the Benchmark ConfigurationCOMMENT
LOWthird_party/xla/.github/workflows/benchmarks/README.md113### Step 3: Establish a BaselineCOMMENT
LOWthird_party/xla/.github/workflows/benchmarks/README.md186### Step 4: Create a Pull RequestCOMMENT
LOW…sorflow/dtensor/mlir/expansions/gather_spmd_expander.h77 // Step 1: If the params are sharded on dim axis, an unconditionalCOMMENT
LOW…sorflow/dtensor/mlir/expansions/gather_spmd_expander.h138 // Step 2: Check the output layout. If it requires all-relayouting indices.COMMENT
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py239 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py258 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/core/kernels/training_op_helpers.h47// NOTE: This function uses variable's `copy_on_read_mode` flag to decide ifCOMMENT
LOW…flow/core/util/quantization/uniform_quant_ops_params.h32// NOTE: This class instance is fully loaded and valid, only after (1) One ofCOMMENT
LOW…flow/core/util/quantization/uniform_quant_ops_params.h78 // NOTE: This method should be called only after calling one ofCOMMENT
LOWtensorflow/core/grappler/utils/grappler_test.h63 // NOTE: This function uses EXPECT/ASSERT macros to check node propertiesCOMMENT
LOWtensorflow/core/grappler/utils/grappler_test.h69 // NOTE: This function uses EXPECT/ASSERT macros to check node propertiesCOMMENT
LOWtensorflow/core/grappler/utils/grappler_test.h76 // NOTE: This function uses EXPECT/ASSERT macros to check node propertiesCOMMENT
LOWtensorflow/core/distributed_runtime/message_wrappers.h537 // NOTE: This method is not implemented. SeeCOMMENT
LOWtensorflow/core/distributed_runtime/message_wrappers.h681 // NOTE: This method is not implemented. SeeCOMMENT
LOW…rnel_tests/sparse_ops/sparse_serialization_ops_test.py274 # NOTE: The following test is a no-op as it is currently not possible toCOMMENT
LOWtensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py1154 ########### Step 1: Run static graph and generate readoutsCOMMENT
LOWtensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py1214 ########## Step 2: Run dynamic graph and generate readoutsCOMMENT
LOWtensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py1290 ######### Step 3: ComparisonsCOMMENT
LOWtensorflow/python/training/momentum_test.py82 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py97 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/momentum_test.py309 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py324 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/momentum_test.py488 # Step 1: the momentum accumulators are 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py511 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/momentum_test.py561 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py576 # Step 2: the second momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/rmsprop_test.py314 # Step 1: the rms accumulators where 1. So we should see a normalCOMMENT
LOWtensorflow/python/training/rmsprop_test.py333 # Step 2: the root mean square accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/rmsprop_test.py384 # Step 1: rms = 1, mom = 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/rmsprop_test.py414 # Step 2: the root mean square accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/rmsprop_test.py476 # Step 1: the rms accumulators where 1. So we should see a normalCOMMENT
LOWtensorflow/python/training/rmsprop_test.py490 # Step 2: the root mean square accumulators contain the previous update.COMMENT
LOWtensorflow/python/ops/distributions/distribution.py109 # Step 0: Prepend spaces to all lines of append_str. This isCOMMENT
LOWtensorflow/python/ops/distributions/distribution.py113 # Step 1: Find mention of "Args":COMMENT
LOWtensorflow/python/data/experimental/ops/batching.py109 # NOTE: The following examples use `{ ... }` to represent theSTRING
LOWtensorflow/python/data/experimental/ops/batching.py279 # NOTE: The following example uses `{ ... }` to represent the contentsSTRING
LOW…nsorflow/python/data/experimental/ops/enumerate_ops.py29 # NOTE: The following examples use `{ ... }` to represent theSTRING
LOWtensorflow/python/data/ops/dataset_ops.py2128 # NOTE: The following examples use `{ ... }` to represent theSTRING
LOWtensorflow/python/compiler/tensorrt/utils.py195 # Step 1: Parsing the graph and drawing OPs one by one.COMMENT
127 more matches not shown…
AI Structural Patterns296 hits · 241 pts
SeverityFileLineSnippetContext
LOW…la/backends/cpu/codegen/dot/dot_kernel_emitter_test.py47CODE
LOWtensorflow/dtensor/python/tests/conv_test.py122CODE
LOW…sorflow/core/function/capture/free_vars_detect_test.py184CODE
LOWtensorflow/python/autograph/core/ag_ctx.py52CODE
LOW…ython/autograph/pyct/static_analysis/type_inference.py157CODE
LOW…autograph/pyct/static_analysis/reaching_definitions.py82CODE
LOWtensorflow/python/keras/metrics.py2058CODE
LOWtensorflow/python/keras/callbacks_v1.py113CODE
LOWtensorflow/python/keras/testing_utils.py87CODE
LOWtensorflow/python/keras/callbacks.py74CODE
LOWtensorflow/python/keras/callbacks.py2146CODE
LOWtensorflow/python/keras/callbacks.py2627CODE
LOWtensorflow/python/keras/losses.py2024CODE
LOWtensorflow/python/keras/layers/merge.py693CODE
LOWtensorflow/python/keras/layers/convolutional.py109CODE
LOWtensorflow/python/keras/layers/convolutional.py486CODE
LOWtensorflow/python/keras/layers/convolutional.py645CODE
LOWtensorflow/python/keras/layers/convolutional.py791CODE
LOWtensorflow/python/keras/layers/convolutional.py917CODE
LOWtensorflow/python/keras/layers/convolutional.py1186CODE
LOWtensorflow/python/keras/layers/convolutional.py1494CODE
LOWtensorflow/python/keras/layers/convolutional.py1758CODE
LOWtensorflow/python/keras/layers/convolutional.py1990CODE
LOWtensorflow/python/keras/layers/convolutional.py2179CODE
LOWtensorflow/python/keras/layers/convolutional.py2348CODE
LOWtensorflow/python/keras/layers/convolutional.py2527CODE
LOWtensorflow/python/keras/layers/recurrent.py1297CODE
LOWtensorflow/python/keras/layers/recurrent.py1520CODE
LOWtensorflow/python/keras/layers/recurrent.py1734CODE
LOWtensorflow/python/keras/layers/recurrent.py2055CODE
LOWtensorflow/python/keras/layers/recurrent.py2295CODE
LOWtensorflow/python/keras/layers/recurrent.py2552CODE
LOWtensorflow/python/keras/layers/recurrent.py2725CODE
LOWtensorflow/python/keras/layers/core.py222CODE
LOWtensorflow/python/keras/layers/core.py1131CODE
LOW…sorflow/python/keras/layers/convolutional_recurrent.py487CODE
LOW…sorflow/python/keras/layers/convolutional_recurrent.py843CODE
LOW…ython/keras/layers/legacy_rnn/rnn_cell_wrapper_impl.py38CODE
LOW…orflow/python/keras/layers/legacy_rnn/rnn_cell_impl.py855CODE
LOWtensorflow/python/keras/utils/data_utils.py163CODE
LOWtensorflow/python/keras/optimizer_v2/ftrl.py100CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py115CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py318CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py529CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py865CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py987CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py1201CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py1385CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py77CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py280CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py491CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py704CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py818CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py1164CODE
LOW…sorflow/python/keras/legacy_tf_layers/convolutional.py1347CODE
LOWtensorflow/python/keras/legacy_tf_layers/core.py107CODE
LOWtensorflow/python/keras/legacy_tf_layers/core.py79CODE
LOW…w/python/keras/legacy_tf_layers/variable_scope_shim.py153CODE
LOW…w/python/keras/legacy_tf_layers/variable_scope_shim.py388CODE
LOW…w/python/keras/legacy_tf_layers/variable_scope_shim.py297CODE
236 more matches not shown…
Excessive Try-Catch Wrapping194 hits · 227 pts
SeverityFileLineSnippetContext
MEDIUMconfigure.py1212 print('Error retrieving bazel version: ', e.output.decode('UTF-8').strip())CODE
LOWtools/tf_env_collect.sh269except Exception as e: # noqa: BLE001 - diagnostic best-effortSTRING
LOWtools/tf_env_collect.sh433 except Exception as e: # noqa: BLE001 - diagnostic best-effortSTRING
LOWtools/tf_env_collect.sh435 except Exception as e: # noqa: BLE001 - diagnostic best-effortSTRING
LOW…ols/buffer_debug_log/check_thunk_output_consistency.py94 except Exception as e:CODE
LOW…ols/buffer_debug_log/check_thunk_output_consistency.py104 except Exception as e:CODE
MEDIUM…xla/xla/backends/cpu/benchmarks/e2e/keras/benchmark.py74 print(f"Error: max_len {max_len} should be >= 1")CODE
LOW…party/xla/xla/service/fusion_explorer/viewer_server.py177 except Exception as e: # pylint: disable=broad-exception-caughtCODE
MEDIUM…party/xla/xla/service/fusion_explorer/viewer_server.py178 print(f"Error extracting database: {e}")CODE
LOW…party/xla/xla/service/fusion_explorer/viewer_server.py185 except Exception: # pylint: disable=broad-exception-caughtCODE
LOW…party/xla/xla/service/fusion_explorer/viewer_server.py209 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWthird_party/xla/.github/workflows/pr_size_check.py77 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/dtensor/python/heartbeat.py82 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/tools/test/upload_test_benchmarks.py132 except Exception: # pylint: disable=broad-exceptCODE
LOWtensorflow/tools/test/upload_test_benchmarks.py208 except Exception as e: # pylint: disable=broad-exceptCODE
MEDIUMtensorflow/tools/test/upload_test_benchmarks.py128def trylock(fd):CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py354 print("Error: Cannot retrieve CUDA default version.\nStopping...")CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py163 print("Error in detecting platform:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py165 print("Error: Detected unsupported operating system.\nStopping...")CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py184 print("Error in detecting CPU type:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py199 print("Error in detecting CPU arch:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py214 print("Error in detecting distribution:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py254 print("Error in detecting GPU type:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py283 print("Error in detecting GPU count:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py316 print("Error in detecting CUDA version:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py407 print("Error in finding `cudnn.h`:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py413 print("Error in detecting cuDNN version:\n %s" % str(err_re))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py430 print("Error in detecting GCC version:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py445 print("Error in detecting GCC version:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py460 print("Error in detecting libstdc++ version:\n %s" % str(err))CODE
MEDIUM…/tensorflow_builder/config_detector/config_detector.py478 print("Error in detecting supported ISA:\n %s" % str(err))CODE
LOW…/tensorflow_builder/config_detector/config_detector.py347 except Exception as e:CODE
LOW…g_build_dockerfiles/devel.usertools/squash_testlogs.py54 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/core/function/capture/free_vars_detect.py270 except Exception: # pylint: disable=broad-exceptCODE
LOWtensorflow/core/function/capture/free_vars_detect.py297 except Exception: # pylint: disable=broad-exceptCODE
LOWtensorflow/core/function/transform/transform.py356 except Exception: # pylint: disable=broad-exceptCODE
LOWtensorflow/python/autograph/impl/api.py409 except Exception as e: # pylint:disable=broad-exceptCODE
LOWtensorflow/python/autograph/impl/api.py430 except Exception as e: # pylint:disable=broad-exceptCODE
LOWtensorflow/python/autograph/impl/api.py442 except Exception as e:CODE
LOWtensorflow/python/autograph/impl/api.py691 except Exception as e: # pylint:disable=broad-exceptCODE
LOW…nsorflow/python/autograph/tests/reference_test_base.py62 except Exception as e: # pylint:disable=broad-exceptCODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py923def test_fn(a):CODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py1245def test_fn(a):CODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py1272def test_fn(a):CODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py1329def test_fn(a):CODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py1362def test_fn(a):CODE
LOWtensorflow/python/keras/callbacks.py2003 except Exception as exc: # pylint: disable=broad-exceptCODE
LOWtensorflow/python/keras/utils/data_utils.py392 except Exception as e:CODE
LOWtensorflow/python/keras/utils/data_utils.py772 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/python/keras/utils/data_utils.py896 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/python/keras/engine/training_utils_v1.py406 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/python/tools/inspect_checkpoint.py100 except Exception as e: # pylint: disable=broad-exceptCODE
LOWtensorflow/python/tools/saved_model_cli.py546 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOWtensorflow/python/tools/saved_model_cli.py970 except Exception as exc:CODE
LOWtensorflow/python/tools/saved_model_cli.py1277 except Exception as exc:CODE
MEDIUM…flow/python/tools/selective_registration_header_lib.py245 print('Error reading graph!')STRING
LOW…low/python/tools/api/generator2/extractor/extractor.py73 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…low/python/tools/api/generator2/extractor/extractor.py85 except Exception as e: # pylint: disable=broad-exception-caughtCODE
LOW…low/python/tools/api/generator2/extractor/extractor.py316 except Exception as e:CODE
LOWtensorflow/python/checkpoint/async_checkpoint_helper.py378 except Exception as e: # # pylint: disable=broad-exceptCODE
134 more matches not shown…
Cross-Language Confusion49 hits · 200 pts
SeverityFileLineSnippetContext
HIGHtensorflow/python/autograph/converters/control_flow.py199 return scope_vars, undefined, noutsCODE
HIGHtensorflow/python/autograph/converters/control_flow.py206 cond_vars, undefined, nouts = self._get_block_vars(CODE
HIGHtensorflow/python/autograph/converters/control_flow.py209 undefined_assigns = self._create_undefined_assigns(undefined)CODE
HIGHtensorflow/python/autograph/converters/control_flow.py262 loop_vars, undefined, _ = self._get_block_vars(node, body_scope.bound)STRING
HIGHtensorflow/python/autograph/converters/control_flow.py264 undefined_assigns = self._create_undefined_assigns(undefined)STRING
HIGHtensorflow/python/autograph/converters/control_flow.py313 loop_vars, undefined, _ = self._get_block_vars(STRING
HIGHtensorflow/python/autograph/converters/control_flow.py316 undefined_assigns = self._create_undefined_assigns(undefined)STRING
HIGH…thon/tools/print_selective_registration_header_test.py284 return falseCODE
HIGHtensorflow/python/framework/ops.py4756 context.context().context_switches.push(default.building_function,CODE
HIGH…sorflow/python/framework/experimental/context_stack.py33 _default_ctx_stack.push(ctx)CODE
HIGH…sorflow/python/kernel_tests/linalg/linalg_grad_test.py307 # log|det(A)| is -inf for a singular A, so its gradient is undefined, butCOMMENT
HIGHtensorflow/python/ops/array_grad.py949 # If only one dimension is undefined, we can use a wildcard dimension inCOMMENT
HIGHtensorflow/python/ops/control_flow_case.py94 if (x < y && x > z) raise OpError("Only one predicate may evaluate to True");STRING
HIGHtensorflow/python/ops/control_flow_case.py203 if (x < y && x > z) raise OpError("Only one predicate may evaluate to True");STRING
HIGHtensorflow/python/ops/state_ops.py151 undefined, but may exhibit less contention.STRING
HIGHtensorflow/python/ops/state_ops.py222 will be protected by a lock; otherwise the behavior is undefined, but maySTRING
HIGHtensorflow/python/ops/state_ops.py295 will be protected by a lock; otherwise the behavior is undefined, but maySTRING
HIGHtensorflow/python/ops/state_ops.py422 otherwise the behavior is undefined, but may exhibit less contention.CODE
HIGHtensorflow/python/ops/state_ops.py484 be protected by a lock; otherwise the behavior is undefined,CODE
HIGHtensorflow/python/ops/state_ops.py536 otherwise the behavior is undefined, but may exhibit less contention.CODE
HIGHtensorflow/python/ops/state_ops.py600 otherwise the behavior is undefined, but may exhibit less contention.CODE
HIGHtensorflow/python/ops/state_ops.py654 otherwise the behavior is undefined, but may exhibit less contention.CODE
HIGHtensorflow/python/ops/state_ops.py717 be protected by a lock; otherwise the behavior is undefined,CODE
HIGHtensorflow/python/ops/state_ops.py769 will be protected by a lock; otherwise the behavior is undefined, but mayCODE
HIGHtensorflow/python/ops/state_ops.py821 will be protected by a lock; otherwise the behavior is undefined, but mayCODE
HIGHtensorflow/python/ops/state_ops.py876 will be protected by a lock; otherwise the behavior is undefined, but mayCODE
HIGHtensorflow/python/ops/state_ops.py931 will be protected by a lock; otherwise the behavior is undefined, but mayCODE
HIGHtensorflow/python/ops/distributions/categorical.py328 """Calculate the batched KL divergence KL(a || b) with a and b Categorical.STRING
HIGHtensorflow/python/ops/distributions/categorical.py337 Batchwise KL(a || b)STRING
HIGHtensorflow/python/ops/distributions/dirichlet.py338 """Batchwise KL divergence KL(d1 || d2) with d1 and d2 Dirichlet.STRING
HIGHtensorflow/python/ops/distributions/dirichlet.py347 Batchwise KL(d1 || d2)STRING
HIGHtensorflow/python/ops/distributions/normal.py272 """Calculate the batched KL divergence KL(n_a || n_b) with n_a and n_b Normal.STRING
HIGHtensorflow/python/ops/distributions/normal.py281 Batchwise KL(n_a || n_b)STRING
HIGHtensorflow/python/ops/distributions/beta.py380 """Calculate the batchwise KL divergence KL(d1 || d2) with d1 and d2 Beta.STRING
HIGHtensorflow/python/ops/distributions/beta.py389 Batchwise KL(d1 || d2)STRING
HIGHtensorflow/python/ops/distributions/bijector_impl.py403 the `Invert` bijector. If undefined, a slightly less efficientlyCODE
HIGHtensorflow/python/ops/distributions/distribution.py595 undefined, e.g., if a distribution's pdf does not achieve a maximum withinSTRING
HIGHtensorflow/python/ops/distributions/distribution.py597 undefined, then by definition the variance is undefined. E.g. the mean forSTRING
HIGHtensorflow/python/ops/distributions/bernoulli.py167 """Calculate the batched KL divergence KL(a || b) with a and b Bernoulli.STRING
HIGHtensorflow/python/ops/distributions/bernoulli.py176 Batchwise KL(a || b)STRING
HIGHtensorflow/python/ops/distributions/kullback_leibler.py62 """Get the KL-divergence KL(distribution_a || distribution_b).STRING
HIGHtensorflow/python/ops/distributions/kullback_leibler.py98 "No KL(distribution_a || distribution_b) registered for distribution_a "CODE
HIGHtensorflow/python/ops/distributions/gamma.py315 """Calculate the batched KL divergence KL(g0 || g1) with g0 and g1 Gamma.STRING
HIGHtensorflow/python/ops/distributions/gamma.py324 kl_gamma_gamma: `Tensor`. The batchwise KL(g0 || g1).STRING
HIGHtensorflow/python/data/experimental/ops/readers.py87 # If the field is null, it gives no extra information about its typeCOMMENT
HIGHtensorflow/python/data/ops/dataset_ops.py2299 undefined, so the values of output elements may not be deterministicSTRING
HIGHtensorflow/python/eager/context.py358 self.push(CODE
HIGHtensorflow/python/eager/context.py1162 self.context_switches.push(False, eager_mode, None)CODE
HIGHtensorflow/lite/tools/visualize.py158 d.fx = d.fy = null;CODE
Redundant / Tautological Comments122 hits · 185 pts
SeverityFileLineSnippetContext
LOWconfigure.py194 # Check if the path is validCOMMENT
LOWconfigure.py439 # Check if current bazel version can be detected properly.COMMENT
LOWconfigure.py924 # Check if current clang version can be detected properly.COMMENT
LOWci/official/utilities/rename_and_verify_wheels.sh109# Check if size is too big. TFCI_WHL_SIZE_LIMIT is in find's format, which can beCOMMENT
LOWci/official/utilities/setup_macos.sh67 # Check if pyenv is managed by homebrew. If so, update and upgrade pyenv.COMMENT
LOWthird_party/xla/xla/python/xla_hlo_test.py234 # Check if we can find expected opcodes in the main computation.STRING
LOW…d_party/xla/.github/workflows/postsubmit_benchmark.yml213 # Check if the results file existsCOMMENT
LOW…ird_party/xla/.github/workflows/nightly_benchmarks.yml181 # Check if the results file existsCOMMENT
LOWtensorflow/dtensor/python/config.py189 # Check if TPU is present from initialized context.COMMENT
LOWtensorflow/dtensor/python/layout.py127 # Check if input args are valid.COMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1697 # Check if we have a keep_prob keyword argCOMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1789 # Check if we have a labels keyword argCOMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1916 # Check if we have a uniform_noise keyword argCOMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py2251 # Check if we have a scale or scope keyword argCOMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py2304 # Check if we have a scale or scope keyword argCOMMENT
LOWtensorflow/tools/proto_splitter/python/saved_model.py42 # Check if the proto size is still larger than the max size.COMMENT
LOWtensorflow/tools/ci_build/builds/pip_new.sh196 # Check if only the major version of python is provided by the user.COMMENT
LOWtensorflow/tools/ci_build/builds/pip_new.sh219 # Check if all versions match.COMMENT
LOWtensorflow/tools/ci_build/builds/pip_new.sh308# Check if in a virtualenv and exit if yes.COMMENT
LOWtensorflow/tools/ci_build/builds/pip_new.sh473 # Set path to pip.COMMENT
LOWtensorflow/tools/pip_package/check_load_py_test.py67 # Check if BUILD files load py_test.COMMENT
LOWtensorflow/tools/pip_package/pip_smoke_test.py161 # Check if the dependency is in the pip package, the dependency denylist,COMMENT
LOW…ls/tensorflow_builder/compat_checker/compat_checker.py785 # Check if all `Required` configs are found in user configs.COMMENT
LOW…ls/tensorflow_builder/compat_checker/compat_checker.py863 # Check if user config has a dependency in the following sequence:COMMENT
LOWtensorflow/tools/api/tests/api_compatibility_test.py309 # Write files if requested.COMMENT
LOWtensorflow/core/function/capture/capture_container.py220 # Check if the capture exists in self._by_refCOMMENT
LOWtensorflow/python/keras/optimizer_v1.py61 # Set this to False, indicating `apply_gradients` does not take theCOMMENT
LOWtensorflow/python/keras/callbacks.py102 # Check if callbacks have already been configured.COMMENT
LOW…w/python/keras/mixed_precision/loss_scale_optimizer.py147 # Set aggregation to NONE, as loss scaling variables should never beCOMMENT
LOWtensorflow/python/keras/utils/generic_utils.py556 # Check if `cls_config` is a list. If it is a list, return the class and theCOMMENT
LOW…ython/keras/distribute/distribute_coordinator_utils.py352 # Check if the Server is already running. If so, assert that no configurationCOMMENT
LOWtensorflow/python/keras/optimizer_v2/optimizer_v2.py1181 # Set trainable to be false when variable is to be synced on read.COMMENT
LOWtensorflow/python/keras/legacy_tf_layers/base.py399 # Set trainable to be false when variable is to be synced on read.COMMENT
LOWtensorflow/python/keras/engine/base_layer_utils.py343 # Check if running in V1 graph mode.COMMENT
LOWtensorflow/python/keras/engine/base_layer_utils.py348 # Check if inside Keras FuncGraph.COMMENT
LOWtensorflow/python/keras/engine/base_layer.py612 # Set trainable to be false when variable is to be synced on read.COMMENT
LOWtensorflow/python/keras/engine/base_layer.py2814 # Append value to list of trainable / non-trainable weights if relevantCOMMENT
LOWtensorflow/python/keras/engine/functional.py1434 # Check if module.__call__ has a `training` arg or accepts `**kwargs`.COMMENT
LOWtensorflow/python/keras/engine/training_arrays_v1.py270 # Loop over dataset until `OutOfRangeError` is raised.COMMENT
LOWtensorflow/python/keras/engine/training_arrays_v1.py273 # Loop over dataset for the specified number of steps.COMMENT
LOWtensorflow/python/keras/engine/training_generator_v1.py209 # Loop over dataset until `OutOfRangeError` is raised.COMMENT
LOWtensorflow/python/keras/engine/training_generator_v1.py212 # Loop over dataset for the specified number of steps.COMMENT
LOWtensorflow/python/keras/engine/base_layer_v1.py404 # Set trainable to be false when variable is to be synced on read.COMMENT
LOWtensorflow/python/keras/engine/base_layer_v1.py2246 # Append value to list of trainable / non-trainable weights if relevantCOMMENT
LOWtensorflow/python/tools/saved_model_cli.py825 # Check if input tensor keys are valid.COMMENT
LOWtensorflow/python/tools/saved_model_cli.py1131 # Check if npz file only contains a single numpy ndarray.COMMENT
LOW…orflow/python/tools/api/generator/create_python_api.py151 # Check if we are trying to expose two different symbols with same name.COMMENT
LOWtensorflow/python/saved_model/load_test.py3468 # Check if variables work as expected across multiple iterations.COMMENT
LOW…nsorflow/python/saved_model/signature_serialization.py252 # Check if `outputs` is a namedtuple.COMMENT
LOWtensorflow/python/saved_model/nested_structure_coder.py442 # Check if it's a registered type.COMMENT
LOWtensorflow/python/util/dispatch.py587 # Check if dispatch_target registered by `@dispatch_for_api`COMMENT
LOWtensorflow/python/util/dispatch.py595 # Check if dispatch_target registered by `@dispatch_for_*_elementwise_apis`COMMENT
LOWtensorflow/python/framework/subscribe.py234 # Check if the given tensor has a numpy compatible type (see dtypes.py).COMMENT
LOWtensorflow/python/framework/subscribe.py244 # Check if the given tensor has already been subscribed by inspecting itsCOMMENT
LOWtensorflow/python/framework/op_def_library.py369 # Check if all inputs are already tf.TensorCOMMENT
LOWtensorflow/python/framework/test_util.py2581 # Check if the mlir bridge has been explicitly enabled or disabled. IfCOMMENT
LOWtensorflow/python/framework/test_util.py3294 # Check if a and/or b are namedtuples.COMMENT
LOWtensorflow/python/framework/test_util_test.py227 # Check if the assertion failure message contains the content ofSTRING
LOW…orflow/python/kernel_tests/array_ops/array_ops_test.py1318 # Check if equalCOMMENT
LOW…orflow/python/kernel_tests/array_ops/array_ops_test.py1335 # Assign vector to scalar (rank-0) using newaxisCOMMENT
62 more matches not shown…
Example Usage Blocks57 hits · 84 pts
SeverityFileLineSnippetContext
LOWthird_party/xla/xla/debug_options_flags.h132// Example usage:COMMENT
LOWthird_party/xla/xla/reference_util.h599 // Example usage:COMMENT
LOWthird_party/xla/xla/tsl/util/sorted_range.h29// Example usage:COMMENT
LOWthird_party/xla/xla/tsl/util/sorted_range.h49// Example usage:COMMENT
LOWthird_party/xla/xla/tsl/util/fixed_option_set_flag.h47// Example usage:COMMENT
LOWthird_party/xla/xla/tsl/platform/debug_me_context.h47// Example usage:COMMENT
LOWthird_party/xla/xla/tsl/platform/errors.h201// Example usage:COMMENT
LOW…la/tsl/platform/cloud/compute_engine_metadata_client.h50 /// Example usage:COMMENT
LOWthird_party/xla/xla/tsl/lib/gtl/value_or_die.h21// Example usage:COMMENT
LOW…party/xla/xla/tsl/lib/monitoring/collection_registry.h500// Example usage:COMMENT
LOWthird_party/xla/xla/tests/xla_test_backend_predicates.h118// Example usage:COMMENT
LOWthird_party/xla/xla/hlo/analysis/shape_tracker.h42// Example usage:COMMENT
LOWthird_party/xla/xla/hlo/ir/hlo_computation.h180 // Example usage:COMMENT
LOWthird_party/xla/xla/service/pattern_matcher.h3211// Example usage:COMMENT
LOWthird_party/xla/xla/service/cpu/ir_function.h46// Example usage:COMMENT
LOW…party/xla/xla/stream_executor/kernel_symbol_registry.h85// Example usage:COMMENT
LOWtensorflow/tools/proto_splitter/merge.h35 // Example usage:COMMENT
LOWtensorflow/tools/proto_splitter/merge.h49 // Example usage:COMMENT
LOWtensorflow/tools/ci_build/update_version.py19# Usage:COMMENT
LOWtensorflow/tools/ci_build/copy_binary.py19# Usage:COMMENT
LOW…sorflow/tools/ci_build/install/install_deb_packages.sh17# Usage:COMMENT
LOWtensorflow/tools/ci_build/ctpu/ctpu.sh40# Usage:COMMENT
LOWtensorflow/tools/ci_build/builds/print_build_info.sh23# Usage:COMMENT
LOWtensorflow/tools/ci_build/builds/run_pip_tests.sh20# Usage:COMMENT
LOWtensorflow/tools/ci_build/builds/pip_new.sh19# Usage:COMMENT
LOWtensorflow/tools/gcs_test/gcs_smoke.sh19# Usage:COMMENT
LOWtensorflow/tools/gcs_test/gcs_smoke_wrapper.sh21# Usage:COMMENT
LOWtensorflow/core/kernels/record_yielder.h43// Usage example:COMMENT
LOW…sorflow/core/framework/dataset_stateful_op_allowlist.h67// Example usage:COMMENT
LOW…e/common_runtime/input_colocation_exemption_registry.h35// Example usage:COMMENT
LOWtensorflow/core/common_runtime/eager/attr_builder.h72// Example usage:COMMENT
LOWtensorflow/core/tfrt/mlrt/interpreter/async_handle.h37// Example usage:COMMENT
LOWtensorflow/core/lib/jxl/jxl_io.h18// Example usage:COMMENT
LOWtensorflow/core/data/standalone.h57// Example usage:COMMENT
LOWtensorflow/core/data/serialization_utils.h163// Usage example:COMMENT
LOWtensorflow/core/data/service/byte_size.h30// Usage example:COMMENT
LOWtensorflow/core/data/service/cross_trainer_cache.h51// Example usage:COMMENT
LOW…/core/data/service/snapshot/parallel_tfrecord_writer.h43// Usage example:COMMENT
LOW…core/data/service/snapshot/prefetched_split_provider.h41// Usage example:COMMENT
LOWtensorflow/python/training/coordinator.py34 #### Usage:STRING
LOWtensorflow/python/training/session_manager.py86 ### Usage:STRING
LOWtensorflow/python/lib/core/py_exception_registry.h34// Example usage:COMMENT
LOWtensorflow/lite/kernels/shim/op_kernel.h154// Example usage:COMMENT
LOWtensorflow/lite/kernels/shim/tflite_op_wrapper.h149// Example usage:COMMENT
LOWtensorflow/lite/kernels/shim/tensor_view.h59 // Example usage:COMMENT
LOW…imental/acceleration/compatibility/gpu_compatibility.h39// Example usage:COMMENT
LOWtensorflow/lite/testing/zip_test_utils.py47# Usage:COMMENT
LOWtensorflow/lite/delegates/gpu/api.h19// Usage example:COMMENT
LOWtensorflow/lite/delegates/gpu/common/task/util.h60// Example usage:COMMENT
LOWtensorflow/lite/delegates/gpu/cl/api.h33// Usage example:COMMENT
LOW…c/experimental/pluggable_profiler/pluggable_profiler.h46// Example usage:COMMENT
LOWtensorflow/c/experimental/grappler/grappler.h50// Example usage:COMMENT
LOW…rflow/c/experimental/stream_executor/stream_executor.h45// Example usage:COMMENT
LOWtensorflow/compiler/tf2xla/python/xla.py482# Usage:COMMENT
LOWtensorflow/compiler/jit/node_matchers.h18// Example usage:COMMENT
LOWtensorflow/compiler/jit/xla_host_send_device_context.h32// Example usage:COMMENT
LOWtensorflow/compiler/jit/xla_host_recv_device_context.h32// Example usage:COMMENT
Modern Structural Boilerplate72 hits · 66 pts
SeverityFileLineSnippetContext
LOW…arty/xla/build_tools/lint/generate_compile_commands.py53def _setup_external_symlink(xla_src_root: pathlib.Path) -> None:STRING
LOWthird_party/xla/build_tools/ci/clang_tidy_diff.py174def _set_log_level(log_level: str) -> None:CODE
LOWthird_party/xla/build_tools/ci/clang_tidy_diff.py184 def _set_level(level: int) -> None:CODE
LOWtensorflow/dtensor/python/tests/test_util.py401__all__ = [CODE
LOWtensorflow/tools/pip_package/build_pip_package.py345def update_xla_tsl_imports(srcs_dir: str) -> None:CODE
LOWtensorflow/tools/common/traverse.py22__all__ = ['traverse']CODE
LOW…sorflow/core/function/trace_type/trace_type_builder.py89 def update_naming_scope(self, naming_scope: Optional[str]) -> None:CODE
LOWtensorflow/python/__init__.py34__all__ = [s for s in dir() if s in _exported_dunders or not s.startswith('_')]CODE
LOW…low/python/tools/api/generator2/generator/generator.py634__all__ = [_s for _s in dir() if not _s.startswith('_')]CODE
LOW…orflow/python/tools/api/generator/create_python_api.py249__all__ = [_s for _s in dir() if not _s.startswith('_')]CODE
LOWtensorflow/python/util/all_util.py115__all__ = [CODE
LOWtensorflow/python/framework/test_util.py4140def set_producer_version(graph: ops.Graph, producer_version: int) -> None:CODE
LOWtensorflow/python/framework/ops.py1382 def _set_control_flow_context(self, ctx) -> None:CODE
LOWtensorflow/python/framework/ops.py1598 def _set_attr(self, attr_name, attr_value) -> None:CODE
LOWtensorflow/python/framework/ops.py1607 def _set_attr_with_buf(self, attr_name, attr_buf) -> None:CODE
LOWtensorflow/python/framework/ops.py1614 def _set_func_attr(self, attr_name, func_name) -> None:CODE
LOWtensorflow/python/framework/ops.py1619 def _set_func_list_attr(self, attr_name, func_names) -> None:CODE
LOWtensorflow/python/framework/ops.py1626 def _set_type_list_attr(self, attr_name, data_types) -> None:CODE
LOWtensorflow/python/framework/ops.py1635 def _set_shape_list_attr(self, attr_name, shapes) -> None:CODE
LOWtensorflow/python/framework/ops.py2405 def _set_control_flow_context(self, ctx) -> None:CODE
LOWtensorflow/python/framework/ops.py6189def set_dtype_conversion_mode(dtype_conversion_mode) -> None:CODE
LOWtensorflow/python/framework/ops.py638 def set_shape(self, shape) -> None:CODE
LOWtensorflow/python/framework/ops.py1491 def _set_device(self, device) -> None: # pylint: disable=redefined-outer-nameCODE
LOWtensorflow/python/framework/ops.py1499 def _update_input(self, index, tensor) -> None:CODE
LOWtensorflow/python/framework/ops.py1859def set_shape_and_handle_data_for_outputs(_) -> None:CODE
LOWtensorflow/python/framework/ops.py6247def set_int_list_attr(op, attr_name, ints) -> None:CODE
LOWtensorflow/python/framework/versions.py89__all__ = [CODE
LOWtensorflow/python/training/checkpoint_utils.py40__all__ = [CODE
LOWtensorflow/python/ops/check_ops.py47__all__ = [CODE
LOWtensorflow/python/ops/variable_scope.py45__all__ = [CODE
LOWtensorflow/python/ops/template.py30__all__ = ["make_template"]CODE
LOWtensorflow/python/ops/critical_section_ops.py33__all__ = ["CriticalSection"]CODE
LOWtensorflow/python/ops/partitioned_variables.py59__all__ = [CODE
LOW…rflow/python/ops/linalg/linear_operator_householder.py29__all__ = ["LinearOperatorHouseholder",]CODE
LOWtensorflow/python/ops/linalg/linear_operator_diag.py29__all__ = ["LinearOperatorDiag",]CODE
LOW…sorflow/python/ops/linalg/linear_operator_inversion.py22__all__ = ["LinearOperatorInversion"]CODE
LOW…/python/ops/linalg/linear_operator_lower_triangular.py26__all__ = [CODE
LOW…nsorflow/python/ops/linalg/linear_operator_identity.py36__all__ = [CODE
LOW…orflow/python/ops/linalg/linear_operator_block_diag.py31__all__ = ["LinearOperatorBlockDiag"]CODE
LOW…rflow/python/ops/linalg/linear_operator_composition.py32__all__ = ["LinearOperatorComposition"]CODE
LOW…nsorflow/python/ops/linalg/linear_operator_toeplitz.py30__all__ = ["LinearOperatorToeplitz",]CODE
LOWtensorflow/python/ops/linalg/linear_operator_tridiag.py31__all__ = ['LinearOperatorTridiag',]CODE
LOW…rflow/python/ops/linalg/linear_operator_permutation.py32__all__ = ["LinearOperatorPermutation",]CODE
LOWtensorflow/python/ops/linalg/slicing.py27__all__ = ['batch_slice']CODE
LOWtensorflow/python/ops/linalg/linear_operator_zeros.py34__all__ = [CODE
LOW…nsorflow/python/ops/linalg/linear_operator_addition.py29__all__ = []CODE
LOW…w/python/ops/linalg/linear_operator_low_rank_update.py30__all__ = [CODE
LOW…n/ops/linalg/linear_operator_block_lower_triangular.py36__all__ = ["LinearOperatorBlockLowerTriangular"]CODE
LOW…sorflow/python/ops/linalg/linear_operator_circulant.py35__all__ = [CODE
LOW…rflow/python/ops/linalg/linear_operator_full_matrix.py26__all__ = ["LinearOperatorFullMatrix"]CODE
LOW…sorflow/python/ops/linalg/linear_operator_kronecker.py31__all__ = ["LinearOperatorKronecker"]CODE
LOWtensorflow/python/ops/linalg/linear_operator.py52__all__ = ["LinearOperator"]CODE
LOWtensorflow/python/ops/linalg/linear_operator_adjoint.py25__all__ = ["LinearOperatorAdjoint"]CODE
LOWtensorflow/python/ops/linalg/sparse/sparse.py24__all__ = [CODE
LOW…flow/python/ops/linalg/sparse/sparse_csr_matrix_ops.py35__all__ = [CODE
LOW…nsorflow/python/ops/distributions/identity_bijector.py22__all__ = [CODE
LOWtensorflow/python/ops/distributions/laplace.py36__all__ = [CODE
LOWtensorflow/python/ops/distributions/dirichlet.py33__all__ = [CODE
LOW…w/python/ops/distributions/transformed_distribution.py32__all__ = [CODE
LOWtensorflow/python/ops/distributions/student_t.py36__all__ = [CODE
12 more matches not shown…
Verbosity Indicators40 hits · 62 pts
SeverityFileLineSnippetContext
LOWthird_party/xla/xla/online_topsort.h492 // Step 1: test order: if w is already higher than v in the lexicographicalCOMMENT
LOWthird_party/xla/xla/online_topsort.h502 // Step 2: search backwards from v, until we either find `w`, which means weCOMMENT
LOWthird_party/xla/xla/online_topsort.h526 // Step 3: search forwards from w, following outgoing edges only from nodesCOMMENT
LOWthird_party/xla/xla/online_topsort.h539 // Step 4: update indices.COMMENT
LOWthird_party/xla/xla/online_topsort.h552 // Step 5: add the edge.COMMENT
LOW…rd_party/xla/xla/service/mapped_ptr_container_sorter.h369 // Step 1: build a set of the ptrs in unordered_containerCOMMENT
LOW…rd_party/xla/xla/service/mapped_ptr_container_sorter.h376 // Step 2: for mapped elements (in unordered_container), create a map fromCOMMENT
LOW…rd_party/xla/xla/service/mapped_ptr_container_sorter.h398 // Step 3: create sorted unordered element indicesCOMMENT
LOW…sorflow/dtensor/mlir/expansions/gather_spmd_expander.h77 // Step 1: If the params are sharded on dim axis, an unconditionalCOMMENT
LOW…sorflow/dtensor/mlir/expansions/gather_spmd_expander.h138 // Step 2: Check the output layout. If it requires all-relayouting indices.COMMENT
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py239 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOW…ols/ci_build/osx/arm64/tensorflow_metal_plugin_test.py258 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/keras/legacy_tf_layers/base.py116 The purpose of this function is to allow users of existing layers toSTRING
LOWtensorflow/python/framework/tensor_util.py1282 For example, in the following code block:STRING
LOWtensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py1154 ########### Step 1: Run static graph and generate readoutsCOMMENT
LOWtensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py1214 ########## Step 2: Run dynamic graph and generate readoutsCOMMENT
LOWtensorflow/python/kernel_tests/nn_ops/rnn_cell_test.py1290 ######### Step 3: ComparisonsCOMMENT
LOWtensorflow/python/training/momentum_test.py82 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py97 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/momentum_test.py309 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py324 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/momentum_test.py488 # Step 1: the momentum accumulators are 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py511 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/momentum_test.py561 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/momentum_test.py576 # Step 2: the second momentum accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/rmsprop_test.py314 # Step 1: the rms accumulators where 1. So we should see a normalCOMMENT
LOWtensorflow/python/training/rmsprop_test.py333 # Step 2: the root mean square accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/rmsprop_test.py384 # Step 1: rms = 1, mom = 0. So we should see a normalCOMMENT
LOWtensorflow/python/training/rmsprop_test.py414 # Step 2: the root mean square accumulators contain the previous update.COMMENT
LOWtensorflow/python/training/rmsprop_test.py476 # Step 1: the rms accumulators where 1. So we should see a normalCOMMENT
LOWtensorflow/python/training/rmsprop_test.py490 # Step 2: the root mean square accumulators contain the previous update.COMMENT
LOWtensorflow/python/ops/distributions/distribution.py109 # Step 0: Prepend spaces to all lines of append_str. This isCOMMENT
LOWtensorflow/python/ops/distributions/distribution.py113 # Step 1: Find mention of "Args":COMMENT
LOWtensorflow/python/compiler/tensorrt/utils.py195 # Step 1: Parsing the graph and drawing OPs one by one.COMMENT
LOWtensorflow/python/compiler/tensorrt/utils.py232 # Step 2: Creating the DType Nodes previously found in Step 1.COMMENT
LOWtensorflow/python/compiler/tensorrt/utils.py245 # Step 3: Alignment of the legend with the graph.COMMENT
LOWtensorflow/compiler/tests/momentum_test.py62 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/compiler/tests/momentum_test.py77 # Step 2: the momentum accumulators contain the previous update.COMMENT
LOWtensorflow/compiler/tests/momentum_test.py148 # Step 1: the momentum accumulators where 0. So we should see a normalCOMMENT
LOWtensorflow/compiler/tests/momentum_test.py163 # Step 2: the momentum accumulators contain the previous update.COMMENT
Fake / Example Data47 hits · 54 pts
SeverityFileLineSnippetContext
LOWtensorflow/dtensor/python/tests/layout_test.py151 mesh._name = 'fake_name'CODE
LOWtensorflow/go/operation_test.go160 placeholder, err := Placeholder(graph, "placeholder", dummyTensor.DataType())CODE
LOWtensorflow/core/framework/function.h106 // it starts with "$", we construct a AttrValue of "placeholder".COMMENT
LOWtensorflow/core/example/feature_util.h37// *tag->Add() = "lorem ipsum";COMMENT
LOW…sorflow/core/function/capture/free_vars_detect_test.py386 glob = "dummy_value"CODE
LOWtensorflow/core/grappler/utils/functions.h129// body is parametrized, if it has at least one node with a 'placeholder'COMMENT
LOWtensorflow/core/data/dataset_utils.h230// This op is used to provide a resource "placeholder" for ops such asCOMMENT
LOWtensorflow/python/trackable/resource_test.py169 dummy_0 = _DummyResource1(handle_name="fake_name")CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1394 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1403 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1440 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1448 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1508 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1521 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1551 input_arg {name: "placeholder" type: DT_FLOAT}CODE
LOW…nsorflow/python/framework/convert_to_constants_test.py1563 input_arg {name: "placeholder" type: DT_RESOURCE}CODE
LOWtensorflow/python/framework/op_def_util_test.py130 "placeholder: ''", # 'placeholder' not supported.CODE
LOW…python/kernel_tests/strings_ops/reduce_join_op_test.py236 placeholder = array_ops.placeholder(dtypes.string, name="placeholder")CODE
LOW…python/kernel_tests/strings_ops/reduce_join_op_test.py250 placeholder = array_ops.placeholder(dtypes.int32, name="placeholder")CODE
LOW…python/kernel_tests/strings_ops/reduce_join_op_test.py329 placeholder = array_ops.placeholder(dtypes.string, name="placeholder")CODE
LOW…python/kernel_tests/strings_ops/reduce_join_op_test.py340 placeholder = array_ops.placeholder(dtypes.int32, name="placeholder")CODE
LOW…flow/python/kernel_tests/control_flow/while_v2_test.py1646 name: "placeholder"CODE
LOW…flow/python/kernel_tests/control_flow/while_v2_test.py1665 input: "placeholder"CODE
LOW…flow/python/kernel_tests/control_flow/while_v2_test.py1832 name: "placeholder"CODE
LOW…flow/python/kernel_tests/control_flow/while_v2_test.py1867 input: "placeholder"CODE
LOW…sorflow/python/distribute/multi_process_runner_test.py56 return 'dummy_data'CODE
LOW…sorflow/python/distribute/multi_process_runner_test.py116 self.assertEqual(return_value[0], 'dummy_data')CODE
LOW…sorflow/python/distribute/multi_process_runner_test.py117 self.assertEqual(return_value[1], 'dummy_data')CODE
LOW…ow/python/distribute/collective_all_reduce_strategy.py1052 dummy_value = array_ops.identity([])CODE
LOW…ow/python/distribute/collective_all_reduce_strategy.py1060 dummy_value,CODE
LOW…ow/python/distribute/collective_all_reduce_strategy.py1061 dummy_value,CODE
LOWtensorflow/python/ops/array_ops.py2999@tf_export(v1=["placeholder"])CODE
LOWtensorflow/python/summary/summary_v2_test.py302 i = constant_op.constant('lorem ipsum', dtype=dtypes.string)CODE
LOW…thon/debug/examples/v1/examples_v1_debug_mnist_test.sh54cat << EOF | ${DEBUG_MNIST_BIN} --debug --max_steps=1 --fake_data --ui_type=readline --use_random_config_pathCODE
LOWtensorflow/python/debug/examples/v1/debug_mnist_v1.py76 "--fake_data",CODE
LOWtensorflow/python/debug/examples/v1/debug_mnist_v1.py110 if FLAGS.fake_data:CODE
LOWtensorflow/python/debug/examples/v1/examples_v1_test.sh80cat << EOF | ${DEBUG_MNIST_BIN} --debug --max_steps=1 --fake_data --ui_type=readline --use_random_config_pathCODE
LOWtensorflow/python/debug/examples/v2/debug_mnist_v2.py71 "--fake_data",CODE
LOWtensorflow/python/debug/examples/v2/debug_mnist_v2.py135 if FLAGS.fake_data:CODE
LOWtensorflow/python/debug/examples/v2/examples_v2_test.sh58${DEBUG_MNIST_BIN} --max_steps=4 --fake_dataCODE
LOWtensorflow/python/debug/examples/v2/examples_v2_test.sh62${DEBUG_MNIST_BIN} --max_steps=1 --fake_data --check_numericsCODE
LOWtensorflow/python/debug/examples/v2/examples_v2_test.sh65! ${DEBUG_MNIST_BIN} --max_steps=4 --fake_data --check_numericsCODE
LOWtensorflow/python/debug/examples/v2/examples_v2_test.sh69${DEBUG_MNIST_BIN} --max_steps=4 --fake_data --dump_dir="${TMP_DIR}"CODE
LOWtensorflow/lite/testing/op_tests/mirror_pad.py46 "type": ["placeholder"],CODE
LOWtensorflow/lite/testing/op_tests/mirror_pad.py53 "type": ["placeholder"],CODE
LOWtensorflow/lite/testing/op_tests/mirror_pad.py60 "type": ["placeholder"],CODE
LOWtensorflow/lite/testing/op_tests/mirror_pad.py82 "type": ["placeholder"],CODE
Dead Code20 hits · 40 pts
SeverityFileLineSnippetContext
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py512CODE
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py517CODE
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py518CODE
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py519CODE
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py521CODE
MEDIUM…w/dtensor/python/tests/multi_client_input_util_test.py543CODE
MEDIUM…orflow/python/autograph/operators/control_flow_test.py832CODE
MEDIUM…/python/autograph/converters/return_statements_test.py42CODE
MEDIUM…/python/autograph/converters/return_statements_test.py43CODE
MEDIUM…/python/autograph/converters/return_statements_test.py51CODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py189CODE
MEDIUMtensorflow/python/autograph/pyct/cfg_test.py1430CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py275CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py279CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py280CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py283CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py284CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py287CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py288CODE
MEDIUMtensorflow/python/ops/control_flow_ops_test.py291CODE
Overly Generic Function Names40 hits · 33 pts
SeverityFileLineSnippetContext
LOWtensorflow/python/autograph/impl/api_test.py380 def test_function(self):CODE
LOWtensorflow/python/autograph/pyct/transformer_test.py73 def test_function(a):CODE
LOWtensorflow/python/autograph/pyct/transformer_test.py132 def test_function(a):CODE
LOWtensorflow/python/autograph/pyct/transformer_test.py169 def test_function(x, y):CODE
LOWtensorflow/python/autograph/pyct/transformer_test.py200 def test_function(x):CODE
LOWtensorflow/python/autograph/pyct/transformer_test.py231 def test_function(x):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py84 def test_function():CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py95 def test_function(x, y, z):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py108 def test_function(a, b, c, e, f, g):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py125 def test_function(b, c, d, e):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py139 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.py155 def test_function(a, b, c):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py171 def test_function(a, b, c):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py191 def test_function(a):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py211 def test_function():CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py227 def test_function(a, b, c, d, e, f):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py241 def test_function(a, b, c, d, e, f):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py256 def test_function(a, b, c, d, e, f):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py270 def test_function(foo, bar, baz):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py285 def test_function(a, d):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py298 def test_function(a, b, c, d, e, f):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py311 def test_function(a, x, y, z):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py327 def test_function(a, c, some_computed, exception):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py342 def test_function(foo, bar, function, quux, quozzle, w, x, y, z):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py365 def test_function(foo, quux):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py380 def test_function(compute, something, complicated, foo):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py400 def test_function(b, c, d, f):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py464 def test_function(x, frob):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py486 def test_function(x, foo, bar):CODE
LOW…/python/autograph/pyct/common_transformers/anf_test.py505 def test_function(f):CODE
LOWtensorflow/python/keras/engine/training.py1328 def test_function(iterator):CODE
LOWtensorflow/python/keras/engine/training.py1334 def test_function(iterator):CODE
LOWtensorflow/python/util/tf_decorator_test.py68def test_function(x):CODE
LOWtensorflow/python/util/decorator_utils_test.py36 def test_function(self):CODE
LOWtensorflow/python/util/decorator_utils_test.py97 def test_function(self):CODE
LOW…orflow/python/kernel_tests/control_flow/map_fn_test.py218 def test_function(x):CODE
LOWtensorflow/python/ops/custom_gradient.py653 >>> def my_function(x):STRING
LOW…ager/polymorphic_function/polymorphic_function_test.py1528 def my_function(_):CODE
LOW…eager/polymorphic_function/tracing_compilation_test.py305 def test_function(val):CODE
LOW…ow/python/eager/polymorphic_function/gradients_test.py440 def my_function(x):CODE
Synthetic Comment Markers4 hits · 28 pts
SeverityFileLineSnippetContext
HIGHthird_party/xla/xla/packed_literal_reader.h33// Reads packed data from a metadata-less file as requested by a user (who mustCOMMENT
HIGHthird_party/xla/docs/contributing.md186### AI-generated contributionsCOMMENT
HIGHthird_party/xla/docs/contributing.md205 their PRs in detail regardless of whether it was generated by AI or not.CODE
HIGHtensorflow/python/distribute/multi_process_lib.py150 # 3. Spawn any process as requested by the "spawn" method.COMMENT
AI Response Leakage5 hits · 28 pts
SeverityFileLineSnippetContext
HIGHtensorflow/core/framework/reader_base.h118 // In this implementation all the records come from the same work unit.COMMENT
HIGHtensorflow/python/training/saver.py1523 # tf.get_collection() returns a list. In this example we only wantSTRING
HIGH…flow/python/distribute/parameter_server_strategy_v2.py306 # In this example, we're assuming having 3 ps.STRING
HIGHtensorflow/examples/custom_ops_doc/sleep/sleep_op.py31# 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.py29# In this example, this Python function is a trivial wrapper for the C++ Op:COMMENT
Slop Phrases17 hits · 22 pts
SeverityFileLineSnippetContext
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py94 # Only keyword args are handled, so make sure to also put any function inCOMMENT
LOWtensorflow/tools/compatibility/tf_upgrade_v2.py1386 # - node, if node was modified in place (make sure to useCOMMENT
LOWtensorflow/tools/api/tests/api_compatibility_test.py89 # we make sure to resolve symbolic links before creating new files.STRING
MEDIUM…ernels/batching_util/adaptive_shared_batch_scheduler.h107 // Lower bound for in_flight_batches_limit_. As discussed above, can be usedCOMMENT
MEDIUMtensorflow/python/keras/constraints.py40 Here's a simple example of a non-negative weight constraint:STRING
LOWtensorflow/python/keras/engine/training.py2605 # Also make sure to exclude Model class itself which has build() defined.COMMENT
MEDIUMtensorflow/python/keras/initializers/initializers_v2.py50 Here's a simple example: a random normal initializer.STRING
LOW…orflow/python/checkpoint/sharding/sharding_policies.py217 # If the tensor has already been sliced, make sure to keep track of itsCOMMENT
MEDIUMtensorflow/python/framework/test_combinations.py17Here is a simple example for testing various optimizers in Eager and Graph:STRING
MEDIUMtensorflow/python/framework/test_util.py4270 For example, here is how you can measure how long `tf.linalg.matmul` runs:STRING
MEDIUMtensorflow/python/training/sync_replicas_optimizer.py107 # Note that if you want to have 2 backup replicas, you can changeSTRING
MEDIUMtensorflow/python/distribute/cross_device_ops.py589 Here is how you can use `ReductionToOneDevice` inSTRING
MEDIUMtensorflow/python/distribute/cross_device_ops.py969 Here is how you can use `NcclAllReduce` in `tf.distribute.MirroredStrategy`:STRING
MEDIUMtensorflow/python/distribute/cross_device_ops.py1011 Here is how you can use `HierarchicalCopyAllReduce` inSTRING
MEDIUMtensorflow/python/client/session.py173 #then after invoking this register function, you can use as follows:STRING
LOWtensorflow/lite/python/lite.py1573 # We make sure to clear the saved_model_dir as there is someCOMMENT
MEDIUM.github/bot_config.yml86 * The easiest way to use TF will be to switch to [google colab](https://colab.sandbox.google.com/notebooks/welcCOMMENT
Modern AI Meta-Vocabulary2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUMthird_party/xla/build_tools/ci/run_clang_tidy.sh76# TODO(sohaibiftikhar): Move the bash orchestration to python.COMMENT
MEDIUMtensorflow/python/training/monitored_session.py166 # NOTE(touts): modifying the init function to be passed the scaffold is aCOMMENT