Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for add_attrs (0.16 sec)

  1. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

        TF_CHECK_OK(s.ToGraph(g.get()));
        auto node_name_image = g->BuildNodeNameIndex();
        node_name_image["identity0"]->AddAttr("_oc", "0");
        node_name_image["identity1"]->AddAttr("_oc", "1");
        PartialTensorShape shape({2});
        node_name_image["identity1"]->AddAttr(
            kXlaInferredShapesAttrName, std::vector<PartialTensorShape>{shape});
    
        FunctionDef *xla_fdef = fdl.add_function();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  2. src/log/slog/internal/benchmarks/handlers_test.go

    import (
    	"bytes"
    	"context"
    	"log/slog"
    	"slices"
    	"testing"
    )
    
    func TestHandlers(t *testing.T) {
    	ctx := context.Background()
    	r := slog.NewRecord(testTime, slog.LevelInfo, testMessage, 0)
    	r.AddAttrs(testAttrs...)
    	t.Run("text", func(t *testing.T) {
    		var b bytes.Buffer
    		h := newFastTextHandler(&b)
    		if err := h.Handle(ctx, r); err != nil {
    			t.Fatal(err)
    		}
    		got := b.String()
    		if got != wantText {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/shape_inference_test.cc

                                ops::Placeholder::Shape({-1, 3}));
      auto c = ops::Add(root.WithOpName("C"), a, b);
      auto d = ops::Neg(root.WithOpName("D"), c);
    
      a.node()->AddAttr("_index", 0);
      b.node()->AddAttr("_index", 1);
    
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_CHECK_OK(root.ToGraph(graph.get()));
    
      std::map<int, InferredShape> arg_shapes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/immediate_execution_operation.h

      // Set stack trace to be used for potential async error reporting.
      virtual void SetStackTrace(ManagedStackTrace stack_trace) = 0;
    
      virtual const tensorflow::AbstractOpAttrs* GetOpAttrs() const = 0;
      virtual void AddAttrs(const AbstractOpAttrs* op_attrs) = 0;
    
      virtual void SetCancellationManager(
          CancellationManager* cancellation_manager) = 0;
    
      // Returns the stack trace set by `SetStackTrace` if exists.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 26 22:40:32 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc

          int& func_count, const TF::SideEffectAnalysis::Info& side_effect_info);
    };
    
    // After raising ops and adding the Func & Call op, call this function
    // to set attributes specific to this pass.
    void AddAttrs(OpsAdded& ops_added, OpBuilder& builder, int func_count) {
      func::FuncOp& added_func_op = ops_added.func_op;
      func::CallOp& added_call_op = ops_added.call_op;
      StringAttr interface_name =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc

      const auto file_prefix_attr = builder.getStringAttr(kTfFilePrefix);
      const auto arg_attrs = builder.getDictionaryAttr({builder.getNamedAttr(
          kTfSavedModelIndexPathAttr, builder.getArrayAttr({file_prefix_attr}))});
    
      const int insert_idx = func_op.getNumArguments();
    
      func_op.insertArgument(insert_idx, /*argType=*/filename_op_type, arg_attrs,
                             NameLoc::get(file_prefix_attr));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Mar 12 06:02:20 UTC 2023
    - 9K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/force_xla_constants_on_host_pass.cc

              flr, function, &fbody, &constant_arg_indices, &resource_arg_indices));
          VLOG(3) << "Found constant arg indices: "
                  << absl::StrJoin(constant_arg_indices, ", ");
    
          node->AddAttr("_input_hostmem", constant_arg_indices);
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/log/slog/handler_test.go

    			var wg sync.WaitGroup
    			for i := 0; i < count; i++ {
    				sub1Record := NewRecord(time.Time{}, LevelInfo, "hello from sub1", 0)
    				sub1Record.AddAttrs(Int("i", i))
    				sub2Record := NewRecord(time.Time{}, LevelInfo, "hello from sub2", 0)
    				sub2Record.AddAttrs(Int("i", i))
    				wg.Add(1)
    				go func() {
    					defer wg.Done()
    					if err := sub1.Handle(ctx, sub1Record); err != nil {
    						t.Error(err)
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

        then_branch.set_name(then_branch_xla_func_name);
        n->ClearAttr("then_branch");
        n->AddAttr("then_branch", then_branch);
      }
      if (else_branch_has_outside_compilation) {
        else_branch.set_name(else_branch_xla_func_name);
        n->ClearAttr("else_branch");
        n->AddAttr("else_branch", else_branch);
      }
      n->AddAttr(kXlaOriginalOutsideCompilationNodeName, n->name());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        llvm::SmallVector<Type> arg_types;
        llvm::SmallVector<Type> res_types;
        llvm::SmallVector<DictionaryAttr> arg_attrs;
        llvm::SmallVector<DictionaryAttr> res_attrs;
        if (failed(FilterTfgSpecificArgResultAttributes(
                getContext(), ftype.getInputs(), graph_func.getAllArgAttrs(),
                arg_types, arg_attrs)) ||
            failed(FilterTfgSpecificArgResultAttributes(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top