Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for OpRegistry (0.29 sec)

  1. tensorflow/compiler/mlir/lite/utils/tftext_utils_test.cc

    }
    
    }  // namespace
    
    TEST(TfTextUtilsTest, TestTfTextRegistered) {
      std::unique_ptr<OpRegistry> registry(new OpRegistry);
      Register("WhitespaceTokenizeWithOffsets", registry.get());
      EXPECT_TRUE(IsTFTextRegistered(registry.get()));
    }
    
    TEST(TfTextUtilsTest, TestTfTextNotRegistered) {
      std::unique_ptr<OpRegistry> registry(new OpRegistry);
      Register("Test", registry.get());
      EXPECT_FALSE(IsTFTextRegistered(registry.get()));
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:14:37 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      Output reshape =
          ops::Reshape(root.WithOpName("reshape"), reshape_input, shape);
    
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_ASSERT_OK(root.ToGraph(graph.get()));
      auto fld = std::make_unique<FunctionLibraryDefinition>(OpRegistry::Global(),
                                                              flib_def);
      TF_ASSERT_OK(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/partially_decluster_pass_test.cc

      }
      std::sort(inputs->begin(), inputs->end(), NodeComparatorName());
      return true;
    }
    
    TEST(PartiallyDeclusterPassTest, ClusteredAndUnclustered) {
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      {
        GraphDefBuilder builder(GraphDefBuilder::kFailImmediately);
        Node* input =
            ops::SourceOp("FakeNullary", builder.opts().WithName("Input"));
        Node* clustered_producer =
    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/mlir/tensorflow/utils/dump_graph_test.cc

      Status Tell(int64_t* position) override {
        return errors::Unimplemented("Stream not seekable");
      }
    
     private:
      string& str_;
    };
    
    TEST(Dump, TextualIrToFileSuccess) {
      Graph graph(OpRegistry::Global());
      Node* node;
      TF_CHECK_OK(NodeBuilder("A", "NoOp").Finalize(&graph, &node));
    
      setenv("TF_DUMP_GRAPH_PREFIX", testing::TmpDir().c_str(), 1);
      UseMlirForGraphDump(MlirDumpConfig());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/rearrange_function_argument_pass_test.cc

        auto ret0 = ops::_Retval(s.WithOpName("ret0"), arg1, 0);
        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, "f3", xla_fdef));
      }
      FunctionLibraryDefinition fld(OpRegistry::Global(), fdl);
    
      // Build the XLA computation graph.
      // "arg0" (T=DT_RESOURCE), "arg1" (T=DT_INT32)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/extract_outside_compilation_pass_test.cc

        Output const0 = ops::Const(s.WithOpName("const0"), 1, {2});
        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, "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)
  7. tensorflow/compiler/jit/compilability_check_util_test.cc

              .Attr("Tout", {DT_INT32})
              .Finalize(root.graph(), &if_node));
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_ASSERT_OK(root.ToGraph(graph.get()));
    
      flib_def_.reset(new FunctionLibraryDefinition(OpRegistry::Global(), flib));
    
      auto if_node_it = std::find_if(
          graph->nodes().begin(), graph->nodes().end(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

    }
    
    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);
    
      ConfigProto config = ConfigProto();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/bitcast_op_test.cc

    }
    
    PartialTensorShape S(std::initializer_list<int64_t> dims) {
      return PartialTensorShape(dims);
    }
    
    TEST(BitcastOpTest, TestShapeInference_LargerShape) {
      const OpRegistrationData* reg;
      TF_CHECK_OK(OpRegistry::Global()->LookUp("Bitcast", &reg));
      OpDef op_def = reg->op_def;
      NodeDef def;
      TF_CHECK_OK(NodeDefBuilder("dummy", &op_def)
                      .Attr("type", DT_INT8)
                      .Attr("T", DT_INT64)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/ops/gen/common/controller.cc

      TF_CHECK_OK(WriteStringToFile(env_, file_path, code.Render())) << file_path;
    }
    
    const std::vector<OpSpec>& Controller::GetModelOps() const {
      return operators_;
    }
    
    void Controller::InitializeOpApi() {
      OpRegistry::Global()->Export(false, &op_list_);
    
      // Load matching API defs for each Op. Paths are visited in order, allowing
      // python/api_def_Xyz.pbtxt to override base/api_def_Xyz.pbtxt, for example.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top