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

Method OutputTime

tensorflow/core/framework/model.cc:954–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954double Model::OutputTime(std::shared_ptr<Node> node,
955 std::map<string, double>* gradient) {
956 std::vector<double> input_times(1, 0);
957 // TODO(jsimsa): Now that we are accounting for buffer size in wait time
958 // computation, assuming that the input is infinitely fast will result in
959 // inaccurate estimates of the output latency.
960 //
961 // We should compute the output latency as a fix-point of the following
962 // equation: `output_time = node(OutputTime(input_times(1, output_time))`.
963 return node->OutputTime(&input_times, gradient);
964}
965
966double Model::TotalBufferedBytes(std::shared_ptr<Node> node) {
967 return node->TotalBufferedBytes();

Callers 5

TEST_PFunction · 0.80
TESTFunction · 0.80
SHARED_LOCKS_REQUIREDMethod · 0.80
SHARED_LOCKS_REQUIREDMethod · 0.80
SHARED_LOCKS_REQUIREDMethod · 0.80

Calls

no outgoing calls

Tested by 2

TEST_PFunction · 0.64
TESTFunction · 0.64