Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IdentityNOp (0.72 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      // TODO(haoliang): add an interface for DatasetOp to avoid the following
      // enumeration.
      // Iteratively tracing upwards if parent op is `IdentityOp` or `IdentityNOp`.
      while (
          llvm::isa_and_nonnull<IdentityOp, IdentityNOp>(value.getDefiningOp())) {
        value = value.getDefiningOp()->getOperand(
            mlir::cast<OpResult>(value).getResultNumber());
      }
    
      Operation* op = value.getDefiningOp();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        }
        return success();
      }
    };
    
    // Bypasses IdentityN op.
    class ConvertIdentityNOp : public OpRewritePattern<TF::IdentityNOp> {
     public:
      using OpRewritePattern<TF::IdentityNOp>::OpRewritePattern;
      LogicalResult matchAndRewrite(TF::IdentityNOp op,
                                    PatternRewriter &rewriter) const override {
        rewriter.replaceOp(op, op.getOperands());
        return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top