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

Method RunPartitions

tensorflow/core/distributed_runtime/master_session.cc:783–806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

781}
782
783Status MasterSession::ReffedClientGraph::RunPartitions(
784 const MasterEnv* env, int64 step_id, int64 execution_count,
785 PerStepState* pss, CallOptions* call_opts, const RunStepRequestWrapper& req,
786 MutableRunStepResponseWrapper* resp, CancellationManager* cm,
787 const bool is_last_partial_run) {
788 VLOG(2) << "RunPartitions step_id " << step_id << " execution_count "
789 << execution_count;
790 // Maps the names of fed tensors to their index in `req`.
791 std::unordered_map<StringPiece, size_t, StringPieceHasher> feeds(3);
792 for (size_t i = 0; i < req.num_feeds(); ++i) {
793 if (!feeds.insert({req.feed_name(i), i}).second) {
794 return errors::InvalidArgument("Duplicated feeds: ", req.feed_name(i));
795 }
796 }
797
798 std::vector<string> fetches;
799 fetches.reserve(req.num_fetches());
800 for (size_t i = 0; i < req.num_fetches(); ++i) {
801 fetches.push_back(req.fetch_name(i));
802 }
803
804 return RunPartitionsHelper(feeds, fetches, env, step_id, execution_count, pss,
805 call_opts, req, resp, cm, is_last_partial_run);
806}
807
808Status MasterSession::ReffedClientGraph::RunPartitions(
809 const MasterEnv* env, int64 step_id, int64 execution_count,

Callers 3

DoPartialRunMethod · 0.80
DoRunCallableMethod · 0.80

Calls 13

InvalidArgumentFunction · 0.85
InternalFunction · 0.85
num_feedsMethod · 0.80
num_fetchesMethod · 0.80
insertMethod · 0.45
reserveMethod · 0.45
push_backMethod · 0.45
feedMethod · 0.45
fetchMethod · 0.45
AddMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected