Set server_def on the context, possibly updating it.
| 791 | |
| 792 | // Set server_def on the context, possibly updating it. |
| 793 | TF_CAPI_EXPORT extern void TFE_EnableCollectiveOps(TFE_Context* ctx, |
| 794 | const void* proto, |
| 795 | size_t proto_len, |
| 796 | TF_Status* status) { |
| 797 | tensorflow::ServerDef server_def; |
| 798 | if (!server_def.ParseFromArray(proto, proto_len)) { |
| 799 | status->status = tensorflow::errors::InvalidArgument( |
| 800 | "Invalid tensorflow.ServerDef protocol buffer"); |
| 801 | return; |
| 802 | } |
| 803 | status->status = EnableCollectiveOps(server_def, ctx); |
| 804 | } |
| 805 | |
| 806 | std::string tensorflow::getTF_OutputDebugString(TF_Output node) { |
| 807 | return absl::Substitute("TF_Output($0, $1)", node.oper, node.index); |
nothing calls this directly
no test coverage detected