Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for HasOptionalAttrs (0.13 sec)

  1. tensorflow/cc/framework/cc_op_gen_util.h

    void InferOpAttributes(
        const OpDef& op_def,
        std::unordered_map<string, string>* inferred_input_attrs);
    
    bool ArgIsList(const OpDef::ArgDef& arg);
    
    bool HasOptionalAttrs(
        const ApiDef& api_def,
        const std::unordered_map<string, string>& inferred_input_attrs);
    
    struct OpInfo {
      // graph_op_def: The OpDef used by the runtime, has the names that
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_util.cc

        InferArgAttributes(arg, inferred_input_attrs);
      }
    }
    
    bool ArgIsList(const OpDef::ArgDef& arg) {
      return !arg.type_list_attr().empty() || !arg.number_attr().empty();
    }
    
    bool HasOptionalAttrs(
        const ApiDef& api_def,
        const std::unordered_map<string, string>& inferred_input_attrs) {
      for (int i = 0; i < api_def.attr_size(); ++i) {
        const auto& attr(api_def.attr(i));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
Back to top