- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for interop (0.29 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
op->getSuccessors(), new_regions); inner_op = rewriter.create(state); } else { bool disable_call_shape_inference = false; if (op->hasAttr("_disable_call_shape_inference")) { disable_call_shape_inference = op->getAttrOfType<BoolAttr>("_disable_call_shape_inference") .getValue(); } inner_op =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
namespace { // Finds in a block if the op of type `InnerOpT` is the first operation and // optionally followed by a terminator. template <typename InnerOpT> bool HasSingleOpInBlock(Block *block) { if (block->empty()) return false; if (!llvm::isa<InnerOpT>(block->front())) return false; // Either InnerOpT is the only instruction in the block, or there is a // possible terminator.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
block->walk([&](Operation* op) { Operation* iter_op = op; while (iter_op && !llvm::isa<mlir::tf_device::ClusterOp>(iter_op)) { if (iter_op->hasAttrOfType<StringAttr>(kXlaOutsideCompilationAttr)) { return; } iter_op = iter_op->getParentOp(); } if (!IsSupportedOp(*op, supported_ops, tf_dialect)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
for (Operation* cluster_op : cluster_ops) { cluster_op->moveBefore(body, body->end()); cluster_op->walk([&](Operation* inner_op) { inner_op->removeAttr(mlir::TF::kReplicationInfoAttr); inner_op->removeAttr(mlir::TF::kCompileDeviceTypeAttr); if (auto attr = inner_op->getAttrOfType<StringAttr>(kDeviceAttr)) { // Preserve device attribute if the op is placed on a replicated core
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc
} else if (auto island = llvm::dyn_cast<mlir::tf_executor::IslandOp>(inst)) { Operation& inner_op = island.GetBody().front(); auto op_name = GetTensorFlowOpName(inner_op.getName().getStringRef()); if (llvm::isa<FuncOp>(inner_op) && op_name.ok()) { // If it is TF Control dialect specific op, look up custom operation
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc
} else if (auto island = llvm::dyn_cast<mlir::tf_executor::IslandOp>(inst)) { Operation& inner_op = island.GetBody().front(); auto op_name = GetTensorFlowOpName(inner_op.getName().getStringRef()); if (llvm::isa<FuncOp>(inner_op) && op_name.ok()) { // If it is TF Control dialect specific op, look up custom operation
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 23:04:51 UTC 2024 - 35.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
} else if (auto sink = llvm::dyn_cast<tf_executor::NextIterationSinkOp>(op)) { return ops_have_same_device(sink.GetSource(), sink); } return llvm::isa<tf_executor::EnterOp, tf_executor::ExitOp, tf_executor::IslandOp, tf_executor::MergeOp, tf_executor::SwitchOp>(op); } // Assigns all data results to a specified device. void PopulateDeviceForOpResults(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc
// the merged pad will not change anything, while the un-merged will remove a // value, then insert a 0 at its place. This only holds for low and high pads, // the spec does not allow negative interior pads, so we don't check there. auto low_pads = pad_op.getEdgePaddingLow().getValues<IntegerAttr>(); auto parent_low_pads = parent_pad.getEdgePaddingLow().getValues<IntegerAttr>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 26.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc
using ::tensorflow::quantization::PyFunctionLibrary; bool IsControlFlowV1Op(Operation* op) { return mlir::isa<mlir::tf_executor::SwitchOp, mlir::tf_executor::MergeOp, mlir::tf_executor::EnterOp, mlir::tf_executor::ExitOp, mlir::tf_executor::NextIterationSinkOp, mlir::tf_executor::NextIterationSourceOp>(op); } mlir::LogicalResult IsValidGraph(mlir::ModuleOp module) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc
// as well. For example there is Enter and RefEnter op. RefEnter forwards // the input ref buffer to output. However both Enter and RefEnter are // mapped to tf_executor::EnterOp during import. Check if it is a Ref op to // correctly map to the TensorFlow Graph op. if (IsRefTypeControlOp(inst)) op_name = "Ref"; TF_ASSIGN_OR_RETURN(auto tf_name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 19.7K bytes - Viewed (0)