MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / RecordAllocationId

Method RecordAllocationId

tensorflow/core/graph/costmodel.cc:349–355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

347}
348
349void CostModel::RecordAllocationId(const Node* node, int output_slot,
350 int64 alloc_id) {
351 const int id = Id(node);
352 if (id < 0) return;
353 Ensure(id, node->num_outputs());
354 output_port_alloc_ids_[id][output_slot] = alloc_id;
355}
356
357int64 CostModel::AllocationId(const Node* node, int slot) const {
358 const int id = Id(node);

Callers 1

BuildCostModelMethod · 0.80

Calls 1

num_outputsMethod · 0.45

Tested by

no test coverage detected