mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 00:19:58 +01:00
Minor cleanup in YnnDimensions.
PiperOrigin-RevId: 825955545
This commit is contained in:
parent
cfa7953589
commit
d29d0f8635
|
|
@ -57,11 +57,8 @@ using TensorIdMap = absl::flat_hash_map<const HloInstruction*, uint32_t>;
|
|||
//===----------------------------------------------------------------------===//
|
||||
|
||||
static std::vector<size_t> YnnDimensions(const Shape& shape) {
|
||||
std::vector<size_t> dims;
|
||||
for (auto& dim : shape.dimensions()) {
|
||||
dims.push_back(dim);
|
||||
}
|
||||
return dims;
|
||||
absl::Span<const int64_t> dims = shape.dimensions();
|
||||
return {dims.begin(), dims.end()};
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user