mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
Improve comment in ShapeUtil
PiperOrigin-RevId: 713456387
This commit is contained in:
committed by
TensorFlower Gardener
parent
aa290d76bb
commit
56e07952f3
2
third_party/xla/xla/shape_util.h
vendored
2
third_party/xla/xla/shape_util.h
vendored
@@ -140,7 +140,7 @@ class ShapeUtil {
|
||||
return product;
|
||||
}
|
||||
|
||||
// Returns the number of elements are contained within the provided shape;
|
||||
// Returns the number of elements contained within the provided shape;
|
||||
// e.g. for rank 0 (scalars) the result is always 1.
|
||||
// Precondition: shape.IsArray()
|
||||
static inline int64_t ElementsIn(const Shape& shape) {
|
||||
|
||||
Reference in New Issue
Block a user