Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for op_registry (0.16 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/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)
  3. 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)
  4. 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)
  5. 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