list_snapshot_chunks_dataset_op.cc
imports tsl/platform/tstring.himports xla/tsl/platform/env.h
SHA-25637aae1e857e1f2fcc6bca2dd274bff063ab15317ec588c1a8ec27e1704a7faf6
MaleculeH(Db)Md(In₄)
Evidence
1/* Copyright 2023 The TensorFlow Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is …
11:42… IND, either express or implied.
12See the License for the specific language governing permissions and
13limitations under the License.
14==============================================================================*/
15#include <cstdint>
16#include <memory>
17#include <string>
18#include <utility>
19#include <vector>
20
21#include "absl/status/status.h"
22#include "absl/strings/string_view.h"
23#include "xla/tsl/platform/env.h"
24#include "xla/tsl/platform/errors.h"
25#include "xla/tsl/platform/statusor.h"
26#include "tensorflow/core/data/name_utils.h"
27#include "tensorflow/core/data/service/snapshot/file_utils.h"
28#include "tensorflow/core/data/service/snapshot/snapshot_chunk_provider.h"
29#include "tensorflow/core/data/split_utils.h"
30#include "tensorflow/core/framework/dataset.h"
31#include "tensorflow/core/framework/dataset_options.pb.h"
32#include "tensorflow/core/framework/op_kernel.h"
33#include "tensorflow/core/framework/op_requires.h"
34#include "tensorflow/core/framework/tensor.h"
35#include "tensorflow/core/framework/tensor_shape.h"
36#include "tensorflow/core/framework/types.h"
37#include "tensorflow/core/framework/types.pb.h"
38#include "tensorflow/core/graph/graph.h"
39#include "tsl/platform/tstring.h"
40
41namespace tensorflow {
42namespace data {
43namespace {
44
45constexpr const char kListSnapshotChunksDataset[] = "ListSnapshotChunksDataset";
46constexpr const char kSnapshotPath[] = "snapshot_path";
47
48class ListSnapshotChunksDatasetOp : public DatasetOpKernel {
49 public:
50 explicit ListSnapshotChunksDataset …