mirror of
https://github.com/wassname/ray.git
synced 2026-08-01 12:51:09 +08:00
track more task info (#133)
This commit is contained in:
committed by
Philipp Moritz
parent
170a2ee8b1
commit
d5fe49584a
@@ -13,6 +13,8 @@ OperationId ComputationGraph::add_operation(std::unique_ptr<Operation> operation
|
||||
}
|
||||
|
||||
const Task& ComputationGraph::get_task(OperationId operationid) {
|
||||
RAY_CHECK_NEQ(operationid, ROOT_OPERATION, "ComputationGraph attempting to get_task with operationid == ROOT_OPERATION");
|
||||
RAY_CHECK_NEQ(operationid, NO_OPERATION, "ComputationGraph attempting to get_task with operationid == NO_OPERATION");
|
||||
RAY_CHECK_LT(operationid, operations_.size(), "ComputationGraph attempting to get_task with operationid " << operationid << ", but operationid >= operations_.size().");
|
||||
RAY_CHECK(operations_[operationid]->has_task(), "Calling get_task with operationid " << operationid << ", but this corresponds to a push not a task.");
|
||||
return operations_[operationid]->task();
|
||||
|
||||
Reference in New Issue
Block a user