Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AttrSlice (0.1 sec)

  1. src/log/slog/internal/benchmarks/handlers_test.go

    		if err := h.Handle(ctx, r); err != nil {
    			t.Fatal(err)
    		}
    		got := h.ringBuffer[0]
    		if !got.Time.Equal(r.Time) || !slices.EqualFunc(attrSlice(got), attrSlice(r), slog.Attr.Equal) {
    			t.Errorf("got %+v, want %+v", got, r)
    		}
    	})
    }
    
    func attrSlice(r slog.Record) []slog.Attr {
    	var as []slog.Attr
    	r.Attrs(func(a slog.Attr) bool { as = append(as, a); return true })
    	return as
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc

        const FunctionDef* func_def = function_library->Find(func_name);
        std::unique_ptr<FunctionBody> func_body;
        absl::Status status = FunctionDefToBodyHelper(
            *func_def, AttrSlice(&func_def->attr()), function_library, &func_body);
        // This is not expected to happen in practice
        if (!status.ok()) {
          LOG(ERROR) << "Failed to parse " << func_name << ": "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 12:22:33 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/device_compilation_cluster_signature.cc

    }
    
    absl::StatusOr<Signature> Signature::Build(
        const NameAttrList& function,
        absl::Span<const XlaCompiler::Argument> args) {
      Signature signature;
      signature.name = Canonicalize(function.name(), AttrSlice(&function.attr()));
    
      for (const XlaCompiler::Argument& arg : args) {
        switch (arg.kind) {
          case XlaCompiler::Argument::kConstant:
          case XlaCompiler::Argument::kConstantResource:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/cc_ops_test.cc

    }
    
    TEST(CCOpTest, KernelLabel) {
      Scope root = Scope::NewRootScope();
      auto add = Add(root.WithKernelLabel("AddWithKernelLabel"), 1.0f, 2.0f);
      TF_EXPECT_OK(root.status());
      AttrSlice attrs = add.z.op().node()->attrs();
      const auto* kernel_attr = attrs.Find("_kernel");
      ASSERT_TRUE(kernel_attr);
      TF_EXPECT_OK(AttrValueHasType(*kernel_attr, "string"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 15 15:13:38 UTC 2023
    - 8.7K bytes
    - Viewed (0)
Back to top