- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 65 for OpRegistry (0.29 sec)
-
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) -
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) -
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) -
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) -
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) -
tensorflow/compiler/jit/cluster_scoping_pass_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 29 16:20:48 UTC 2020 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc
add2.node()->AddAttr("_cluster", "cluster2"); auto out = ops::Mul(root.WithOpName("mul"), add1, add2); Graph graph_before_encapsulation(OpRegistry::Global()); TF_ASSERT_OK(root.ToGraph(&graph_before_encapsulation)); FunctionLibraryDefinition library(OpRegistry::Global(), FunctionDefLibrary()); std::unique_ptr<Graph> graph; TF_ASSERT_OK(EncapsulateSubgraphsInFunctions( "_cluster", graph_before_encapsulation,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 113.3K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.h
LogicalResult ConvertTFTextAPI(mlir::func::FuncOp func, llvm::StringRef api, mlir::TF::FuncAttr attr); // Check if TF.Text Tensorflow ops are registered. bool IsTFTextRegistered(const tensorflow::OpRegistry* op_registery); } // end namespace TFL } // end namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 1.9K bytes - Viewed (0) -
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)