- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 295 for ModuleOp (0.13 sec)
-
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/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/quantization/stablehlo/cc/calibration/statistics.cc
statistics_map.insert(single_map.statistics().begin(), single_map.statistics().end()); } return statistics_map; } absl::Status AddCalibrationStatistics( mlir::ModuleOp module_op, absl::string_view calibration_data_dir, const CalibrationOptions& calibration_options, const PyFunctionLibrary& py_function_library) { TF_ASSIGN_OR_RETURN(const CalibrationStatisticsFlatMap statistics_map,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_calibration_statistics_saver.cc
for (Region& region : op->getRegions()) { if (!region.getOps<TF::CalibrationStatisticsSaverOp>().empty()) { return true; } } SymbolTable symbol_table(op->getParentOfType<ModuleOp>()); // Check the functions associated to CaseOp, IfOp and WhileOp. for (const NamedAttribute& attr : op->getAttrs()) { FlatSymbolRefAttr symbol_attr = dyn_cast_or_null<FlatSymbolRefAttr>(attr.getValue());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc
} void removeAttrMapAttribute(TF::PartitionedCallOp call_op, StringRef function_name, StringRef error_message) const { ModuleOp module = call_op->getParentOfType<ModuleOp>(); SymbolTable symbol_table(module); mlir::func::FuncOp composite_func = dyn_cast<func::FuncOp>(symbol_table.lookup(function_name)); if (!composite_func) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 16.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc
return success(); } }; template <typename T> std::vector<T> GetAllOps(mlir::ModuleOp* module) { std::vector<T> ops; module->walk([&](T op) { ops.emplace_back(op); }); return ops; } bool checkWhetherGraphHasValidStaticLookupTables(ModuleOp module) { auto hashtables = GetAllOps<TF::HashTableV2Op>(&module); // No needs to run the legalization patterns.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/sparsecore_passes.td
limitations under the License. ==============================================================================*/ include "mlir/Pass/PassBase.td" def EmbeddingPipeliningPass : Pass<"tf-embedding-pipelining", "mlir::ModuleOp"> { let summary = "Rewrite graph for embedding pipelining"; let constructor = "TFDevice::CreateEmbeddingPipeliningPass()"; let description = [{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:42:09 UTC 2024 - 3.9K bytes - Viewed (0)