Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 167 for setAttr (0.27 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      auto* defining_op = op->getOperand(operand_index).getDefiningOp();
      for (auto attr : kQuantizationAxisAttrs) {
        if (defining_op->hasAttr(attr)) {
          return defining_op->getAttr(attr);
        }
      }
      // Not found.
      return rewriter.getI64IntegerAttr(-1);
    }
    
    LogicalResult CheckIfAttrIs8Bit(const std::string& attr, Operation* op,
                                    bool& is_8_bit) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy

        }
    
        def "picks the generic object setter if the typed setter does not match the value type"() {
            when:
            def property = writeableProperty(JavaTestSubject, "myProperty", File.class)
    
            then:
            property.type == Object.class
        }
    
        def "picks the typed setter if it is the better match"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. pkg/kubelet/nodestatus/setters.go

    	// per image stored in the node status.
    	MaxNamesPerImageInNodeStatus = 5
    )
    
    // Setter modifies the node in-place, and returns an error if the modification failed.
    // Setters may partially mutate the node before returning an error.
    type Setter func(ctx context.Context, node *v1.Node) error
    
    // NodeAddress returns a Setter that updates address-related information on the node.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 12:12:04 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc

    }
    
    void CreateOp::print(OpAsmPrinter &p) {
      CreateOp op = *this;
      p << "(" << op.getInCh() << ") key("
        << op->getAttrOfType<mlir::IntegerAttr>("op_key").getInt() << ") device("
        << op->getAttr("device") << ") " << op->getAttr("op_name") << "()";
    
      fallback_common::PrintExecuteOpCommon(p, op);
      fallback_common::PrintExecuteOpFuncAttribute(p, op);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/driver/cli.go

    		n := field.name
    		help := configHelp[n]
    		var setter func()
    		switch ptr := cfg.fieldPtr(field).(type) {
    		case *bool:
    			f := flag.Bool(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *int:
    			f := flag.Int(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *float64:
    			f := flag.Float64(n, *ptr, help)
    			setter = func() { *ptr = *f }
    		case *string:
    			if len(field.choices) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 16:39:48 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/binding/DefaultStructBindingsStoreTest.groovy

        }
    
        def "fails when abstract property has only setter"() {
            when:
            extract(TypeWithAbstractWriteOnlyProperty)
            then:
            def ex = thrown InvalidManagedTypeException
            ex.message == """Type ${fullyQualifiedNameOf(TypeWithAbstractWriteOnlyProperty)} is not a valid managed type:
    - Property 'z' is not valid: it must both have an abstract getter and a setter"""
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/binding/DefaultStructBindingsStore.java

                        break;
                    case SETTER:
                        if (!hasVoidReturnType(method.getMethod())) {
                            problems.add(method, "property accessor", "setter method must have void return type");
                        }
                        if (!takesSingleParameter(method.getMethod())) {
                            problems.add(method, "property accessor", "setter method must take exactly one parameter");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 29.7K bytes
    - Viewed (0)
  8. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

                error(methodShouldNotBeAnnotatedConfig { type('MyTask').kind('setter').method('setWriteOnly').annotation('Input') }, 'validation_problems', 'ignored_annotations_on_method'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/PropertyAccessorTypeTest.groovy

            PropertyAccessorType.of(DeviantBean.class.getMethod("isidore")) == PropertyAccessorType.IS_GETTER
            PropertyAccessorType.fromName('settings') == PropertyAccessorType.SETTER
            PropertyAccessorType.of(DeviantBean.class.getMethod("settings", String)) == PropertyAccessorType.SETTER
        }
    
        def "deviant bean properties are considered as such by Java"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/kernels/xla_ops.cc

                            ctx->GetAttr("Tconstants", &constant_types));
      std::vector<int> constants(constant_types.size());
      std::iota(constants.begin(), constants.end(), 0);
      return constants;
    }
    
    std::vector<int> ResourcesVector(OpKernelConstruction* ctx) {
      DataTypeVector constant_types;
      OP_REQUIRES_OK_RETURN(ctx, std::vector<int>(),
                            ctx->GetAttr("Tconstants", &constant_types));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
Back to top