Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 654 for attr_ (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. docs/debugging/xattr/main.go

    		}
    		var names []string
    		if name == "." {
    			attrs, err := listxattr(path)
    			if err != nil {
    				log.Fatalln(fmt.Errorf("listing attributes failed with: %v", err))
    			}
    			names = append(names, attrs...)
    		} else {
    			names = append(names, name)
    		}
    		var data [][]string
    		for _, attr := range names {
    			value, err := getxattr(path, attr)
    			if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 29 23:52:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

    Attribute RewriteTFRCallOp::ProcessAttributeValue(Attribute attr,
                                                      StringAttr attr_type) const {
      if (!attr_type) return attr;
    
      if (attr_type.getValue() == "tensor") {
        if (auto f = mlir::dyn_cast<FloatAttr>(attr)) {
          RankedTensorType type = RankedTensorType::get({}, f.getType());
          return DenseFPElementsAttr::get(type, attr);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top