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

Function SetOpAttrScalarDefault

tensorflow/python/eager/pywrap_tfe_src.cc:624–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624void SetOpAttrScalarDefault(
625 TFE_Context* ctx, TFE_Op* op, const tensorflow::AttrValue& default_value,
626 const char* attr_name,
627 tensorflow::gtl::FlatMap<string, tensorflow::int64>* attr_list_sizes,
628 TF_Status* status) {
629 SetOpAttrValueScalar(ctx, op, default_value, attr_name, status);
630 if (default_value.value_case() == tensorflow::AttrValue::kI) {
631 (*attr_list_sizes)[attr_name] = default_value.i();
632 }
633}
634
635// start_index is the index at which the Tuple/List attrs will start getting
636// processed.

Callers 1

SetOpAttrWithDefaultsFunction · 0.85

Calls 2

SetOpAttrValueScalarFunction · 0.85
iMethod · 0.45

Tested by

no test coverage detected