Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for replaceMap (0.25 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize.cc

            inner_reshape_op->getLoc(),
            inner_reshape_input, new_reshape_shape_value);
    
        // Create a new reshape_op to replace the old inner reshape_op.
        rewriter.replaceOp(inner_reshape_op, new_inner_reshape_op.getResult());
    
        // Get the new shape for the broadcast_op after removing the extra 1s.
        llvm::SmallVector<int64_t, 6> new_broadcast_shape{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                  conv_output_type, rewriter);
          output = rewriter.create<mhlo::TransposeOp>(
              conv_op.getLoc(), conv_op.getType(), output, permutation);
        }
        rewriter.replaceOp(conv_op, {output});
      }
    };
    
    // Convert a 1-D convolution into a 2-D convolution (which TF supports) so that
    // it can be rewritten by the pattern `Convert2DConvOp`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

          for (auto index_result :
               llvm::zip(dynamic_indices, dynamic_shape_n.getResults())) {
            results[std::get<0>(index_result)] = std::get<1>(index_result);
          }
        }
    
        rewriter.replaceOp(op, results);
        return success();
      }
    };
    
    // Canonicalize ShapeNOp to ShapeOp if there is only one operand.
    class ShapeNToShape : public OpRewritePattern<ShapeNOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

                                        ArrayRef<NamedAttribute>());
      Operation* new_unary_op = rewriter.create(new_unary_op_state);
      CopyDeviceAndUnderscoredAttributes(op, new_unary_op);
    
      rewriter.replaceOp(op, new_unary_op->getResults());
    
      return success();
    }
    
    // Hoist coefficient-wise binary operation out of the Concat op:
    //
    //   %0 = tf.Mul(%lhs_0, %rhs_0)
    //   %1 = tf.Mul(%lhs_1, %rhs_1)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

          // Make sure the ordering is the same for the pack op & unpack op.
          if (pack_input != unpack_output) return failure();
        }
    
        // Replace the pack's output to the unpack's input.
        rewriter.replaceOp(pack_op, input_unpack_op.getOperand());
        // At this point, we don't manually remove the redundant pack op & unpack op
        // (we cannot actually), but trust the PatterRewriter to garbage collect
        // these two ops.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top