Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 642 for attr_ (0.05 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

      for (const NamedAttribute &attr : from->getAttrs())
        if (P(attr)) to->setAttr(attr.getName(), attr.getValue());
    }
    
    // Copies attributes whose name begins with an _ from `from` to `to`.
    inline void CopyUnderscoredAttributes(Operation *from, Operation *to) {
      CopyAttributes(from, to, [](const NamedAttribute &attr) {
        return attr.getName().strref().front() == '_';
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/compilability_check_util.cc

        it->second.second.emplace_back(std::move(node_info));
      }
    }
    
    // Returns `true` iff node has a given `attr` set to `true`. Returns `false`
    // both for the missing attr, and the attr set to `false`.
    static bool HasBoolAttr(const NodeDef& node, const char* attr) {
      const auto& it = node.attr().find(attr);
      return it != node.attr().end() && it->second.b();
    }
    
    bool CanCreateXlaKernel(const NodeDef& node_def) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_types.h

      static Derived get(ArrayRef<StringAttr> attrs, MLIRContext* context) {
        return Base::get(context, attrs);
      }
    
      static Derived getChecked(ArrayRef<StringAttr> attrs, Location loc) {
        return Base::getChecked(loc, loc.getContext(), attrs);
      }
      static Derived getChecked(function_ref<InFlightDiagnostic()> emitError,
                                MLIRContext* context, ArrayRef<StringAttr> attrs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 07:17:01 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_common.cc

        return mlir::failure();
    
      int64_t num_results = 0;
      if (succeeded(parser.parseOptionalColon())) {
        mlir::IntegerAttr attr;
        mlir::NamedAttrList attrs;
        if (failed(parser.parseAttribute(attr, "num_results", attrs)))
          return mlir::failure();
        num_results = attr.getValue().getSExtValue();
      }
      if (num_results < 0) return mlir::failure();
    
      llvm::SmallVector<mlir::Type, 4> operand_types;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. src/syscall/netlink_linux.go

    	default:
    		return nil, EINVAL
    	}
    	var attrs []NetlinkRouteAttr
    	for len(b) >= SizeofRtAttr {
    		a, vbuf, alen, err := netlinkRouteAttrAndValue(b)
    		if err != nil {
    			return nil, err
    		}
    		ra := NetlinkRouteAttr{Attr: *a, Value: vbuf[:int(a.Len)-SizeofRtAttr]}
    		attrs = append(attrs, ra)
    		b = b[alen:]
    	}
    	return attrs, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 20:01:34 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/XmlNodeImpl.java

                Map<String, String> attrs = dominant.getAttributes();
                List<XmlNode> children = null;
    
                for (Map.Entry<String, String> attr : recessive.getAttributes().entrySet()) {
                    String key = attr.getKey();
                    if (isEmpty(attrs.get(key))) {
                        if (attrs == dominant.getAttributes()) {
                            attrs = new HashMap<>(attrs);
                        }
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Apr 03 17:49:40 UTC 2024
    - 18K bytes
    - Viewed (0)
  7. src/log/slog/json_handler_test.go

    			ReplaceAttr: func(_ []string, a Attr) Attr {
    				v := a.Value
    				if v.Kind() == KindTime {
    					return String(a.Key, v.Time().Format(rfc3339Millis))
    				}
    				if a.Key == "level" {
    					return Attr{"severity", a.Value}
    				}
    				return a
    			},
    		}},
    		{"time unix", HandlerOptions{
    			ReplaceAttr: func(_ []string, a Attr) Attr {
    				v := a.Value
    				if v.Kind() == KindTime {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 17:06:26 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        llvm::SmallVectorImpl<mlir::NamedAttribute> &output) {
      for (mlir::NamedAttribute attr : attrs) {
        if (attr.getName().strref().contains(
                mlir::tfg::TFGraphDialect::getDeviceAttrKey())) {
          tensorflow::DeviceNameUtils::ParsedName parsed_name;
          if (!tensorflow::DeviceNameUtils::ParseFullName(
                  mlir::cast<mlir::StringAttr>(attr.getValue()).getValue().str(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. tensorflow/c/c_api.cc

      for (it = attrs.begin(); it != attrs.end(); it++) {
        if (count == i) {
          return it->first.length();
        }
        count++;
      }
      return -1;
    }
    
    void TF_OperationGetAttrName(TF_Operation* oper, int i, char* output,
                                 TF_Status* status) {
      auto attrs = oper->node.attrs();
      int count = 0;
      AttrValueMap::const_iterator it;
      for (it = attrs.begin(); it != attrs.end(); it++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

        absl::Span<
            const std::pair<std::string, FunctionDefHelper::AttrValueWrapper>>
            attrs) {
      NodeDef node;
      node.set_name(std::string(name));
      node.set_op(std::string(op));
      for (const auto& input : inputs) node.add_input(input);
      for (const auto& attr : attrs)
        node.mutable_attr()->insert({attr.first, attr.second.proto});
      return node;
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top