Home
last modified time | relevance | path

Searched refs:TensorShapeProto (Results 1 – 25 of 160) sorted by relevance

1234567

/external/tensorflow/tensorflow/core/grappler/utils/
Dsymbolic_shapes.h26 bool IsKnown(const TensorShapeProto::Dim& dim);
27 bool IsKnownSymbolically(const TensorShapeProto::Dim& dim);
28 bool IsUnknown(const TensorShapeProto::Dim& dim);
32 bool ShapeIsSymbolicallyDefined(const TensorShapeProto& shape);
36 int Rank(const TensorShapeProto& shape);
41 int64 NumCoefficients(const TensorShapeProto& shape);
45 bool ShapesSymbolicallyEqual(const TensorShapeProto& left,
46 const TensorShapeProto& right);
52 bool ShapesBroadcastable(const TensorShapeProto& left,
53 const TensorShapeProto& right);
[all …]
Dsymbolic_shapes.cc26 BCast::Vec ShapeDims(const TensorShapeProto& shape) { in ShapeDims()
36 bool IsKnown(const TensorShapeProto::Dim& dim) { return dim.size() >= 0; } in IsKnown()
38 bool IsKnownSymbolically(const TensorShapeProto::Dim& dim) { in IsKnownSymbolically()
42 bool IsUnknown(const TensorShapeProto::Dim& dim) { return dim.size() == -1; } in IsUnknown()
44 bool ShapeIsSymbolicallyDefined(const TensorShapeProto& shape) { in ShapeIsSymbolicallyDefined()
48 [](const TensorShapeProto::Dim& dim) { return !IsUnknown(dim); }); in ShapeIsSymbolicallyDefined()
55 int Rank(const TensorShapeProto& shape) { in Rank()
62 int64 NumCoefficients(const TensorShapeProto& shape) { in NumCoefficients()
76 bool ShapesSymbolicallyEqual(const TensorShapeProto& left, in ShapesSymbolicallyEqual()
77 const TensorShapeProto& right) { in ShapesSymbolicallyEqual()
[all …]
Dsymbolic_shapes_test.cc26 TensorShapeProto MakeUnknown() { in MakeUnknown()
27 TensorShapeProto shape; in MakeUnknown()
32 TensorShapeProto MakeShape(std::vector<int> dims) { in MakeShape()
33 TensorShapeProto shape; in MakeShape()
35 TensorShapeProto::Dim dim; in MakeShape()
43 bool operator<(const TensorShapeProto& lhs, const TensorShapeProto& rhs) { in operator <()
78 TensorShapeProto output_shape; in TEST_F()
118 TensorShapeProto shape; in TEST_F()
/external/tensorflow/tensorflow/core/util/
Dragged_to_dense_util_test.cc30 TensorShapeProto shape_proto; in TEST()
32 TensorShapeProto value_shape_proto; in TEST()
36 TensorShapeProto actual_output_shape_proto; in TEST()
44 TensorShapeProto shape_proto; in TEST()
46 TensorShapeProto value_shape_proto; in TEST()
50 TensorShapeProto actual_output_shape_proto; in TEST()
60 TensorShapeProto shape_proto; in TEST()
62 TensorShapeProto value_shape_proto; in TEST()
67 TensorShapeProto actual_output_shape_proto; in TEST()
99 TensorShapeProto default_value_shape_proto; in TEST()
[all …]
Dragged_to_dense_util.h49 const TensorShapeProto& shape,
50 const TensorShapeProto& value_shape,
51 TensorShapeProto* output_shape);
55 Status ValidateDefaultValueShape(const TensorShapeProto& default_value_shape,
56 const TensorShapeProto& value_shape);
Dragged_to_dense_util.cc41 int ragged_rank, const TensorShapeProto& shape, in CombineRaggedTensorToTensorShapes()
42 const TensorShapeProto& value_shape, TensorShapeProto* output_shape) { in CombineRaggedTensorToTensorShapes()
74 const TensorShapeProto::Dim& value_dim = value_shape.dim(i); in CombineRaggedTensorToTensorShapes()
75 TensorShapeProto::Dim* output_shape_dim = output_shape->mutable_dim( in CombineRaggedTensorToTensorShapes()
96 const TensorShapeProto& default_value_shape, in ValidateDefaultValueShape()
97 const TensorShapeProto& value_shape) { in ValidateDefaultValueShape()
/external/tensorflow/tensorflow/core/graph/
Dcostmodel.h125 const TensorShapeProto& tensor_shape,
134 const TensorShapeProto& MaxMemoryShape(const Node* node,
189 static Bytes MinTensorMemoryUsage(const TensorShapeProto& tensor_shape,
223 gtl::InlinedVector<TensorShapeProto, 2> output_port_shape;
233 TensorShapeProto unknown_shape_;
/external/tensorflow/tensorflow/core/framework/
Dtensor_shape_test.cc122 TensorShapeProto proto; in TEST()
141 TensorShapeProto proto; in TEST()
248 explicit TensorShapeOld(const TensorShapeProto& proto);
255 static bool IsValid(const TensorShapeProto& proto);
259 static Status IsValidShape(const TensorShapeProto& proto);
313 void AsProto(TensorShapeProto* proto) const;
333 static string DebugString(const TensorShapeProto& proto);
377 bool TensorShapeOld::IsValid(const TensorShapeProto& proto) { in IsValid()
387 Status TensorShapeOld::IsValidShape(const TensorShapeProto& proto) { in IsValidShape()
405 TensorShapeOld::TensorShapeOld(const TensorShapeProto& proto) { in TensorShapeOld()
[all …]
Dtensor_shape.proto13 message TensorShapeProto { message
19 // that work with TensorShapeProto may fail at runtime when deserializing
20 // a TensorShapeProto containing a dim value of -1.
Dtensor_shape.h39 class TensorShapeProto; variable
75 static std::string DebugString(const TensorShapeProto& proto);
178 TensorShapeBase(const TensorShapeProto& proto);
190 static Status BuildTensorShapeBase(const TensorShapeProto& proto,
195 static bool IsValid(const TensorShapeProto& proto);
199 static Status IsValidShape(const TensorShapeProto& proto);
312 void AsProto(TensorShapeProto* proto) const;
/external/tensorflow/tensorflow/go/
Dsignature_test.go36 TensorShape: &tspb.TensorShapeProto{
49 TensorShape: &tspb.TensorShapeProto{
64 TensorShape: &tspb.TensorShapeProto{
77 TensorShape: &tspb.TensorShapeProto{
148 TensorShape: &tspb.TensorShapeProto{
/external/tensorflow/tensorflow/core/grappler/costs/
Dop_level_cost_estimator.h31 TensorShapeProto* tensor_shape_proto);
32 TensorShapeProto MaybeGetMinimumShape(const TensorShapeProto& original_shape,
288 const TensorShapeProto& original_image_shape,
289 const TensorShapeProto& original_filter_shape, const OpInfo& op_info,
294 const TensorShapeProto& original_image_shape, const OpInfo& op_info,
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dshape_optimizer.cc106 const TensorShapeProto& reduction_indices_shape = in Optimize()
169 const TensorShapeProto& shape1 = prop1[0].shape(); in Optimize()
170 const TensorShapeProto& shape2 = prop2[0].shape(); in Optimize()
180 *t->mutable_tensor_shape() = TensorShapeProto(); in Optimize()
Dconstant_folding.h124 const TensorShapeProto& shape,
232 TensorShapeProto* input_tensor_shape,
233 TensorShapeProto* output_tensor_shape, bool* is_single_element_op) const;
237 const NodeDef& node, const TensorShapeProto& input_shape, bool keep_dims,
/external/tensorflow/tensorflow/core/ops/
Dragged_conversion_ops.cc72 TensorShapeProto partition_shape; in ValidateRowPartitionTypesAndShapes()
243 TensorShapeProto shape; in RaggedTensorToTensorShapeFn()
257 TensorShapeProto value_shape; in RaggedTensorToTensorShapeFn()
260 TensorShapeProto default_value_shape; in RaggedTensorToTensorShapeFn()
274 TensorShapeProto output_shape; in RaggedTensorToTensorShapeFn()
/external/tensorflow/tensorflow/core/tpu/
Dtpu_embedding_output_layout_utils.cc24 std::vector<TensorShapeProto>* shapes) { in ComputeOutputTensorShapes()
29 TensorShapeProto shape; in ComputeOutputTensorShapes()
/external/tensorflow/tensorflow/python/saved_model/model_utils/
Dexport_output_test.py79 shape = tensor_shape_pb2.TensorShapeProto(
80 dim=[tensor_shape_pb2.TensorShapeProto.Dim(size=1)])
112 shape = tensor_shape_pb2.TensorShapeProto(
113 dim=[tensor_shape_pb2.TensorShapeProto.Dim(size=1)])
148 shape = tensor_shape_pb2.TensorShapeProto(
149 dim=[tensor_shape_pb2.TensorShapeProto.Dim(size=1)])
189 shape = tensor_shape_pb2.TensorShapeProto(
190 dim=[tensor_shape_pb2.TensorShapeProto.Dim(size=1)])
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dconvert_type.h45 Status ConvertToMlirShape(const TensorShapeProto& input_shape,
49 StatusOr<mlir::Type> ConvertToMlirTensorType(const TensorShapeProto& shape,
Dmangling_util.h44 string MangleShape(const TensorShapeProto& shape);
46 Status DemangleShape(absl::string_view str, TensorShapeProto* proto);
Dconvert_tensor.h43 TensorShapeProto* output_shape);
52 StatusOr<mlir::Attribute> ConvertTensorShapeProto(const TensorShapeProto& shape,
Dmangling_util.cc63 string MangleShape(const TensorShapeProto& shape) { in MangleShape()
67 Status DemangleShape(absl::string_view str, TensorShapeProto* proto) { in DemangleShape()
/external/tensorflow/tensorflow/lite/toco/tensorflow_graph_matching/
Dresolve_svdf_test.cc106 tensorflow::TensorShapeProto* allocated_tensor_shape = in AddNewNode()
107 new tensorflow::TensorShapeProto; in AddNewNode()
125 tensorflow::TensorShapeProto* allocated_tensor_shape = in AddShapeNode()
126 new tensorflow::TensorShapeProto; in AddShapeNode()
/external/tensorflow/tensorflow/python/framework/
Dcpp_shape_inference.proto12 TensorShapeProto shape = 1;
25 TensorShapeProto shape = 1;
/external/tensorflow/tensorflow/c/experimental/gradients/tape/
Dtape_operation.cc95 TensorShapeProto proto; in SetAttrShape()
166 std::unique_ptr<TensorShapeProto[]> proto(new TensorShapeProto[num_values]); in SetAttrShapeList()
187 attr_name, gtl::ArraySlice<TensorShapeProto>(proto.get(), num_values)); in SetAttrShapeList()
/external/tensorflow/tensorflow/core/common_runtime/
Daccumulate_n_optimizer.cc26 Tensor make_zeros(const DataType& dtype, const TensorShapeProto& shape) { in make_zeros()
128 TensorShapeProto shape; in RewriteIntoTempVariable()
149 TensorShapeProto variable_shape; in RewriteIntoTempVariable()
166 .Attr("value", make_zeros(dtype, TensorShapeProto())) in RewriteIntoTempVariable()

1234567