Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for add_attrs (0.15 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  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/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)
  10. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

      // TF op.
      LogicalResult CollectInputsAndAttributes(
          PatternRewriter& rewriter, TFRFuncOp signature, CallOp call_op,
          SmallVectorImpl<Value>* inputs, NamedAttrList* arg_attrs,
          llvm::StringMap<Attribute>* derived_attrs) const;
    
      // Uses the collected attribute values to derive all the output types.
      LogicalResult DeriveOutputTypes(Location loc, FunctionType signature,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
Back to top