A flexible, high-performance serving system for machine learning models
This report presents the forensic synthetic code analysis of tensorflow/serving, a C++ project with 6,354 GitHub stars. SynthScan v2.0 examined 30,605 lines of code across 260 source files, recording 411 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 23.0 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).
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.
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.
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.
The scanner identified 411 distinct pattern matches across 13 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/run_in_docker.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tools/run_in_docker.sh | 21 | # a source tree. Also useful for running python scripts without having to | COMMENT |
| LOW | tools/gen_status_stamp.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …erving/experimental/example/half_plus_two_with_rpop.py | 1 | # Copyright 2020 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …_serving/experimental/example/remote_predict_client.py | 1 | # Copyright 2020 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …experimental/example/half_plus_two_with_rpop_client.py | 1 | # Copyright 2020 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …experimental/tensorflow/ops/remote_predict/__init__.py | 1 | # Copyright 2020 Google Inc. All Rights Reserved. | COMMENT |
| LOW | …/ops/remote_predict/kernels/remote_predict_op_kernel.h | 21 | #include "absl/flags/flag.h" | COMMENT |
| LOW | …ow/ops/remote_predict/python/ops/remote_predict_ops.py | 1 | # Copyright 2020 Google Inc. All Rights Reserved. | COMMENT |
| LOW | tensorflow_serving/tools/docker/setup.sources.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | …erving/tools/docker/tests/dockerfile_devel_mkl_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …flow_serving/tools/docker/tests/dockerfile_gpu_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …ow_serving/tools/docker/tests/dockerfile_devel_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …nsorflow_serving/tools/docker/tests/docker_test_lib.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …nsorflow_serving/tools/docker/tests/dockerfile_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …flow_serving/tools/docker/tests/dockerfile_mkl_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …erving/tools/docker/tests/dockerfile_devel_gpu_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh | 1 | #!/bin/bash | COMMENT |
| LOW | …sorflow_serving/tools/pip_package/build_pip_package.sh | 1 | #!/bin/bash | COMMENT |
| LOW | tensorflow_serving/tools/pip_package/setup.py | 1 | # Copyright 2017 Google Inc. All Rights Reserved. | COMMENT |
| LOW | tensorflow_serving/apis/model_service_pb2_grpc.py | 1 | # Copyright 2018 Google Inc. All Rights Reserved. | COMMENT |
| LOW | tensorflow_serving/apis/prediction_service_pb2_grpc.py | 1 | # Copyright 2016 Google Inc. All Rights Reserved. | COMMENT |
| LOW | tensorflow_serving/apis/prediction_service_pb2.py | 1 | # Copyright 2016 Google Inc. All Rights Reserved. | COMMENT |
| LOW | tensorflow_serving/apis/model_service_pb2.py | 1 | # Copyright 2018 Google Inc. All Rights Reserved. | COMMENT |
| LOW | tensorflow_serving/apis/classifier.h | 21 | COMMENT | |
| LOW | tensorflow_serving/apis/regressor.h | 21 | #include "tensorflow_serving/apis/regression.pb.h" | COMMENT |
| LOW | tensorflow_serving/core/servable_state_monitor.h | 21 | #include <map> | COMMENT |
| LOW | tensorflow_serving/core/servable_state_monitor.h | 121 | BoundedLog GetBoundedLog() const TF_LOCKS_EXCLUDED(mu_); | COMMENT |
| LOW | tensorflow_serving/core/servable_state_monitor.h | 141 | /// | COMMENT |
| LOW | tensorflow_serving/core/resource_preserving_policy.h | 21 | #include "absl/types/optional.h" | COMMENT |
| LOW | …orflow_serving/core/aspired_versions_manager_builder.h | 21 | #include "tensorflow/core/lib/core/status.h" | COMMENT |
| LOW | …orflow_serving/core/aspired_versions_manager_builder.h | 41 | /// | COMMENT |
| LOW | …orflow_serving/core/aspired_versions_manager_builder.h | 61 | using Options = AspiredVersionsManager::Options; | COMMENT |
| LOW | tensorflow_serving/core/servable_state.h | 21 | COMMENT | |
| LOW | tensorflow_serving/core/servable_state.h | 41 | // The state of the servable as maintained by a manager. These states can only | COMMENT |
| LOW | tensorflow_serving/core/simple_loader.h | 21 | #include <type_traits> | COMMENT |
| LOW | tensorflow_serving/core/simple_loader.h | 41 | // to take a dependency on SavedModelBundle and Servable. | COMMENT |
| LOW | tensorflow_serving/core/simple_loader.h | 61 | // memory resources are specified, Unload() releases that amount of memory to | COMMENT |
| LOW | tensorflow_serving/core/simple_loader.h | 101 | // Constructor that takes a single resource estimator, to use for estimating | COMMENT |
| LOW | tensorflow_serving/core/simple_loader.h | 181 | COMMENT | |
| LOW | tensorflow_serving/core/simple_loader.h | 201 | // For more complex behaviors, SimpleLoaderSourceAdapter is inapplicable. You | COMMENT |
| LOW | tensorflow_serving/core/manager.h | 21 | #include <memory> | COMMENT |
| LOW | tensorflow_serving/core/manager.h | 81 | /// Gets a list of all available servable ids, i.e. each of these can | COMMENT |
| LOW | tensorflow_serving/core/source.h | 21 | COMMENT | |
| LOW | tensorflow_serving/core/source.h | 41 | /// find out about new servables and/or new versions of servables and/or the | COMMENT |
| LOW | tensorflow_serving/core/source.h | 61 | /// state should be deferred to the first applicable Loader::Load() call, i.e. | COMMENT |
| LOW | …nsorflow_serving/core/availability_preserving_policy.h | 21 | #include "tensorflow_serving/core/aspired_version_policy.h" | COMMENT |
| LOW | tensorflow_serving/core/servable_id.h | 21 | #include <unordered_map> | COMMENT |
| LOW | tensorflow_serving/core/servable_id.h | 41 | // active servable with the largest version number. | COMMENT |
| LOW | tensorflow_serving/core/servable_handle.h | 41 | virtual AnyPtr servable() = 0; | COMMENT |
| LOW | tensorflow_serving/core/servable_handle.h | 61 | /// // Define or use an existing servable: | COMMENT |
| LOW | tensorflow_serving/core/static_source_router.h | 21 | #include <vector> | COMMENT |
| LOW | tensorflow_serving/core/request_logger.h | 21 | #include <vector> | COMMENT |
| LOW | tensorflow_serving/core/source_router.h | 21 | #include <vector> | COMMENT |
| LOW | tensorflow_serving/core/source_router.h | 41 | // /path/to/some/orange/servable | COMMENT |
| LOW | tensorflow_serving/core/static_manager.h | 21 | #include "absl/synchronization/notification.h" | COMMENT |
| LOW | tensorflow_serving/core/loader.h | 21 | #include "tensorflow/core/lib/core/errors.h" | COMMENT |
| LOW | tensorflow_serving/core/loader.h | 41 | /// A Loader should start in an unloaded state, meaning that no work has been | COMMENT |
| LOW | tensorflow_serving/core/loader.h | 61 | virtual ~Loader() = default; | COMMENT |
| 195 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | tensorflow_serving/example/resnet_client_grpc.py | 35 | tf.compat.v1.app.flags.DEFINE_string('server', 'localhost:8500', | CODE |
| CRITICAL | tensorflow_serving/example/resnet_client_grpc.py | 37 | tf.compat.v1.app.flags.DEFINE_string('image', '', | CODE |
| CRITICAL⚡ | tensorflow_serving/example/mnist_client.py | 42 | tf.compat.v1.app.flags.DEFINE_integer( | CODE |
| CRITICAL⚡ | tensorflow_serving/example/mnist_client.py | 44 | tf.compat.v1.app.flags.DEFINE_integer('num_tests', 100, 'Number of test images') | CODE |
| CRITICAL⚡ | tensorflow_serving/example/mnist_client.py | 45 | tf.compat.v1.app.flags.DEFINE_string('server', '', | CODE |
| CRITICAL⚡ | tensorflow_serving/example/mnist_client.py | 47 | tf.compat.v1.app.flags.DEFINE_string('work_dir', '/tmp', 'Working directory. ') | CODE |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 39 | tf.compat.v1.app.flags.DEFINE_integer('training_iteration', 1000, | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 41 | tf.compat.v1.app.flags.DEFINE_integer('model_version', 1, | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 43 | tf.compat.v1.app.flags.DEFINE_string('work_dir', '/tmp', 'Working directory.') | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 104 | builder = tf.compat.v1.saved_model.builder.SavedModelBuilder(export_path) | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 107 | classification_inputs = tf.compat.v1.saved_model.utils.build_tensor_info( | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 109 | classification_outputs_classes = tf.compat.v1.saved_model.utils.build_tensor_info( | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 111 | classification_outputs_scores = tf.compat.v1.saved_model.utils.build_tensor_info( | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 115 | tf.compat.v1.saved_model.signature_def_utils.build_signature_def( | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 131 | tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x) | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 132 | tensor_info_y = tf.compat.v1.saved_model.utils.build_tensor_info(y) | STRING |
| CRITICAL⚡ | tensorflow_serving/example/mnist_saved_model.py | 135 | tf.compat.v1.saved_model.signature_def_utils.build_signature_def( | STRING |
| CRITICAL | …g/model_servers/tensorflow_model_server_test_client.py | 30 | tf.compat.v1.app.flags.DEFINE_string('server', 'localhost:8500', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tools/run_in_docker.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | tools/gen_status_stamp.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …erving/experimental/example/half_plus_two_with_rpop.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …_serving/experimental/example/remote_predict_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …experimental/example/half_plus_two_with_rpop_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …experimental/tensorflow/ops/remote_predict/__init__.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ow/ops/remote_predict/python/ops/remote_predict_ops.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/tools/docker/setup.sources.sh | 16 | # ============================================================================== | COMMENT |
| MEDIUM | …erving/tools/docker/tests/dockerfile_devel_mkl_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …erving/tools/docker/tests/dockerfile_devel_mkl_test.sh | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …erving/tools/docker/tests/dockerfile_devel_mkl_test.sh | 40 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …flow_serving/tools/docker/tests/dockerfile_gpu_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …flow_serving/tools/docker/tests/dockerfile_gpu_test.sh | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …flow_serving/tools/docker/tests/dockerfile_gpu_test.sh | 40 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ow_serving/tools/docker/tests/dockerfile_devel_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …ow_serving/tools/docker/tests/dockerfile_devel_test.sh | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ow_serving/tools/docker/tests/dockerfile_devel_test.sh | 40 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nsorflow_serving/tools/docker/tests/docker_test_lib.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …nsorflow_serving/tools/docker/tests/dockerfile_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …nsorflow_serving/tools/docker/tests/dockerfile_test.sh | 31 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …nsorflow_serving/tools/docker/tests/dockerfile_test.sh | 39 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …flow_serving/tools/docker/tests/dockerfile_mkl_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …flow_serving/tools/docker/tests/dockerfile_mkl_test.sh | 31 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …flow_serving/tools/docker/tests/dockerfile_mkl_test.sh | 39 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …ng/tools/docker/tests/dockerfile_devel_gpu_trt_test.sh | 40 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …erving/tools/docker/tests/dockerfile_devel_gpu_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …erving/tools/docker/tests/dockerfile_devel_gpu_test.sh | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …erving/tools/docker/tests/dockerfile_devel_gpu_test.sh | 40 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh | 15 | # ============================================================================== | COMMENT |
| MEDIUM | …_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh | 32 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | …_serving/tools/docker/tests/dockerfile_gpu_trt_test.sh | 40 | # ------------------------------------------------------------------------------ | COMMENT |
| MEDIUM | tensorflow_serving/apis/model_service_pb2_grpc.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/apis/prediction_service_pb2_grpc.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/apis/prediction_service_pb2.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/apis/model_service_pb2.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/resnet_warmup.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/resnet_client_grpc.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/resnet_k8s.yaml | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/resnet_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/mnist_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/mnist_saved_model.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/example/mnist_input_data.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …/servables/tensorflow/testdata/parse_example_tflite.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …erving/servables/tensorflow/testdata/export_counter.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …vables/tensorflow/testdata/export_bad_half_plus_two.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …_serving/model_servers/tensorflow_model_server_test.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | tensorflow_serving/model_servers/profiler_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …g/model_servers/tensorflow_model_server_test_client.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …servers/test_util/tensorflow_model_server_test_base.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | …batching/test_util/matrix_half_plus_two_saved_model.py | 14 | # ============================================================================== | COMMENT |
| MEDIUM | .github/workflows/stale.yaml | 14 | # ============================================================================== | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_serving/experimental/example/remote_predict_client.py | 20 | CODE | |
| LOW | …experimental/example/half_plus_two_with_rpop_client.py | 39 | CODE | |
| LOW | …experimental/tensorflow/ops/remote_predict/__init__.py | 19 | CODE | |
| LOW | …experimental/tensorflow/ops/remote_predict/__init__.py | 20 | CODE | |
| LOW | …experimental/tensorflow/ops/remote_predict/__init__.py | 21 | CODE | |
| LOW | …experimental/tensorflow/ops/remote_predict/__init__.py | 23 | CODE | |
| LOW | …ow/ops/remote_predict/python/ops/remote_predict_ops.py | 17 | CODE | |
| LOW | …ow/ops/remote_predict/python/ops/remote_predict_ops.py | 18 | CODE | |
| LOW | …ow/ops/remote_predict/python/ops/remote_predict_ops.py | 19 | CODE | |
| LOW | …ow/ops/remote_predict/python/ops/remote_predict_ops.py | 26 | CODE | |
| LOW | tensorflow_serving/apis/prediction_service_pb2.py | 27 | CODE | |
| LOW | tensorflow_serving/apis/prediction_service_pb2.py | 28 | CODE | |
| LOW | tensorflow_serving/apis/model_service_pb2.py | 23 | CODE | |
| LOW | tensorflow_serving/apis/model_service_pb2.py | 24 | CODE | |
| LOW | tensorflow_serving/example/resnet_warmup.py | 34 | CODE | |
| LOW | tensorflow_serving/example/resnet_client_grpc.py | 19 | CODE | |
| LOW | tensorflow_serving/example/resnet_client.py | 30 | CODE | |
| LOW | tensorflow_serving/example/mnist_client.py | 28 | CODE | |
| LOW | tensorflow_serving/example/mnist_saved_model.py | 28 | CODE | |
| LOW | tensorflow_serving/example/mnist_input_data.py | 20 | CODE | |
| LOW | …erving/servables/tensorflow/testdata/export_counter.py | 21 | CODE | |
| LOW | …erving/servables/tensorflow/testdata/export_counter.py | 22 | CODE | |
| LOW | …erving/servables/tensorflow/testdata/export_counter.py | 23 | CODE | |
| LOW | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 48 | CODE | |
| LOW | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 49 | CODE | |
| LOW | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 50 | CODE | |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 18 | CODE | |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 19 | CODE | |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 20 | CODE | |
| LOW | tensorflow_serving/model_servers/profiler_client.py | 17 | CODE | |
| LOW | tensorflow_serving/model_servers/profiler_client.py | 18 | CODE | |
| LOW | tensorflow_serving/model_servers/profiler_client.py | 19 | CODE | |
| LOW | …g/model_servers/tensorflow_model_server_test_client.py | 17 | CODE | |
| LOW | …g/model_servers/tensorflow_model_server_test_client.py | 18 | CODE | |
| LOW | …g/model_servers/tensorflow_model_server_test_client.py | 19 | CODE | |
| LOW | …servers/test_util/tensorflow_model_server_test_base.py | 18 | CODE | |
| LOW | …servers/test_util/tensorflow_model_server_test_base.py | 19 | CODE | |
| LOW | …servers/test_util/tensorflow_model_server_test_base.py | 20 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …erving/experimental/example/half_plus_two_with_rpop.py | 82 | # Create a placeholder for serialized tensorflow.Example messages to be | STRING |
| MEDIUM | …erving/experimental/example/half_plus_two_with_rpop.py | 113 | # Initialize all variables and then save the SavedModel. | STRING |
| MEDIUM | tensorflow_serving/example/resnet_warmup.py | 71 | # Create the assets.extra directory, assuming model_dir is the versioned | COMMENT |
| MEDIUM | tensorflow_serving/example/resnet_warmup.py | 92 | # Create the inference request | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 140 | # Create an assets file that can be saved and restored as part of the | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 303 | # Create a placeholder for serialized tensorflow.Example messages to be | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 325 | # Create a small convolution op to trigger MKL | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 336 | # Create a small convolution op to trigger MKL | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 349 | # Create a small convolution op to trigger MKL | COMMENT |
| MEDIUM | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 379 | # Initialize all variables and then save the SavedModel. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 101 | def __init__(self, images, labels, fake_data=False, one_hot=False): | CODE |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 102 | """Construct a DataSet. one_hot arg is used only if fake_data is true.""" | STRING |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 104 | if fake_data: | CODE |
| LOW | tensorflow_serving/example/mnist_input_data.py | 142 | def next_batch(self, batch_size, fake_data=False): | CODE |
| LOW | tensorflow_serving/example/mnist_input_data.py | 144 | if fake_data: | CODE |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 171 | def read_data_sets(train_dir, fake_data=False, one_hot=False): | CODE |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 179 | if fake_data: | CODE |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 180 | data_sets.train = DataSet([], [], fake_data=True, one_hot=one_hot) | CODE |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 181 | data_sets.validation = DataSet([], [], fake_data=True, one_hot=one_hot) | CODE |
| LOW⚡ | tensorflow_serving/example/mnist_input_data.py | 182 | data_sets.test = DataSet([], [], fake_data=True, one_hot=one_hot) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …erving/experimental/example/half_plus_two_with_rpop.py | 46 | def _generate_saved_model_for_half_plus_two(export_dir, target_address, | STRING |
| LOW | …/servables/tensorflow/testdata/parse_example_tflite.py | 66 | def _generate_tflite_for_parse_example_with_string(export_dir): | CODE |
| LOW | …erving/servables/tensorflow/testdata/export_counter.py | 37 | def build_signature_def_from_tensors(inputs, outputs, method_name): | CODE |
| LOW | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 105 | def _build_regression_signature(input_tensor, output_tensor): | CODE |
| LOW | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 122 | def _build_classification_signature(input_tensor, scores_tensor): | CODE |
| LOW | …ables/tensorflow/testdata/saved_model_half_plus_two.py | 259 | def _generate_saved_model_for_half_plus_two( | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 655 | def test_tf_saved_model_save_multiple_signatures(self): | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 681 | def test_sequential_keras_saved_model_save(self): | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 705 | def test_distrat_sequential_keras_saved_model_save(self): | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 737 | def test_profiler_service_with_valid_trace_request(self): | CODE |
| LOW | …batching/test_util/matrix_half_plus_two_saved_model.py | 23 | def _generate_saved_model_for_matrix_half_plus_two(export_dir): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tensorflow_serving/example/mnist_client.py | 124 | Tests PredictionService with concurrent requests. Args: hostport: Host:port address of the PredictionService. | STRING |
| HIGH | …servers/test_util/tensorflow_model_server_test_base.py | 152 | Run tensorflow_model_server using test config. A unique instance of server is started for each set of arguments. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 453 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 473 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 493 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 514 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 534 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 563 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 579 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …_serving/model_servers/tensorflow_model_server_test.py | 597 | except Exception as e: # pylint: disable=broad-except | CODE |
| LOW | …servers/test_util/tensorflow_model_server_test_base.py | 102 | except Exception as e: # pylint: disable=broad-except | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …_serving/model_servers/tensorflow_model_server_test.py | 574 | # the sort OK (and the test robust). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tensorflow_serving/batching/streaming_batch_scheduler.h | 167 | // StreamingBatchScheduler never enqueues tasks, as discussed above. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tensorflow_serving/core/basic_manager.h | 89 | /// Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …servers/test_util/tensorflow_model_server_test_base.py | 138 | CODE |