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

Function TF_ColocateWith

tensorflow/c/c_api.cc:809–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807}
808
809void TF_ColocateWith(TF_OperationDescription* desc, TF_Operation* op) {
810 desc->colocation_constraints.emplace(
811 StrCat(tensorflow::kColocationGroupPrefix, op->node.name()));
812}
813
814void TF_SetAttrString(TF_OperationDescription* desc, const char* attr_name,
815 const void* value, size_t length) {

Callers 1

TEST_FFunction · 0.85

Calls 3

nameMethod · 0.65
StrCatFunction · 0.50
emplaceMethod · 0.45

Tested by 1

TEST_FFunction · 0.68