- Sort Score
- Result 10 results
- Languages All
Results 131 - 140 of 435 for ModuleOp (0.34 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/tac_importer_exporter.h
class TacImporter { public: virtual ~TacImporter() = default; // Imports and returns the Module for the imported program. virtual absl::StatusOr<mlir::OwningOpRef<mlir::ModuleOp>> Import() = 0; }; // Interface for exporting a module. // Users should implement the interface for exporting the result from TAC // in their preferred way.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.h
mlir::LogicalResult WalkReachableFromTpuCluster( ModuleOp module, std::function<WalkResult(Operation*, tf_device::ClusterOp, std::optional<std::string>)> callback); // Like above, except TPU clusters are not required to have a host device, and // no host device is passed to `callback`. mlir::LogicalResult WalkReachableFromTpuCluster( ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 04:50:13 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc
static constexpr char kArbitraryDeviceName[] = "XLA_CPU_JIT"; namespace { inline absl::string_view StringRefToView(llvm::StringRef ref) { return {ref.data(), ref.size()}; } } // namespace static OwningOpRef<mlir::ModuleOp> GraphdefToMlirTranslateFunction( llvm::StringRef input, MLIRContext* context) { tensorflow::GraphdefToMlirOptions options{ debug_info_file, xla_compile_device_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc
}; return dump_attributes; } StringAttr DuplicateFunction(Operation *op, const FlatSymbolRefAttr &f_attr) const { ModuleOp module = op->getParentOfType<ModuleOp>(); SymbolTable symbol_table(module); const func::FuncOp ref_func = dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(f_attr.getValue()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/bridge_logger_test.cc
TEST(BridgeLoggerFilters, TestPassFilter) { mlir::DialectRegistry mlir_registry; mlir::RegisterAllTensorFlowDialects(mlir_registry); mlir::MLIRContext mlir_context(mlir_registry); mlir::OwningOpRef<mlir::ModuleOp> mlir_module_with_add; TF_ASSERT_OK(DeserializeMlirModule(module_with_add, &mlir_context, &mlir_module_with_add)); std::unique_ptr<mlir::Pass> partitioning_pass =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 04:50:13 UTC 2023 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow_to_stablehlo/tf_to_stablehlo.cc
absl::StrCat("Failed to parse input MLIR model: ", error_message)); } llvm::SourceMgr source_mgr; source_mgr.AddNewSourceBuffer(std::move(file), llvm::SMLoc()); auto module = parseSourceFile<ModuleOp>(source_mgr, context); if (module->getOperation() == nullptr) { return absl::AbortedError("Failed to parse input MLIR model."); } return quant::stablehlo::ImportedMlirModuleOp(std::move(module), nullptr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 22:58:42 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/post_calibration.cc
using ::tensorflow::quantization::RunPasses; PostCalibrationComponent::PostCalibrationComponent( absl::Nonnull<MLIRContext*> ctx) : ctx_(ABSL_DIE_IF_NULL(ctx)) {} // Crash OK absl::StatusOr<ModuleOp> PostCalibrationComponent::Run( ModuleOp module_op, const QuantizationConfig& config) { TF_RETURN_IF_ERROR(RunPasses( kName, /*add_passes_func=*/ [&config](PassManager& pm) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 02:59:01 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_inline_device_ops.cc
void XlaInlineDeviceOpsPass::runOnOperation() { ModuleOp module = getOperation(); llvm::SmallVector<tf_device::ClusterOp, 4> ops; module.walk( [&](tf_device::ClusterOp cluster_op) { ops.push_back(cluster_op); }); for (auto cluster_op : ops) { InlineDeviceOp(cluster_op); } } } // namespace namespace TFDevice { std::unique_ptr<OperationPass<ModuleOp>> CreateXlaInlineDeviceOpsPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 04 00:59:46 UTC 2022 - 2.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils_test.cc
const llvm::SmallVector<int64_t>& expected_packed_shape, const llvm::SmallVector<int8_t>& expected_packed_values) { MLIRContext context; OwningOpRef<ModuleOp> module(ModuleOp::create(UnknownLoc::get(&context))); OpBuilder builder(&module->getBodyRegion()); context.loadDialect<TF::TensorFlowDialect>(); Value value = CreateConstValue<int8_t>(builder, module->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/analysis/update_op_cost_in_tfrt_mlir_test.cc
namespace tensorflow { namespace { constexpr char kCostAttrName[] = "_tfrt_cost"; constexpr char kOpKeyAttrName[] = "op_key"; absl::flat_hash_map<int64_t, uint64_t> GetOpCostMap(mlir::ModuleOp op) { absl::flat_hash_map<int64_t, uint64_t> op_cost_map; op.walk([&](mlir::Operation* op) { const auto cost_attr = op->getAttrOfType<mlir::IntegerAttr>(kCostAttrName); if (!cost_attr) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 21 22:52:12 UTC 2023 - 3.1K bytes - Viewed (0)