Home
last modified time | relevance | path

Searched refs:max_sparse_elements (Results 1 – 10 of 10) sorted by relevance

/external/tensorflow/tensorflow/compiler/xla/
Dlayout.cc55 layout.set_max_sparse_elements(proto.max_sparse_elements()); in CreateFromProto()
81 return absl::StrCat("sparse{", max_sparse_elements(), "}"); in ToString()
101 lhs.max_sparse_elements() != rhs.max_sparse_elements()) { in operator ()()
Dlayout_util.cc94 /* static */ Layout LayoutUtil::MakeSparseLayout(int64 max_sparse_elements) { in MakeSparseLayout() argument
97 layout.set_max_sparse_elements(max_sparse_elements); in MakeSparseLayout()
303 return layout.max_sparse_elements(); in MaxSparseElements()
461 hash_value = Hash64Combine(hash_value, layout.max_sparse_elements()); in Hash()
Dshape_util.cc207 int64 max_sparse_elements) { in MakeShapeWithSparseLayout() argument
210 *shape.mutable_layout() = LayoutUtil::MakeSparseLayout(max_sparse_elements); in MakeShapeWithSparseLayout()
691 int64 max_sparse_elements = LayoutUtil::MaxSparseElements(shape.layout()); in ValidateShapeSize() local
692 if (max_sparse_elements < 0) { in ValidateShapeSize()
693 return max_sparse_elements; in ValidateShapeSize()
696 max_sparse_elements, ByteSizeOfPrimitiveType(shape.element_type())); in ValidateShapeSize()
701 MultiplyWithoutOverflow(max_sparse_elements, shape.rank()); in ValidateShapeSize()
Dlayout_util.h53 static Layout MakeSparseLayout(int64 max_sparse_elements);
Dlayout.h186 int64 max_sparse_elements() const { return max_sparse_elements_; } in max_sparse_elements() function
Dlayout_util_test.cc39 int64 max_sparse_elements) { in MakeShapeWithSparseLayout() argument
41 *shape.mutable_layout() = LayoutUtil::MakeSparseLayout(max_sparse_elements); in MakeShapeWithSparseLayout()
Dshape_util.h407 int64 max_sparse_elements);
Dliteral.cc127 const int64 max_sparse_elements = in SetPiece() local
130 new char[max_sparse_elements * in SetPiece()
133 new SparseIndexArray(max_sparse_elements, shape.rank())); in SetPiece()
Dxla_data.proto154 int64 max_sparse_elements = 5; field
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_parser.cc3567 int64 max_sparse_elements; in ParseShape() local
3569 !ParseInt64(&max_sparse_elements) || in ParseShape()
3574 LayoutUtil::MakeSparseLayout(max_sparse_elements); in ParseShape()