- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 435 for ModuleOp (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/runtime_passes.h
// ops. std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>> CreateTPURewritePass( llvm::StringRef module_name = llvm::StringRef()); // Creates a pass that adds ops which perform formatting on variables at // run-time according to compilation result. std::unique_ptr<OperationPass<ModuleOp>> CreateTPUVariableRuntimeReformattingPass();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 10 18:58:57 UTC 2024 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/tf_dialect_to_executor_test.cc
#include "tsl/lib/core/status_test_util.h" #include "tsl/platform/status.h" namespace tensorflow { namespace tf2xla { namespace v1 { namespace { using mlir::ModuleOp; using mlir::DialectRegistry; using mlir::MLIRContext; using mlir::ModuleOp; using mlir::OwningOpRef; using tensorflow::monitoring::testing::CellReader; static constexpr char kCompilationStreamz[] =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:08:57 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call_test.cc
return %0 : tensor<1x3xf32> } } )mlir"; TEST_F(LiftAsFunctionCallTest, LiftedFunctionSucceeds) { OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleLifted); ASSERT_TRUE(module_op); auto composite_dot_general_fn = module_op->lookupSymbol<func::FuncOp>("composite_dot_general_fn_1");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 26.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/translate_utils.h
// graph VersionDef proto. void PopulateTfVersions(mlir::ModuleOp module, const VersionDef& versions); // Extracts TensorFlow GraphDef version information from the given module. // Returns failure if version attribute is missing or any of the sub attributes // are invalid. mlir::LogicalResult ExtractTfVersions(mlir::ModuleOp module, VersionDef* versions);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/logging_hooks_test.cc
mlir_module_ = mlir::parseSourceFile<mlir::ModuleOp>(mlir_module_path, &context_); if (!mlir_module_) { return absl::Status( absl::StatusCode::kNotFound, absl::StrCat("Could not find MLIR module at ", mlir_module_path)); } return absl::OkStatus(); } DialectRegistry registry_; MLIRContext context_; OwningOpRef<mlir::ModuleOp> mlir_module_; Env* env_; std::string test_dir_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 20:29:34 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/jax_to_tfl_flatbuffer.cc
} mlir::OwningOpRef<mlir::ModuleOp> HloToMlirHloTranslateFunction( mlir::StringRef input, mlir::MLIRContext* context, bool import_all_computations) { xla::HloProto hlo_proto; std::string content(input.data(), input.size()); if (!LoadHloProto(content, &hlo_proto)) { LOG(ERROR) << "Failed to load proto"; return nullptr; } mlir::OwningOpRef<mlir::ModuleOp> module =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/optimize_global_tensors.cc
if (resource_analyzer.IsPotentiallyWritten(arg)) { return false; } } return true; } GlobalTensorUsesMap CreateGlobalTensorUsesMap(ModuleOp module) { GlobalTensorUsesMap global_tensor_uses; SymbolTable symbol_table(module); for (auto func : module.getOps<func::FuncOp>()) { for (size_t i = 0, e = func.getNumArguments(); i < e; i++) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/serialize_mlir_module_utils.h
std::string SerializeMlirModule(mlir::ModuleOp module_op); // Parses a MLIR module from `mlir_module_string` into `mlir_module` with // context `mlir_context`. Status DeserializeMlirModule(llvm::StringRef serialized_mlir_module, mlir::MLIRContext* mlir_context, mlir::OwningOpRef<mlir::ModuleOp>* mlir_module); } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 14:25:57 UTC 2022 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
#include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/protobuf.h" #include "tensorflow/core/util/tensor_bundle/byte_swap_tensor.h" namespace tensorflow { static absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> GraphdefToMlirImport( llvm::StringRef input, const std::vector<std::string>& input_arrays, const std::vector<std::string>& input_dtypes, const std::vector<std::optional<std::vector<int>>>& input_shapes,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc
py::return_value_policy::reference); py::class_<mlir::ModuleOp>(m, "ModuleOp") .def("create", [](mlir::Location loc) { return mlir::ModuleOp::create(loc); }) .def("push_back", [](mlir::ModuleOp& m, mlir::func::FuncOp f) { m.push_back(f); }) .def("dump", &mlir::ModuleOp::dump) .def("getAsStr", [](mlir::ModuleOp& m) { std::string str; llvm::raw_string_ostream os(str);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0)