- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SetTPUInfeedLayout (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.h
#include "mlir/IR/BuiltinOps.h" // from @llvm-project #include "mlir/IR/OwningOpRef.h" // from @llvm-project namespace mlir { // Set layouts attribute of tf.InfeedDequeueTuple ops. bool SetTPUInfeedLayout(OwningOpRef<ModuleOp>& mlir_module); // Try to determine the right TPU infeed layout. FailureOr<Attribute> GetTPUInfeedLayout(ArrayRef<Type> types, OpBuilder& rewriter);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 14 22:51:30 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.cc
mlir::MLIRContext context(registry); mlir::OwningOpRef<mlir::ModuleOp> mlir_module; TF_RETURN_IF_ERROR( DeserializeMlirModule(computation.mlir_module, &context, &mlir_module)); if (!mlir::SetTPUInfeedLayout(mlir_module)) return errors::Internal("Failed to set layouts attribute"); TF_ASSIGN_OR_RETURN( auto compiled_mlir, CompileSerializedMlirToXlaHlo(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 20:29:34 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc
} else { // types.size() == 1 and types[0] == TokenType // For this case, we return an empty array attribute. return rewriter.getArrayAttr({}); } } bool SetTPUInfeedLayout(mlir::OwningOpRef<mlir::ModuleOp> &mlir_module) { auto res = mlir_module->walk([&](mlir::TF::InfeedDequeueTupleOp op) { mlir::OpBuilder builder(op.getContext()); std::vector<mlir::Type> result_types;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc
mlir::OwningOpRef<mlir::ModuleOp> mlir_module; TF_RETURN_IF_ERROR(DeserializeMlirModule(mlir_computation.mlir_module, &context, &mlir_module)); if (!mlir::SetTPUInfeedLayout(mlir_module)) return errors::Internal("Failed to set layouts attribute"); if (VLOG_IS_ON(2)) { tensorflow::DumpMlirOpToFile("legalize_with_old_bridge", mlir_module.get()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 14K bytes - Viewed (0)