Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for attr_size (0.49 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

            absl::InlinedVector<mlir::Attribute, 8> attrs;
            for (const auto& item : value.list().func()) {
              TF_ASSIGN_OR_RETURN(auto attr, ConvertFunctionCallName(item.name()));
              if (item.attr_size() != 0)
                return errors::Unimplemented(
                    "func attributes with non-zero attr.size()");
              if (attr) attrs.push_back(attr);
            }
            return builder_.getArrayAttr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

          LIST_CASE(tensor, TF_ATTR_FUNC);
    #undef LIST_CASE
          // All lists empty, determine the type from the OpDef.
          if (metadata.list_size == 0) {
            for (int i = 0; i < oper->node.op_def().attr_size(); ++i) {
              const auto& a = oper->node.op_def().attr(i);
              if (a.name() != attr_name) continue;
              const string& typestr = a.type();
              if (typestr == "list(string)") {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top