- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for IdentityNOp (0.32 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
struct TensorDeviceCopyConversionPass : public impl::TensorDeviceCopyConversionPassBase< TensorDeviceCopyConversionPass> { void runOnOperation() override; }; // Folds tf.IdentityOp and tf.IdentityNOp if op device and the argument devices // from the defining ops match. void TensorDeviceCopyConversionPass::runOnOperation() { func::FuncOp func_op = getOperation();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h
class IdentityOp; class IdentityNOp; // Returns if a value corresponds to a constant, returns the matched constant // as an attribute. template <typename AttrT> bool GetValueAsConstant(Value val, AttrT &attr) { while (auto result = mlir::dyn_cast<OpResult>(val)) { Operation *op = result.getOwner(); if (!isa<IdentityOp>(op) && !isa<IdentityNOp>(op)) break;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_op_quant_spec.cc
if (llvm::isa< // clang-format off // go/keep-sorted start TF::AvgPoolOp, TF::ConcatOp, TF::ConcatV2Op, TF::ExpandDimsOp, TF::IdentityNOp, TF::IdentityOp, TF::MaxPoolOp, TF::PadV2Op, TF::RankOp, TF::ReshapeOp, TF::SelectOp, TF::SelectV2Op, TF::ShapeNOp,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc
#include "mlir/IR/TypeUtilities.h" // from @llvm-project #include "mlir/Support/LLVM.h" // from @llvm-project namespace mlir { namespace TF { class IdentityOp; class IdentityNOp; // Returns the RankedTensorType for the given operand. TensorFlow constant ops // may have non-static shape because the shape is not propagated during constant
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_device_propagation.cc
} } // Checks if an operation can have TPU devices propagated through. bool IsSupportedOpToSetDevice(Operation& op) { return IsSupportedExecutorOp(op) || isa<TF::IdentityOp, TF::IdentityNOp, TF::ShapeOp>(op); } // Finds nonconflicting TPU device for an operation from its operands. If an // operand has no device or a non TPU device, or if there are conflicting
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/tensorflow/analysis/resource_alias_analysis.cc
// Control output is generated by the IslandOp, not the yield in // in the Island body. if (value == island.getControl()) break; value = island.GetYield().getOperand(res_index); } else if (isa<IdentityNOp, IdentityOp>(op)) { value = op->getOperand(res_index); } else if (auto call = dyn_cast<CallOpInterface>(op)) { func::FuncOp func = dyn_cast<func::FuncOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
callee.getArgument(use.getOperandNumber()), module, infer_from_op); if (type_from_callee.has_value()) return type_from_callee; } else if (llvm::isa<TF::IdentityOp, TF::IdentityNOp>(use.getOwner())) { auto type_from_alias = GetElementTypeFromAccess( use.getOwner()->getResult(use.getOperandNumber()), module, infer_from_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
// such nodes to carry information. void RemovePassthroughOp(Block &block) { for (auto &op : llvm::make_early_inc_range(block)) { if (isa<TF::IdentityOp, TF::IdentityNOp>(op) || IsCastOfResource(op)) { op.replaceAllUsesWith(op.getOperands()); op.erase(); } } } using LocalVarOp = std::variant<TF::VarHandleOp, TF::MlirLocalVarOp>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
while (auto result = mlir::dyn_cast<OpResult>(v)) { if (!(allow_other_use || v.hasOneUse())) break; auto op = result.getDefiningOp(); if (!llvm::isa<TF::IdentityOp, TF::IdentityNOp>(op)) { break; } v = op->getOperand(result.getResultNumber()); if (skipped) skipped->insert(op); } return v; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0)