- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 91 for registry_ (0.08 sec)
-
tensorflow/compiler/mlir/register_common_dialects_test.cc
#include "mlir/IR/DialectRegistry.h" // from @llvm-project namespace mlir { namespace { TEST(RegisterCommonDialectsTest, DoesntCrash) { mlir::DialectRegistry registry; mlir::RegisterCommonToolingDialects(registry); EXPECT_FALSE(registry.getDialectNames().empty()); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 21 20:13:57 UTC 2023 - 1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/pywrap_tensorflow_to_stablehlo_lib.cc
const std::vector<std::string>& exported_model_signatures, const std::vector<std::string>& tag_names, absl::string_view input_arg_shapes_str) { mlir::DialectRegistry registry; RegisterAllTensorFlowDialects(registry); mlir::MLIRContext context(registry); context.loadAllAvailableDialects(); auto module = TfToStablehlo(input_path, &context, exported_model_signatures, tag_names,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 22:58:42 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_fake_quant_to_qdq.cc
return "Convert Fake Quant op to quant.qcast and quant.dcast pairs"; } void getDependentDialects(DialectRegistry& registry) const override { registry.insert<TF::TensorFlowDialect>(); registry.insert<quant::QuantizationDialect>(); registry.insert<quantfork::QuantizationForkDialect>(); } void runOnOperation() override; }; static PassRegistration<ConvertFakeQuantToQdqPass> pass;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 15 00:56:15 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tpu_embedding_ops_registry.h
namespace mlir { namespace TF { // A global ops registry that is used to hold TPU embedding ops. // // Example: // TPUEmbeddingOpsRegistry::Global().Add<TF::FooOp>(); // for (auto op_type_id : TPUEmbeddingOpsRegistry::Global().GetOpsTypeIds()) // { // ... // } class TPUEmbeddingOpsRegistry { public: // Add the op to the registry. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 14 05:42:28 UTC 2022 - 2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/mlir_tflite_runner.cc
return 1; } // Load the MLIR module. mlir::DialectRegistry registry; registry.insert<mlir::TF::TensorFlowDialect, mlir::TFL::TensorFlowLiteDialect, mlir::arith::ArithDialect, mlir::func::FuncDialect>(); mlir::MLIRContext context(registry); llvm::SourceMgr source_mgr; source_mgr.AddNewSourceBuffer(std::move(*file_or_err), llvm::SMLoc());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 03 00:14:05 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/tac_translate.cc
} options.enable_inliner = true; options.legalize_to_tflite_ops = true; mlir::TFL::tac::TacModule tac_module(options); mlir::DialectRegistry registry; mlir::RegisterAllTensorFlowDialects(registry); tac_module.RegisterExtraDialects(registry); tac_module.SetImporter(CreateTfLiteImporter()); tac_module.SetExporter(CreateTfLiteExporter(options.hardware_backends)); return tac_module.Run(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 14:25:57 UTC 2022 - 5.9K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/BUILD
"//tensorflow/c/experimental/ops/gen/cpp", "//tensorflow/c/experimental/ops/gen/model", "//tensorflow/core:lib", # Without this line to link in ops, the global registry will be empty: "//tensorflow/core:ops", ], ) tf_cc_binary( name = "generate_cpp", args = ["--stderrthreshold=1"], # Warnings and errors to stderr. deps = [":generate_cpp_main"],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 17 15:20:54 UTC 2022 - 864 bytes - Viewed (0) -
tensorflow/c/experimental/gradients/grad_test_helper.cc
} } TF_DeleteTensor(analytical_tensor); delete[] danalytical; } Model BuildGradModel(Model forward, GradientRegistry registry) { return [forward_model = std::move(forward), grad_registry = std::move(registry)]( AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> inputs, absl::Span<AbstractTensorHandle*> outputs) -> Status {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 13:53:47 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc
llvm::cl::ZeroOrMore}; void getDependentDialects(mlir::DialectRegistry& registry) const override { if (!module_) { for (const auto& device : device_specs_flag_) { auto* hardware = this->GetTargetHardware(device); if (hardware == nullptr) continue; hardware->GetDependentDialects(registry); } } } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 19:32:06 UTC 2023 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc
class GraphOptPass : public mlir::PassWrapper<GraphOptPass, mlir::OperationPass<mlir::ModuleOp>> { void getDependentDialects(mlir::DialectRegistry& registry) const override { mlir::RegisterAllTensorFlowDialects(registry); } public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(GraphOptPass) explicit GraphOptPass(std::vector<tensorflow::GraphOptimizationPass*> passes)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 7.6K bytes - Viewed (0)