Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 674025586
  • Loading branch information
tensorflower-gardener committed Sep 12, 2024
1 parent 04d81ab commit e4a35b4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tensorflow/core/data/utils.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ absl::StatusOr<bool> DisableCompressionAtRuntime(

void LogFilenames(const std::vector<std::string>& files) {}

void LogLineage(const std::vector<std::string>& files) {}

} // namespace data
} // namespace tensorflow
3 changes: 3 additions & 0 deletions tensorflow/core/data/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ absl::StatusOr<bool> DisableCompressionAtRuntime(
// successful
void LogFilenames(const std::vector<std::string>& files);

// Log filenames using the Cataline `lineage_log` API.
void LogLineage(const std::vector<std::string>& files);

} // namespace data
} // namespace tensorflow

Expand Down
1 change: 1 addition & 0 deletions tensorflow/core/kernels/data/tf_record_dataset_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ void TFRecordDatasetOp::MakeDataset(OpKernelContext* ctx,
metrics::RecordTFDataFilename(kDatasetType, filenames[i]);
}
LogFilenames(filenames);
LogLineage(filenames);

tstring compression_type;
OP_REQUIRES_OK(ctx, ParseScalarArgument<tstring>(ctx, kCompressionType,
Expand Down

0 comments on commit e4a35b4

Please sign in to comment.