Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 654 for attr_ (0.06 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/AbstractModuleDependencySpec.groovy

        }
    
        void "can set attributes"() {
            def attr1 = Attribute.of("attr1", String)
            def attr2 = Attribute.of("attr2", Integer)
    
            when:
            dependency.attributes {
                it.attribute(attr1, 'foo')
                it.attribute(attr2, 123)
            }
    
            then:
            dependency.attributes.keySet() == [attr1, attr2] as Set
            dependency.attributes.getAttribute(attr1) == 'foo'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 16:36:23 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  2. src/log/slog/record_test.go

    }
    
    func newRecordWithAttrs(as []Attr) Record {
    	r := NewRecord(time.Now(), LevelInfo, "", 0)
    	r.AddAttrs(as...)
    	return r
    }
    
    func attrsSlice(r Record) []Attr {
    	s := make([]Attr, 0, r.NumAttrs())
    	r.Attrs(func(a Attr) bool { s = append(s, a); return true })
    	return s
    }
    
    func attrsEqual(as1, as2 []Attr) bool {
    	return slices.EqualFunc(as1, as2, Attr.Equal)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 15:10:55 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    	// Add on extra attributes if provided.
    	if attrs != nil {
    		// Make bold if specified.
    		if attrs.Bold {
    			attr += ` style="bold,filled"`
    		}
    
    		// Add peripheries if specified.
    		if attrs.Peripheries != 0 {
    			attr += fmt.Sprintf(` peripheries=%d`, attrs.Peripheries)
    		}
    
    		// Add URL if specified. target="_blank" forces the link to open in a new tab.
    		if attrs.URL != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      // we cannot rely on node name; use an attribute instead.
      host_compute_builder.Attr(kXlaOriginalOutsideCompilationNodeName,
                                host_compute_builder.node_name());
    
      // Copy all attributes.
      for (const auto& attr : call_node->attrs()) {
        host_compute_builder.Attr(attr.first, attr.second);
      }
    
      // Populate tpu_core assignment.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

    }
    
    LogicalResult ConvertNgrams(func::FuncOp func, llvm::StringRef api,
                                FuncAttr attr) {
      func.eraseBody();
      func.addEntryBlock();
      func->setAttr(kTFImplements, attr);
      OpBuilder builder(func.getBody());
      std::string custom_option_buffer;
      if (failed(CreateNgramsCustomOption(func, attr.getAttrs(),
                                          custom_option_buffer))) {
        return failure();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. src/log/slog/logger_test.go

    	for _, test := range []struct {
    		args []any
    		want []Attr
    	}{
    		{nil, nil},
    		{[]any{"a", 1}, []Attr{Int("a", 1)}},
    		{[]any{"a", 1, "b", "two"}, []Attr{Int("a", 1), String("b", "two")}},
    		{[]any{"a"}, []Attr{String(badKey, "a")}},
    		{[]any{"a", 1, "b"}, []Attr{Int("a", 1), String(badKey, "b")}},
    		{[]any{"a", 1, 2, 3}, []Attr{Int("a", 1), Int(badKey, 2), Int(badKey, 3)}},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/xml/DomUtil.java

                final Attr attr = (Attr) attrs.item(i);
                buf.append(' ');
                appendAttr(attr, buf);
            }
        }
    
        /**
         * {@link Attr}の文字列表現を追加します。
         *
         * @param attr
         *            属性。{@literal null}であってはいけません
         * @param buf
         *            文字列バッファ。{@literal null}であってはいけません
         */
        public static void appendAttr(final Attr attr, final StringBuilder buf) {
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

      EXPECT_EQ(shapes.size(), 0);
      TF_CHECK_OK(GetNodeAttr(host_compute_1->attrs(), "shapes", &shapes));
      EXPECT_EQ(shapes.size(), 1);
      EXPECT_EQ(shapes[0].dim_size(), 1);
      // Check XlaHostCompute nodes' "shape_inference_graph" attr. Both should have
      // empty values.
      NameAttrList shape_inference_graph;
      TF_CHECK_OK(GetNodeAttr(host_compute_0->attrs(), "shape_inference_graph",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/mlir-module-serialized-str-attr.mlir

    // RUN: tf-mlir-translate -mlir-tf-mlir-to-str-attr -mlir-print-local-scope %s | FileCheck %s
    
    module attributes {tf.versions = {producer = 888 : i32}} {
      func.func @main(%arg0: tensor<?xi32>) -> tensor<?xi32> {
        %0 = "tf.Identity"(%arg0) : (tensor<?xi32>) -> tensor<?xi32> loc(unknown)
        func.return %0 : tensor<?xi32> loc(unknown)
      } loc(unknown)
    } loc(unknown)
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 24 06:42:46 UTC 2023
    - 672 bytes
    - Viewed (0)
  10. 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)
Back to top