Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for AnnotateEagerRuntimeConstructionContext (0.23 sec)

  1. tensorflow/c/eager/c_api.cc

    string DeviceName(const tensorflow::Device* d) {
      return (d == nullptr) ? "cpu:0" : d->name();
    }
    
    // Annotate eager runtime construction context to the given `function_def` as
    // an attribute.
    void AnnotateEagerRuntimeConstructionContext(
        tensorflow::FunctionDef& function_def) {
      tensorflow::AttrValue value;
      SetAttrValue("kEagerRuntime", &value);
      (*function_def.mutable_attr())["_construction_context"] = value;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top