Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 300 for attr_ (0.07 sec)

  1. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc

      string c_base_type = attr_.base_type();
      if (attr_.base_type() == "type") {
        c_base_type = "DataType";
      } else if (attr_.base_type() == "shape") {
        c_base_type = "const PartialTensorShape";
      }
    
      // ... and wrap in a Span<> if it's a list.
      if (attr_.is_list()) {
        return absl::Substitute("absl::Span<$0>", c_base_type);
      } else {
        return c_base_type;
      }
    
      return attr_.full_type();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/node_matchers.h

        control_deps_ = std::move(control_deps);
      }
    
      void set_attr(AttrKeyValuePair attr) {
        DCHECK(IsEmpty());
        attr_ = std::move(attr);
      }
    
      bool IsEmpty() const {
        return !name().has_value() && !op().has_value() && !inputs().has_value() &&
               !control_deps().has_value() && !attr().has_value();
      }
    
     private:
      std::optional<string> name_;
      std::optional<string> op_;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

      }
    
      auto attrs = attr_.getAttrs();
    
      if (failed(HasIntegerArrayWithSize(&func_, attrs, "pool_size", 2))) {
        return failure();
      }
    
      if (failed(HasIntegerArrayWithSize(&func_, attrs, "strides", 2))) {
        return failure();
      }
    
      // Retrieves padding.
      auto padding = mlir::dyn_cast_or_null<StringAttr>(attrs.get("padding"));
      if (!padding) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

      }
    
      auto attrs = attr_.getAttrs();
      if (failed(HasIntAttr(func_, attrs, "max_detections")) ||
          failed(HasIntAttr(func_, attrs, "max_classes_per_detection")) ||
          failed(HasIntAttr(func_, attrs, "num_classes")) ||
          failed(HasFloatAttr(func_, attrs, "nms_score_threshold")) ||
          failed(HasFloatAttr(func_, attrs, "nms_iou_threshold")) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. src/log/slog/attr.go

    //
    // Use Group to collect several key-value pairs under a single
    // key on a log line, or as the result of LogValue
    // in order to log a single value as multiple Attrs.
    func Group(key string, args ...any) Attr {
    	return Attr{key, GroupValue(argsToAttrSlice(args)...)}
    }
    
    func argsToAttrSlice(args []any) []Attr {
    	var (
    		attr  Attr
    		attrs []Attr
    	)
    	for len(args) > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 18:23:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/attributes/DefaultAttributeSelectionSchemaTest.groovy

            extraAttributes.contains(attr2)
            !extraAttributes.contains(attr1)
        }
    
        def "collects extra attributes, two candidates"() {
            def attr1 = Attribute.of("foo", String)
            def attr2 = Attribute.of("bar", String)
            def attr3 = Attribute.of("baz", String)
    
            given:
            ImmutableAttributes[] candidates = [
                candidate(ImmutableMap.of(attr1, "v1", attr2, "v2")),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 20:17:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/AttributeSelectionUtilsTest.groovy

            hasExtraAttribute(attr2)
            doesNotHaveExtraAttribute(attr1)
        }
    
        def "collects extra attributes, two candidates"() {
            def attr1 = Attribute.of("foo", String)
            def attr2 = Attribute.of("bar", String)
            def attr3 = Attribute.of("baz", String)
    
            given:
            candidate {
                attribute(attr1, "v1")
                attribute(attr2, "v2")
            }
            candidate {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/func_attr.mlir

    }
    
    // CHECK:        op: "NoOp"
    // CHECK-NEXT:   attr
    // CHECK-NEXT:     key: "_f"
    // CHECK-NEXT:     value
    // CHECK-NEXT:       func
    // CHECK-NEXT:         name: "original_callee"
    // CHECK-NEXT:         attr
    // CHECK-NEXT:           key: "attr2"
    // CHECK-NEXT:           value
    // CHECK-NEXT:             b: true
    // CHECK:              attr
    // CHECK-NEXT:           key: "attr3"
    // CHECK-NEXT:           value
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 16:41:06 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.td

        device: The tensorflow device. eg. "/CPU:0"
        op_attrs: The tensorflow attributes excluding the func attrs.
        op_name: The tensorflow op name. eg. "tf.AddV2"
    
        Example:
          tfrt_fallback_sync.createop() key(0) device("/CPU:0")
            "some.op"() {attr1 = value, attr2 = value2} {f_attr1 = "fn1", f_attr2 = "fn2"} num_args(1)
      }];
    
      let arguments = (ins
        StrAttr:$node_def,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 07 21:12:01 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/arg-retval-attrs.pbtxt

      }
      attr {
        key: "_arg1_attr1"
        value {
          f: 8.0
        }
      }
      attr {
        key: "index"
        value {
          i: 1
        }
      }
    }
    node {
      name: "arg2"
      op: "_Arg"
      attr {
        key: "T"
        value {
          type: DT_BOOL
        }
      }
      attr {
        key: "index"
        value {
          i: 2
        }
      }
    }
    node {
      name: "ret0"
      op: "_Retval"
      input: "arg0"
      attr {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 24 00:18:34 UTC 2023
    - 2.3K bytes
    - Viewed (0)
Back to top