Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for add_attrs (0.11 sec)

  1. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      add_attrs(read_v.node());
      auto read_w = ops::ReadVariableOp(scope.WithOpName("ReadW"), arg6, DT_FLOAT);
      add_attrs(read_w.node());
    
      auto e = ops::Add(scope.WithOpName("E"), arg0, arg2);
      add_attrs(e.node());
      auto f = ops::Add(scope.WithOpName("F"), read_v, read_w);
      add_attrs(f.node());
      auto g = ops::Add(scope.WithOpName("G"), f, arg3);
      add_attrs(g.node());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  2. src/log/slog/record_test.go

    	r1 := NewRecord(time.Time{}, 0, "", 0)
    	r1.AddAttrs(intAttrs(0, nAttrsInline+1)...)
    	// Ensure that r1.back's capacity exceeds its length.
    	b := make([]Attr, len(r1.back), len(r1.back)+1)
    	copy(b, r1.back)
    	r1.back = b
    	// Make a copy that shares state.
    	r2 := r1
    	// Adding to both should insert a special Attr in the second.
    	r1AttrsBefore := attrsSlice(r1)
    	r1.AddAttrs(Int("p", 0))
    	r2.AddAttrs(Int("p", 1))
    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/log/slog/text_handler_test.go

    	testenv.SkipIfOptimizationOff(t)
    	r := NewRecord(time.Now(), LevelInfo, "msg", 0)
    	for i := 0; i < 10; i++ {
    		r.AddAttrs(Int("x = y", i))
    	}
    	var h Handler = NewTextHandler(io.Discard, nil)
    	wantAllocs(t, 0, func() { h.Handle(context.Background(), r) })
    
    	h = h.WithGroup("s")
    	r.AddAttrs(Group("g", Int("a", 1)))
    	wantAllocs(t, 0, func() { h.Handle(context.Background(), r) })
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 19:05:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

          llvm::StringSet<> all_attrs;
          for (auto& attr : (*this)->getAttrs()) {
            all_attrs.insert(attr.getName().strref());
          }
          for (const auto& operand : llvm::enumerate(getArgumentTypes())) {
            if (auto attr_name = getArgAttrOfType<StringAttr>(
                operand.index(), kAttrArgumentNameAttr)) {
              all_attrs.insert(attr_name.getValue());
            }
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc

      func::FuncOp main_func_op = GetMainFuncOp(*module_op);
      DictionaryAttr arg_attrs = main_func_op.getArgAttrDict(/*index=*/0);
    
      EXPECT_THAT(arg_attrs.get("tf_saved_model.bound_input"), IsNull());
    
      const ArrayRef<Attribute> index_path_attrs =
          mlir::cast<ArrayAttr>(arg_attrs.get("tf_saved_model.index_path"))
              .getValue();
      EXPECT_THAT(index_path_attrs, SizeIs(1));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  6. src/log/slog/record.go

    	for i := 0; i < r.nFront; i++ {
    		if !f(r.front[i]) {
    			return
    		}
    	}
    	for _, a := range r.back {
    		if !f(a) {
    			return
    		}
    	}
    }
    
    // AddAttrs appends the given Attrs to the [Record]'s list of Attrs.
    // It omits empty groups.
    func (r *Record) AddAttrs(attrs ...Attr) {
    	var i int
    	for i = 0; i < len(attrs) && r.nFront < len(r.front); i++ {
    		a := attrs[i]
    		if a.Value.isEmptyGroup() {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc

    // Given argument attributes `arg_attrs`, returns a new set of argument
    // attributes where the "tf_saved_model.bound_input" attribute has been replaced
    // with the "tf_saved_model.index_path" attribute. `index_path` is the element
    // of the index path attribute.
    SmallVector<NamedAttribute> ReplaceBoundInputAttrWithIndexPathAttr(
        const ArrayRef<NamedAttribute> arg_attrs, const StringRef index_path,
        Builder& builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/partially_decluster_pass_test.cc

            ops::BinaryOp("FakeBinary", input, {clustered_producer, 1},
                          builder.opts().WithName("ClusteredConsumer"));
        clustered_producer->AddAttr(kXlaClusterAttr, "cluster_0");
        clustered_consumer->AddAttr(kXlaClusterAttr, "cluster_0");
        consumer_in_different_cluster->AddAttr(kXlaClusterAttr, "cluster_1");
        TF_EXPECT_OK(GraphDefBuilderToGraph(builder, graph.get()));
      }
    
      TF_ASSERT_OK(PartiallyDecluster(&graph));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 23K bytes
    - Viewed (0)
  9. src/net/addrselect.go

    	addrs    []IPAddr // addrs to sort
    	addrAttr []ipAttr
    	srcs     []netip.Addr // or not valid addr if unreachable
    	srcAttr  []ipAttr
    }
    
    func (s *byRFC6724) Len() int { return len(s.addrs) }
    
    func (s *byRFC6724) Swap(i, j int) {
    	s.addrs[i], s.addrs[j] = s.addrs[j], s.addrs[i]
    	s.srcs[i], s.srcs[j] = s.srcs[j], s.srcs[i]
    	s.addrAttr[i], s.addrAttr[j] = s.addrAttr[j], s.addrAttr[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      Node* call;
      TF_ASSERT_OK(MakeXlaCompiledKernel(root.graph(), "cluster_0", "C", &call));
      call->AddAttr(kXlaHasReferenceVarsAttr, false);
      call->set_requested_device(kXlaDeviceName);
      Node* write_op = MakeWrite(root, "write");
      write_op->AddAttr(kXlaHasReferenceVarsAttr, false);
      root.graph()->AddControlEdge(call, write_op);
    
      std::unique_ptr<Graph> graph;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top