Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for add_function (0.19 sec)

  1. tensorflow/compiler/jit/compilability_check_util_test.cc

      FunctionDefLibrary flib;
      *flib.add_function() = FunctionDefHelper::Define(
          /*Function*/ kCompilableFunctionName,
          /*Inputs*/ {"n_a:float", "n_b:float"},
          /*Outputs*/ {"n_c:float"},
          /*Attribute*/ {},
          // Node info
          {{{kCompilableFunctionNodeName},
            "Add",
            {"n_a", "n_b"},
            {{"T", DT_FLOAT}}}});
      *flib.add_function() = FunctionDefHelper::Define(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        auto ret1 = ops::_Retval(s.WithOpName("ret1"), arg0, 1);
        std::unique_ptr<Graph> g(new Graph(OpRegistry::Global()));
        TF_CHECK_OK(s.ToGraph(g.get()));
        FunctionDef *xla_fdef = fdl.add_function();
        TF_CHECK_OK(GraphToFunctionDef(*g, "f1", xla_fdef));
      }
      {
        // Function for While's "body".
        // "arg0" (T=DT_RESOURCE), "arg1" (T=DT_BOOL)
        // "ret0" = "arg0"
        // "ret1" = "arg1"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

          {{{"out"}, "Identity", {"in"}, {{"T", DataType::DT_RESOURCE}}}});
    }
    
    TEST(IsSupportedByNonReplicatedBridge, NonReplicatedGraph) {
      const FunctionDef& fd = PassThroughResource();
      FunctionDefLibrary flib;
      *flib.add_function() = fd;
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
      Graph graph(flib_def);
      graph.SetConstructionContext(ConstructionContext::kEagerRuntime);
      tensorflow::set_tf2_execution(true);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

        PartialTensorShape shape({2});
        node_name_image["identity1"]->AddAttr(
            kXlaInferredShapesAttrName, std::vector<PartialTensorShape>{shape});
    
        FunctionDef *xla_fdef = fdl.add_function();
        TF_CHECK_OK(GraphToFunctionDef(*g, "cluster", xla_fdef));
      }
      FunctionLibraryDefinition fld(OpRegistry::Global(), fdl);
    
      protobuf::Map<string, tensorflow::AttrValue> attrs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 41K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

          /*function_name=*/name, /*in_def=*/{}, /*out_def=*/{"out: float"},
          /*attr_def*/
          {}, /*node_def=*/{FunctionDefHelper::Const("one", 1.0f)},
          /*ret_def=*/{{"out", "out:output:0"}});
      *fdef_lib.add_function() = std::move(func);
      return fdef_lib;
    }
    
    TEST_F(BuildXlaOpsTest, ControlDepsPreserved) {
      const char* kXlaDeviceName = "/job:worker/replica:0/task:0/device:XLA_CPU:0";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_cluster_util_test.cc

          {{{"var"},
            "VariableV2",
            {},
            {{"dtype", DT_FLOAT}, {"shape", TensorShape({})}}},
           {{"r"}, "Identity", {"var"}, {{"T", DT_FLOAT}}}});
      *fdef_lib->add_function() = make_ref_float;
    }
    
    void AddRegularFunctionFunctionDef(FunctionDefLibrary* fdef_lib) {
      Tensor seven(DT_FLOAT, {});
      seven.scalar<float>()() = 7;
      FunctionDef make_regular_float = FunctionDefHelper::Define(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph_test.cc

      FunctionDef empty_function =
          tensorflow::FunctionDefHelper::Create("empty", {}, {}, {}, {}, {});
    
      tensorflow::FunctionDefLibrary fdef;
      *(fdef.add_function()) = empty_function;
      tensorflow::FunctionLibraryDefinition flib_def(
          tensorflow::OpRegistry::Global(), fdef);
    
      OpInputList guaranteed_constants;
      NameAttrList function;
      function.set_name("empty");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

      // so we define the `graph_` by the following `flib` in this test point
      // instead of the way we do in the Init method.
      FunctionDefLibrary flib;
      *flib.add_function() = XTimesTwo();
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
      graph_ = std::make_unique<Graph>(flib_def);
    
      GraphDef original_graph_def;
      graph_->ToGraphDef(&original_graph_def);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

    }
    
    TEST(LegalizeTFTest, RecordsStreamzForNoMlirFallback) {
      FunctionDef my_func =
          tensorflow::FunctionDefHelper::Create("empty", {}, {}, {}, {}, {});
    
      tensorflow::FunctionDefLibrary fdef;
      *(fdef.add_function()) = my_func;
      tensorflow::FunctionLibraryDefinition flib_def(
          tensorflow::OpRegistry::Global(), fdef);
    
      OpInputList guaranteed_constants;
      NameAttrList function;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

    }
    
    TEST(EncapsulateXlaComputations, BuildXlaLaunchOp) {
      std::unique_ptr<Graph> body_graph = MakeBodyGraph();
      FunctionDefLibrary flib;
      TF_ASSERT_OK(GraphToFunctionDef(*body_graph, "launch0", flib.add_function()));
    
      FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib);
    
      std::unique_ptr<Graph> graph = MakeOuterGraph(flib_def, "launch0");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
Back to top