Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 69 for op_registry (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/jit/shape_inference_test.cc

      auto e = ops::Add(root.WithOpName("E"), d, c);
      auto f = ops::Neg(root.WithOpName("F"), e);
      auto g = ops::AddN(root.WithOpName("G"), std::initializer_list<Output>{e, f});
    
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_CHECK_OK(root.ToGraph(graph.get()));
    
      GraphShapeInfo shape_info;
      TF_ASSERT_OK(InferShapes(graph.get(), /*arg_shapes=*/{},
                               /*fnlib_def=*/nullptr, &shape_info));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      auto consumer2 = ops::Identity(scope.WithOpName("consumer2"), out2);
      auto consumer3 = ops::Identity(scope.WithOpName("consumer3"), out3);
    
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
      TF_CHECK_OK(scope.ToGraph(graph.get()));
      return graph;
    }
    
    // Makes an encapsulate body graph for use in tests.
    static std::unique_ptr<Graph> MakeBodyGraph() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K 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/mlir/mlir_graph_optimization_pass_test.cc

    }
    
    class MlirGraphOptimizationPassTest : public Test {
     public:
      void Init(Status pass_run_result,
                const std::vector<MlirOptimizationPassState>& pass_states) {
        graph_ = std::make_unique<Graph>(OpRegistry::Global());
    
        int pass_priority = 0;
        for (const MlirOptimizationPassState& pass_state : pass_states) {
          auto optimization_pass =
              std::make_unique<NiceMock<MockMlirOptimizationPass>>();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_cluster_util_test.cc

        const Scope& scope, FunctionLibraryDefinition* flib_def = nullptr) {
      FunctionDefLibrary flib;
      FunctionLibraryDefinition flib_def_local(OpRegistry::Global(), flib);
      if (flib_def == nullptr) {
        flib_def = &flib_def_local;
      }
    
      std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global()));
    
      TF_RETURN_IF_ERROR(scope.ToGraph(graph.get()));
    
      std::unique_ptr<ProcessFunctionLibraryRuntime> pflr(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top