Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for op_registry (0.16 sec)

  1. tensorflow/compiler/jit/mark_for_compilation_pass_test_helper.cc

    /*static*/ Status MarkForCompilationPassTestHelper::MarkForCompilation(
        std::unique_ptr<Graph>* graph,
        MarkForCompilationPassTestHelper::Options options) {
      FunctionDefLibrary flib;
      FunctionLibraryDefinition flib_def((*graph)->op_registry(), flib);
      return MarkForCompilation(graph, &flib_def, options);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 09 19:51:48 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_internal.h

    };
    
    struct TF_OperationDescription {
      TF_OperationDescription(TF_Graph* g, const char* op_type,
                              const char* node_name)
          : node_builder(node_name, op_type, g->graph.op_registry()), graph(g) {}
    
      tensorflow::NodeBuilder node_builder;
      TF_Graph* graph;
      std::set<tensorflow::string> colocation_constraints;
    };
    
    struct TF_Operation {
      tensorflow::Node node;
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat May 13 00:49:12 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  3. 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)
  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/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)
  6. 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)
  7. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

          tensorflow::OpRegistry::Global(), flib);
    
      tensorflow::XlaCompiler::Options options;
      options.device_type = tensorflow::DeviceType(kArbitraryDeviceName);
      options.client = client;
      options.flib_def = flib_def.get();
      tensorflow::XlaCompiler compiler(options);
    
      std::unique_ptr<tensorflow::Graph> graph_copy(
          new tensorflow::Graph(tensorflow::OpRegistry::Global()));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

    namespace {
    
    Status ForceXlaConstantsOnHost(const Scope& s,
                                   FunctionLibraryDefinition* flib_def,
                                   std::unique_ptr<Graph>* result) {
      auto graph = std::make_unique<Graph>(OpRegistry::Global());
      GraphOptimizationPassOptions options;
      SessionOptions session_options;
      session_options.env = Env::Default();
      options.graph = &graph;
      options.session_options = &session_options;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/test_util.h

    // A helper object to create GraphOptimizationPassOptions.
    struct GraphOptimizationPassWrapper {
      explicit GraphOptimizationPassWrapper()
          : library(OpRegistry::Global(), FunctionDefLibrary()) {
        session_options.env = Env::Default();
      }
    
      // Create GraphOptimizationPassOptions with a graph passed in constructor and
      // sensible options.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/test_util.cc

          options, "/job:localhost/replica:0/task:0", &devices));
      device_mgr_ = std::make_unique<StaticDeviceMgr>(std::move(devices));
    
      OptimizerOptions opts;
      lib_def_ = std::make_unique<FunctionLibraryDefinition>(OpRegistry::Global(),
                                                             FunctionDefLibrary());
      if (fdef.has_value()) {
        TF_CHECK_OK(lib_def_->AddFunctionDef(*fdef));
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top