Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 34 for op_registry (0.26 sec)

  1. tensorflow/compiler/jit/partially_decluster_pass.cc

          continue;
        }
    
        DeviceType device_type("");
        TF_RETURN_IF_ERROR(
            DeviceNameToDeviceType(n->assigned_device_name(), &device_type));
        TF_RETURN_IF_ERROR(MemoryTypesForNode(graph.op_registry(), device_type,
                                              n->def(), &input_mtypes,
                                              &output_mtypes));
        for (const Edge* e : n->out_edges()) {
          Node* dst = e->dst();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/scope.cc

    Scope Scope::NewRootScope() {
      Graph* graph = new Graph(OpRegistry::Global());
      ShapeRefiner* refiner =
          new ShapeRefiner(graph->versions(), graph->op_registry());
      return Scope(new Impl(graph, new Status, new Impl::NameMap, refiner,
                            /* disable_shape_inference */ false));
    }
    
    Scope Scope::DisabledShapeInferenceScope() {
      Graph* graph = new Graph(OpRegistry::Global());
      ShapeRefiner* refiner =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

    Status BuildXlaOps(const Scope& s, const FunctionDefLibrary& fdef_lib,
                       std::unique_ptr<Graph>* result) {
      auto graph = std::make_unique<Graph>(OpRegistry::Global());
      TF_RETURN_IF_ERROR(s.ToGraph(graph.get()));
      FunctionLibraryDefinition flib_def(graph->op_registry(), fdef_lib);
    
      // Assign all nodes to the CPU device.
      static const char* kCpuDevice = "/job:localhost/replica:0/task:0/cpu:0";
      for (Node* n : graph->nodes()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/shape_inference.cc

                       const tensorflow::FunctionLibraryDefinition* fnlib_def,
                       GraphShapeInfo* shape_info) {
      ShapeRefiner shape_refiner(graph->versions(), graph->op_registry());
      shape_refiner.set_require_shape_inference_fns(false);
      // TODO(dlibenzi): Verify if it is worth trying to infer shaped within
      // functions. Some functions can be called at multiple locations with
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

              e->src()->name(), ":", e->src_output(), " -> ", e->dst()->name(), ":",
              e->dst_input());
        }
      }
    
      auto output = std::make_unique<Graph>((*graph)->op_registry());
      TF_RETURN_WITH_CONTEXT_IF_ERROR(
          EncapsulateSubgraphsInFunctions(
              kXlaClusterIdAttr, **graph, RewriteSubgraph,
              /*reuse_existing_functions=*/true, &output, flib_def),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/build_xla_ops_pass.cc

      DeviceType device_type("");
      TF_RETURN_IF_ERROR(
          DeviceNameToDeviceType(n->assigned_device_name(), &device_type));
      TF_RETURN_IF_ERROR(MemoryTypesForNode(root.graph()->op_registry(),
                                            device_type, n->def(), &input_mtypes,
                                            &output_mtypes));
      return output_mtypes;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

        }
      }
      return failure();
    }
    
    bool IsTFTextRegistered(const tensorflow::OpRegistry* op_registery) {
      const std::vector<std::string> kTFTextOps = {
          "WhitespaceTokenizeWithOffsets",
      };
      for (const auto& iter : kTFTextOps) {
        if (op_registery->LookUp(iter)) {
          return true;
        }
      }
      return false;
    }
    
    }  // namespace TFL
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top