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

Function TFE_OpSetAttrBoolList

tensorflow/c/eager/c_api.cc:790–798  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

788}
789
790void TFE_OpSetAttrBoolList(TFE_Op* op, const char* attr_name,
791 const unsigned char* values, int num_values) {
792 std::unique_ptr<bool[]> b(new bool[num_values]);
793 for (int i = 0; i < num_values; ++i) {
794 b[i] = values[i];
795 }
796 op->operation.MutableAttrs()->Set(
797 attr_name, tensorflow::gtl::ArraySlice<const bool>(b.get(), num_values));
798}
799
800void TFE_OpSetAttrShapeList(TFE_Op* op, const char* attr_name,
801 const int64_t** dims, const int* num_dims,

Callers 2

SetOpAttrListFunction · 0.85
SetOpAttrListDefaultFunction · 0.85

Calls 3

MutableAttrsMethod · 0.80
SetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected