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

Function TFE_OpSetAttrString

tensorflow/c/eager/c_api.cc:688–693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

686}
687
688void TFE_OpSetAttrString(TFE_Op* op, const char* attr_name, const void* value,
689 size_t length) {
690 op->operation.MutableAttrs()->Set(
691 attr_name,
692 tensorflow::StringPiece(static_cast<const char*>(value), length));
693}
694
695void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value) {
696 op->operation.MutableAttrs()->Set(attr_name, static_cast<int64>(value));

Callers 7

SetOpAttrScalarFunction · 0.85
createTFEQueueFunction · 0.85
TESTFunction · 0.85
SetOpAttrValueScalarFunction · 0.85
CreateVariableFunction · 0.85
TESTFunction · 0.85

Calls 2

MutableAttrsMethod · 0.80
SetMethod · 0.45

Tested by 3

TESTFunction · 0.68
CreateVariableFunction · 0.68
TESTFunction · 0.68