shape_inference.cc
imports tensorflow/core/platform/errors.himports tensorflow/core/platform/status.h
SHA-256e2bc2189c7b903704a62225f191df3cd60609ed17647163d1ac7705f4dd48d94
MaleculeMd(In₄)
Evidence
1/* Copyright 2018 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
16#include "tensorflow/compiler/jit/shape_inference.h"
17
18#include <cstdint>
19#include <map>
20#include <vector>
21
22#include "absl/log/log.h"
23#include "absl/strings/str_cat.h"
24#include "tensorflow/compiler/jit/shape_inference_helpers.h"
25#include "tensorflow/core/common_runtime/shape_refiner.h"
26#include "tensorflow/core/framework/function.h"
27#include "tensorflow/core/framework/node_def_util.h"
28#include "tensorflow/core/framework/shape_inference.h"
29#include "tensorflow/core/framework/tensor.pb.h"
30#include "tensorflow/core/framework/tensor_shape.h"
31#include "tensorflow/core/framework/tensor_shape.pb.h"
32#include "tensorflow/core/framework/types.h"
33#include "tensorflow/core/graph/algorithm.h"
34#include "tensorflow/core/graph/graph.h"
35#include "tensorflow/core/platform/errors.h"
36#include "tensorflow/core/platform/status.h"
37#include "tsl/platform/errors.h"
38#include "tsl/platform/statusor.h"
39
40namespace tensorflow {
⋯5 lines
95:55… replaced as `_Arg` ops.
96 // And Args must have `index` attribute.
97 TF_RETURN_IF_ERROR(GetNodeAttr(n->attrs(), "index", &index));
98 } el …
278:53… ference(fnlib_def);
279
280 // ShapeRefiner requires that all inputs of a node are present when
281 // ShapeRefiner::AddNode is called. To get at least som …