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

Method Execute

tensorflow/compiler/xla/python/local_client.cc:710–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

708}
709
710StatusOr<std::unique_ptr<PyLocalBuffer>> PyLocalExecutable::Execute(
711 absl::Span<PyLocalBuffer* const> argument_handles) {
712 if (num_replicas() != 1) {
713 return InvalidArgument(
714 "Attempted to execute computation with %d replicas using Execute()",
715 num_replicas());
716 }
717 if (num_partitions() != 1) {
718 return InvalidArgument(
719 "Attempted to execute computation with %d partitions using Execute()",
720 num_partitions());
721 }
722 VLOG(1) << "Executing computation " << name();
723 return ExecuteHelper(argument_handles, /*replica=*/0, /*partition=*/0,
724 RunId());
725}
726
727StatusOr<std::vector<std::unique_ptr<PyLocalBuffer>>>
728PyLocalExecutable::ExecutePerReplica(

Callers 4

_ExecuteMethod · 0.45

Calls 3

InvalidArgumentFunction · 0.85
nameFunction · 0.85
RunIdClass · 0.85

Tested by 3

_ExecuteMethod · 0.36