- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 435 for ModuleOp (0.12 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc
for (auto& op : vars) RecursiveRemove(op, erase_list, dead_ops); // Erases the ops. for (auto op : erase_list) op->erase(); } void RemoveVariablesInSessionInitializerPass::runOnOperation() { ModuleOp module_op = getOperation(); for (auto init_func_op : GetInitializerFunctions(module_op)) { if (!init_func_op) return; if (init_func_op.getBlocks().size() != 1) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/constant_op_device_assignment.cc
: public impl::ConstantOpDeviceAssignmentPassBase< ConstantOpDeviceAssignmentPass> { void runOnOperation() override; }; void ConstantOpDeviceAssignmentPass::runOnOperation() { ModuleOp module = getOperation(); module.walk([&](TF::ConstOp op) { // Keep the ConstOp if the op already have the device attribute. if (StringAttr device_attr = op->getAttrOfType<StringAttr>(kDeviceAttr)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/function/function.h
#include "tfrt/bef/bef_buffer.h" // from @tf_runtime #include "tfrt/core_runtime/tensor_handle.h" // from @tf_runtime namespace tfrt { class CoreRuntime; } namespace mlir { class ModuleOp; } namespace tensorflow { struct TfrtFunctionCompileOptions : public TfrtCompileOptions { // Currently only SavedModel API inference uses the tpu_fuse_ops option TfrtFunctionCompileOptions() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 04:50:20 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
} } return WalkResult::advance(); }); return success(); } void XlaBroadcast::runOnOperation() { FuncOp func = getOperation(); mlir::ModuleOp module = func->getParentOfType<mlir::ModuleOp>(); if (!module) return signalPassFailure(); func.walk([&](ClusterOp cluster) { if (auto replicate = cluster->getParentOfType<ReplicateOp>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc
XlaComputation computation = GetTestXlaComputation(); TF_ASSERT_OK_AND_ASSIGN(TupleOp root_tuple, ImportXlaComputationIntoModule(computation)); ModuleOp parent_module = root_tuple.getOperation()->getParentOfType<ModuleOp>(); EXPECT_EQ(parent_module, *module_); } TEST_F(Tf2XlaRewriterTest, FailsWithoutRootTuple) { TF_ASSERT_OK(CreateMlirModule());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 11.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.cc
using ::tensorflow::quantization::OpSet; class LiftQuantizableSpotsAsFunctionsDRQPass : public PassWrapper<LiftQuantizableSpotsAsFunctionsDRQPass, OperationPass<ModuleOp>> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID( LiftQuantizableSpotsAsFunctionsDRQPass) // Constructor used by the PassRegistration. This is only used by test.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0) -
tensorflow/cc/experimental/libtf/mlir/mlir_transform.cc
Object obj; obj.Set( String("_module"), Handle(impl::TaggedValue::Capsule(new mlir::OwningOpRef<mlir::ModuleOp>( std::move(module_or).value())))); auto get_string = [](Object self) { auto ref = self.Get<internal::Capsule>(String("_module")) ->cast<mlir::OwningOpRef<mlir::ModuleOp>*>(); return String(tensorflow::MlirModuleToString(ref->get(), false).c_str()); };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jul 12 16:28:19 UTC 2022 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/run_passes.h
// dump file. template <typename FuncT> absl::Status RunPasses(const absl::string_view name, FuncT add_passes_func, mlir::MLIRContext& ctx, mlir::ModuleOp module_op) { mlir::PassManager pm{&ctx}; add_passes_func(pm); mlir::StatusScopedDiagnosticHandler diagnostic_handler{&ctx}; TF_RETURN_IF_ERROR(MaybeEnableIrPrinting(pm, name));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 07 01:17:26 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc
"marker."; return failure(); } } return success(); } void XlaValidateInputsPass::runOnOperation() { ModuleOp module = getOperation(); SymbolTable symtab(module); llvm::SmallVector<func::FuncOp> entry_funcs = GetEntryFunctions(module); if (entry_funcs.empty()) { LOG(WARNING) << "missing entry functions"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 19:29:14 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/inference/inference_metrics_pass_test.cc
#include "tensorflow/core/lib/monitoring/cell_reader.h" #include "tsl/platform/statusor.h" namespace mlir { namespace tf2xla { namespace internal { namespace { using ::mlir::MLIRContext; using ::mlir::ModuleOp; using ::mlir::OwningOpRef; using ::mlir::mhlo::test::GetMlirModuleFromString; using ::tensorflow::monitoring::testing::CellReader; static constexpr char kHasTpuPartitionedCallStreamzName[] =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 3.6K bytes - Viewed (0)