Views
No views yet
TextLineDataset reads a local text file and returns its first line.DatasetToTFRecord writes a TFRecord file and overwrites the target path.saved_model.pb and fingerprint.pb, then reports zero issues. The scanner's TensorFlow SavedModel unsafe-op list covers ReadFile and WriteFile, but does not flag these dataset I/O ops even though the runtime consumes them.tensorflow==2.21.0modelscan==0.8.8savedmodel_dataset_io/: PoC TensorFlow SavedModel artifact.verify_poc.py: Loads the SavedModel, invokes the signatures, and validates benign marker read/write effects.modelscan_dataset_io.json: Captured ModelScan 0.8.8 JSON output.runtime_dataset_io.json: Captured TensorFlow runtime validation output.dataset_io_graph_ops.txt: Extracted op names from saved_model.pb.dataset_io_sha256sums.txt: SHA256 hashes for the artifact files.1python -m venv .venv
2. .venv/bin/activate
3pip install tensorflow==2.21.0 modelscan==0.8.8
4
5python verify_poc.py
6modelscan -p savedmodel_dataset_io -r json --show-skippedfixed_first_line and parameterized_first_line equal TFSM_TEXTLINE_DATASET_MARKER_2026.fixed_record and parameterized_record equal TFSM_DATASET_TO_TFRECORD_MARKER_2026.*_matched fields are true.1{
2 "summary": {
3 "total_issues": 0,
4 "total_issues_by_severity": {
5 "LOW": 0,
6 "MEDIUM": 0,
7 "HIGH": 0,
8 "CRITICAL": 0
9 },
10 "scanned": {
11 "total_scanned": 2,
12 "scanned_files": ["fingerprint.pb", "saved_model.pb"]
13 }
14 },
15 "issues": [],
16 "errors": []
17}ReadFile or WriteFile:1DatasetToTFRecord
2TextLineDatasetdataset_io_graph_ops.txt contains the full extracted op list.1153485cab9a8aa350d4e47336ff6888ac073facfc554ac50d6fe77b7e7b71165 savedmodel_dataset_io/saved_model.pb
2d85300d23aefe12eb26725b97cbc79917415dc824d273142d638f1f31f6be030 savedmodel_dataset_io/fingerprint.pb
3849c94eceaa927b215674c9cbda5393d2bfabebed1605d87f28de06b221a1063 savedmodel_dataset_io/variables/variables.data-00000-of-00001
44eeeb44652a18698ebcb7be0d364bfe58c3d9d19b5d7cab9910cccbc9bfdab1d savedmodel_dataset_io/variables/variables.indextensorflow.raw_ops op as safe by default. Expand SavedModel scanning to cover dataset and filesystem-adjacent ops such as TextLineDataset, TFRecordDataset, DatasetToTFRecord, CSVDataset*, SqlDataset, SaveDataset, SnapshotDataset*, summary writers, and related filesystem configuration ops, or move toward a serving-safe allowlist.