Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for op_registry (0.18 sec)

  1. tensorflow/compiler/jit/xla_compile_util.cc

      // TODO(b/74182462): We implement this by creating a new dummy Graph including
      // _Arg nodes, and let CompileGraph walk it. This could be optimized.
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
    
      // First create the actual node we care about computing.
      TF_ASSIGN_OR_RETURN(Node * main_node, graph->AddNode(node_def));
    
      // Create dummy _Arg nodes. Link these to `node` and also via a control
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_kernel_creator_test.cc

        FunctionDefLibrary proto;
        for (const auto& fdef : flib) {
          *(proto.add_function()) = fdef;
        }
        lib_def_ = std::make_unique<FunctionLibraryDefinition>(
            OpRegistry::Global(), proto);
        OptimizerOptions opts;
        device_mgr_ = std::make_unique<StaticDeviceMgr>(std::move(devices));
        pflr_ = std::make_unique<ProcessFunctionLibraryRuntime>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/pjrt_compile_util_test.cc

    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/statusor.h"
    
    namespace tensorflow {
    namespace {
    
    StatusOr<std::unique_ptr<Graph>> SampleGraphAddXY() {
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      Scope scope = Scope::NewRootScope().ExitOnError();
      auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0);
      auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 21 23:21:57 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. tensorflow/c/kernels/summary_op_test.cc

                          error::INVALID_ARGUMENT);
    }
    
    TEST(ScalarSummaryOpTest, IsRegistered) {
      const OpRegistrationData* reg;
      TF_CHECK_OK(OpRegistry::Global()->LookUp("ScalarSummary", &reg));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/tests/auto_clustering_test_helper.cc

    namespace tensorflow {
    namespace {
    absl::StatusOr<string> SummarizeClustering(
        const GraphDef& auto_clustered_graph_def) {
      testing::ResetClusterSequenceNumber();
      Graph graph(OpRegistry::Global());
      GraphConstructorOptions graph_opts;
      graph_opts.expect_device_spec = true;
      graph_opts.allow_internal_ops = true;
      TF_RETURN_IF_ERROR(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 12:11:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc

    }  // anonymous namespace
    
    void GraphOptPass::runOnOperation() {
      mlir::ModuleOp module_in = getOperation();
      mlir::MLIRContext& ctx = getContext();
    
      // Convert MLIR to Graph
      FunctionLibraryDefinition flib_def(OpRegistry::Global(),
                                         FunctionDefLibrary());
      GraphExportConfig confs;
      auto graph = std::make_unique<Graph>(flib_def);
      absl::flat_hash_set<Node*> control_ret_nodes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

                               use_output_shapes, /*args=*/{},
                               /*control_rets=*/{}, DEVICE_TPU,
                               FunctionLibraryDefinition(OpRegistry::Global()),
                               /*debug_info=*/{},
                               /*custom_legalization_passes=*/{});
    }
    
    TEST(CompileMlirUtil, UsesCorrectOriginalShapeWithoutOutputShapes) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/clone_constants_for_better_clustering_test.cc

    namespace {
    using ::tensorflow::testing::FindNodeByName;
    
    Status CloneConstantsForBetterClustering(const Scope& s,
                                             std::unique_ptr<Graph>* result) {
      auto graph = std::make_unique<Graph>(OpRegistry::Global());
      SessionOptions session_options;
      session_options.config.mutable_graph_options()
          ->mutable_optimizer_options()
          ->set_global_jit_level(OptimizerOptions::ON_2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

    }
    
    absl::StatusOr<FunctionDef> TFRDecomposeContext::ExpandNode(
        const NodeDef& node_def, StringPiece func_name) {
      const OpDef* op_def;
      TF_RETURN_IF_ERROR(OpRegistry::Global()->LookUpOpDef(node_def.op(), &op_def));
      DataTypeVector input_dtys, output_dtys;
      TF_RETURN_IF_ERROR(InputTypesForNode(node_def, *op_def, &input_dtys));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top