mirror of
https://github.com/zebrajr/tensorflow.git
synced 2025-12-06 12:20:11 +01:00
use correct reserve capacity for op's results
PiperOrigin-RevId: 344488863 Change-Id: Ib45447fd9d2f9032dad15bdae5da2dca2ddb81e9
This commit is contained in:
parent
3515f94bd8
commit
3babdd4475
|
|
@ -1370,7 +1370,7 @@ Optional<BufferOffset<tflite::SubGraph>> Translator::BuildSubGraph(
|
||||||
|
|
||||||
// Fetch operand and result tensor indices.
|
// Fetch operand and result tensor indices.
|
||||||
std::vector<int32_t> results;
|
std::vector<int32_t> results;
|
||||||
results.reserve(inst.getNumOperands());
|
results.reserve(inst.getNumResults());
|
||||||
for (auto result : inst.getResults()) {
|
for (auto result : inst.getResults()) {
|
||||||
results.push_back(tensor_index_map.lookup(result));
|
results.push_back(tensor_index_map.lookup(result));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user