dtensor_device_util.h
imports tensorflow/core/platform/errors.himports tensorflow/core/platform/fingerprint.h
SHA-2561e0380783a3c8210aa1f7ec4f694e7fca66876265055fa0d9d6ececa6bc4c3d8
MaleculeMd(In₄)
Evidence
1/* Copyright 2022 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================================================================ …
17:6… ne TENSORFLOW_DTENSOR_CC_DTENSOR_DEVICE_UTIL_H_
18
19#include <atomic>
20#include <cstdint>
21#include <map>
22#include <memory>
23#include <optional>
24#include <string>
25#include <utility>
26#include <vector>
27
28#include "absl/memory/memory.h"
29#include "absl/status/status.h"
30#include "llvm/Support/ExtensibleRTTI.h"
31#include "mlir/IR/BuiltinOps.h" // from @llvm-project
32#include "mlir/IR/OwningOpRef.h" // from @llvm-project
33#include "tensorflow/c/eager/c_api.h"
34#include "tensorflow/c/eager/parallel_device/parallel_device_lib.h"
35#include "tensorflow/c/eager/tfe_context_internal.h"
36#include "tensorflow/c/safe_ptr.h"
37#include "tensorflow/c/tf_status.h"
38#include "tensorflow/core/common_runtime/eager/context.h"
39#include "tensorflow/core/framework/function.h"
40#include "tensorflow/core/framework/function.pb.h"
41#include "tensorflow/core/framework/node_def_builder.h"
42#include "tensorflow/core/framework/tensor_shape.h"
43#include "tensorflow/core/graph/graph.h"
44#include "tensorflow/core/lib/strings/proto_serialization.h"
45#include "tensorflow/core/platform/errors.h"
46#include "tensorflow/core/platform/fingerprint.h"
47#include "tensorflow/dtensor/cc/constants.h"
48#include "tensorflow/dtensor/cc/dstatus.h"
49#include "tensorflow/dtensor/cc/dtensor_operation.h"
50#include "tensorflow/dtensor/cc/small_constant_optimization.h"
51#include "tensorflow/dtensor/cc/tensor_layout.h"
52#include "tensorflow/dtensor/cc/tensor_with_layout.h"
53#include "tsl/platform/fingerprint.h"
54#include "tsl/platform/refcount.h"
55
56namespace tensorflow {
⋯5 lines
107:7… uring SPMD expansion of resource assign ops. In that case,
108 // inferred layouts of resource handles are attached to arg nodes
109 // of the returned …
359:50… the dense view of the shapes,
360// and thus will have no difference with the TensorWithLayout in terms of
361// shapes.
362class SparseTensorWithLayout
363 …