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

Method SHARED_LOCKS_REQUIRED

tensorflow/core/framework/model.h:378–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376 protected:
377 // Returns the number of inputs.
378 int64 num_inputs() const SHARED_LOCKS_REQUIRED(mu_) {
379 int64 num_inputs = 0;
380 for (auto& input : inputs_) {
381 // Inputs for which autotuning is disabled are excluded.
382 if (input->autotune()) {
383 ++num_inputs;
384 }
385 }
386 return num_inputs;
387 }
388
389 // Creates a clone of this node.
390 virtual std::shared_ptr<Node> Clone(std::shared_ptr<Node> output) const

Callers

nothing calls this directly

Calls 3

OutputTimeMethod · 0.80
TotalProcessingTimeMethod · 0.80
num_elementsMethod · 0.45

Tested by

no test coverage detected