Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for AttrSlice (0.16 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/jit/extract_outside_compilation_pass_test.cc

        }
      }
      EXPECT_TRUE(has_control_edge_to_send_from_host);
      // Verify step 7: necessary attrs added to call_node_def.
      NameAttrList shape_inference_graph;
      TF_CHECK_OK(GetNodeAttr(AttrSlice(&call_node_def.attr()),
                              "shape_inference_graph", &shape_inference_graph));
      EXPECT_EQ(shape_inference_graph.name(),
                "_outside_compilation_shape_inference_cluster__0");
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

            std::unique_ptr<FunctionBody> new_fbody;
            TF_RETURN_IF_ERROR(FunctionDefToBodyHelper(*fld.Find(function.name()),
                                                       AttrSlice(&function.attr()),
                                                       &fld, &new_fbody));
            *fbody = new_fbody.get();
            fbodies.push_back(std::move(new_fbody));
            return absl::OkStatus();
          },
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      TF_RETURN_IF_ERROR(FunctionDefToBodyHelper(
          *then_branch_function_def, AttrSlice(&then_branch_func.attr()), fld,
          &then_branch_function_body));
    
      std::unique_ptr<FunctionBody> else_branch_function_body;
      TF_RETURN_IF_ERROR(FunctionDefToBodyHelper(
          *else_branch_function_def, AttrSlice(&else_branch_func.attr()), fld,
          &else_branch_function_body));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/jit/compilability_check_util.cc

      }
    
      FunctionLibraryRuntime::Handle handle;
      Status s;
      NameAttrList function;
      s = NameAndAttrsFromFunctionCall(call_def, &function);
      if (s.ok()) {
        s = lib_runtime->Instantiate(function.name(), AttrSlice(&function.attr()),
                                     &handle);
      }
      if (!s.ok()) {
        std::string uncompilable_reason =
            absl::StrCat("could not instantiate call: '", function.name(), "'");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/python/mlir.cc

        tsl::Set_TF_Status_from_Status(status, s);
        return "// error";
      }
    
      std::unique_ptr<tensorflow::FunctionBody> fbody;
      s = FunctionDefToBodyHelper(*fdef, tensorflow::AttrSlice(), &flib_def,
                                  &fbody);
      if (!s.ok()) {
        tsl::Set_TF_Status_from_Status(status, s);
        return "// error";
      }
    
      mlir::DialectRegistry registry;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_cluster_util.cc

            return true;
          }
          continue;
        }
    
        callee_ref_nodes.clear();
        FunctionLibraryRuntime::Handle handle;
        if (!lib_runtime
                 ->Instantiate(call_target.name(), AttrSlice(&call_target.attr()),
                               &handle)
                 .ok()) {
          VLOG(2) << "Could not find " << call_target.name()
                  << " in the function library.";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top