Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 737 for attr_ (0.37 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

              attrs.push_back(named_attr);
              break;
            }
            case flexbuffers::FBT_VECTOR_BOOL: {
              llvm::SmallVector<bool> vec;
              const auto& vector = value.AsTypedVector();
              for (size_t i = 0; i < vector.size(); i++) {
                vec.push_back(vector[i].AsBool());
              }
              attrs.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/serialized-mlir-module-str-attr-invalid.mlir

    // RUN: not tf-mlir-translate -mlir-tf-str-attr-to-mlir %s 2>&1 | FileCheck %s
    
    "builtin.totally @invalid MLIR module {here} <-"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 01 20:38:29 UTC 2021
    - 220 bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/encapsulate_util.cc

      auto attr = n.attrs().Find(attr_name);
      if (!attr) {
        return std::nullopt;
      } else {
        return attr->s();
      }
    }
    
    // Adds a value to the node's list attribute.
    template <typename T>
    Status AppendToListAttr(Node* n, const string& attr_name, const string& value) {
      std::vector<T> attr_value;
      Status s = GetNodeAttr(n->attrs(), attr_name, &attr_value);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  4. src/net/interface_linux.go

    	// stack consists of IP point-to-point numbered or unnumbered
    	// addressing.
    	for _, a := range attrs {
    		if a.Attr.Type == syscall.IFA_LOCAL {
    			ipPointToPoint = true
    			break
    		}
    	}
    	for _, a := range attrs {
    		if ipPointToPoint && a.Attr.Type == syscall.IFA_ADDRESS {
    			continue
    		}
    		switch ifam.Family {
    		case syscall.AF_INET:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 27 05:42:03 UTC 2022
    - 7K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/cc_op_gen.cc

        }
      }
      // Add the static functions to set optional attrs
      if (op_info.has_optional_attrs) {
        strings::StrAppend(&class_decl, "\n");
        for (int i = 0; i < op_info.graph_op_def.attr_size(); ++i) {
          const auto& attr(op_info.graph_op_def.attr(i));
          const auto& api_def_attr(op_info.api_def.attr(i));
          if ((op_info.inferred_input_attrs.find(attr.name()) !=
               op_info.inferred_input_attrs.end()) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

          DeviceNameUtils::ParsedName device;
          if (DeviceNameUtils::ParseFullName(device_name, &device) &&
              device.has_job && device.job == jobType) {
            for (const auto& attr : node->attrs()) {
              auto attr_key = attr.first;
              auto attr_value = attr.second;
              if (attr_key == attrKey &&
                  attr_value.value_case() == AttrValue::kType &&
                  attr_value.type() == DT_RESOURCE) {
                return true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc

          // as shared names.
          if (!std::any_of(op_def.attr().begin(), op_def.attr().end(),
                           [](const auto& attr_def) {
                             return attr_def.name() == "use_node_name_sharing" &&
                                    attr_def.type() == "bool";
                           }))
            return false;
        }
    
        if (!std::any_of(op_def.attr().begin(), op_def.attr().end(),
                         [](const auto& attr_def) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:33:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/log/slog/internal/benchmarks/handlers_test.go

    			t.Fatal(err)
    		}
    		got := h.ringBuffer[0]
    		if !got.Time.Equal(r.Time) || !slices.EqualFunc(attrSlice(got), attrSlice(r), slog.Attr.Equal) {
    			t.Errorf("got %+v, want %+v", got, r)
    		}
    	})
    }
    
    func attrSlice(r slog.Record) []slog.Attr {
    	var as []slog.Attr
    	r.Attrs(func(a slog.Attr) bool { as = append(as, a); return true })
    	return as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      }
    
      if (attrs.empty()) return;
      os << "<";
    
      if (attrs.size() > 1) {
        os << "[";
      }
    
      llvm::interleaveComma(attrs, os,
                            [&](StringAttr attr) { os << attr.getValue(); });
    
      if (attrs.size() > 1) {
        os << "]";
      }
      os << ">";
    }
    
    }  // namespace TFR
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/cc_op_gen_util.cc

        }
      }
    
      // Process attrs
      string required_attrs_comment;
      string optional_attrs_comment;
      for (int i = 0; i < graph_op_def.attr_size(); ++i) {
        // ApiDef attributes must be in the same order as in OpDef since
        // we initialize ApiDef based on OpDef.
        const auto& attr(graph_op_def.attr(i));
        const auto& api_def_attr(api_def.attr(i));
        CHECK_EQ(attr.name(), api_def_attr.name());
    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