- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 69 for op_registry (0.17 sec)
-
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) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py
_CalibrationMethod = ( stablehlo_quant_config_pb2.CalibrationOptions.CalibrationMethod ) _REGISTRY = {} def _implements(calib_method: _CalibrationMethod): def decorator(cls): assert calib_method not in _REGISTRY _REGISTRY[calib_method] = cls return cls return decorator class _CalibrationAlgorithmBase(abc.ABC):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 14.7K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
return new XlaDeviceCompiler(std::move(xla_persistor), std::move(xla_compiler_client)); } absl::StatusOr<std::unique_ptr<Graph>> SampleGraphAddXY() { std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); Scope scope = Scope::NewRootScope().ExitOnError(); auto a = ops::_Arg(scope.WithOpName("A"), DT_INT32, 0); auto b = ops::_Arg(scope.WithOpName("B"), DT_INT32, 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc
using ::tensorflow::FunctionDefLibrary; using ::tensorflow::FunctionLibraryDefinition; using ::tensorflow::Graph; using ::tensorflow::GraphDef; using ::tensorflow::Node; using ::tensorflow::NodeDef; using ::tensorflow::OpRegistry; using ::tensorflow::SaverDef; using ::tensorflow::quantization::ExportedModel; using ::tensorflow::quantization::RunPasses; using ::tensorflow::quantization::UnfreezeConstantsAndSaveVariables;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:11:25 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_compile_util.cc
// TODO(b/74182462): We implement this by creating a new dummy Graph including // _Arg nodes, and let CompileGraph walk it. This could be optimized. std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); // First create the actual node we care about computing. TF_ASSIGN_OR_RETURN(Node * main_node, graph->AddNode(node_def)); // Create dummy _Arg nodes. Link these to `node` and also via a control
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 09:53:30 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_kernel_creator_test.cc
FunctionDefLibrary proto; for (const auto& fdef : flib) { *(proto.add_function()) = fdef; } lib_def_ = std::make_unique<FunctionLibraryDefinition>( OpRegistry::Global(), proto); OptimizerOptions opts; device_mgr_ = std::make_unique<StaticDeviceMgr>(std::move(devices)); pflr_ = std::make_unique<ProcessFunctionLibraryRuntime>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 16 01:39:55 UTC 2023 - 5.7K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
return nullptr; } // The returned string is owned by OpRegistry, so liveness is not a concern. return input_arg.number_attr().c_str(); } int TF_OpIsStateful(const char* op_type, TF_Status* status) { const tensorflow::OpRegistrationData* op_reg_data; status->status = tensorflow::OpRegistry::Global()->LookUp(op_type, &op_reg_data); if (!status->status.ok()) { return 0; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 29.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc
mlir::cast<mlir::StringAttr>(dict_attr.get("outputs")) .getValue() .split(output_names, ',', /*MaxSplit=*/-1, /*KeepEmpty=*/false); } auto graph = std::make_unique<Graph>(OpRegistry::Global()); // Extract version info. VersionDef versions; auto module = function->getParentOfType<mlir::ModuleOp>(); if (mlir::succeeded(ExtractTfVersions(module, &versions))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
mlir::cast<mlir::StringAttr>(dict_attr.get("outputs")) .getValue() .split(output_names, ',', /*MaxSplit=*/-1, /*KeepEmpty=*/false); } auto graph = std::make_unique<Graph>(OpRegistry::Global()); // Extract version info. VersionDef versions; auto module = function->getParentOfType<mlir::ModuleOp>(); if (mlir::succeeded(ExtractTfVersions(module, &versions))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0)