Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CloneOpWithReplacedOperands (0.22 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.td

    def FuseAffineOpAndMul : Pat<
      (TF_MulOp
        (SupportedAffineOpMatcher $conv_out, $input, $weight),
        (TF_ConstOp:$mul_rhs IsFloatElementsAttr:$mul_rhs_value)),
      (CloneOpWithReplacedOperands
            (GetDefiningOp $conv_out),
            $input,
            (MultiplyFakeQuantValue $weight,
              (MakeOneDimValueBroadcastable $mul_rhs, $weight))),
      [(HasOneUse $conv_out),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:24:59 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td

    // Returns defining op of this value.
    def GetDefiningOp :  NativeCodeCall<"$0.getDefiningOp()">;
    
    // Clones an operation with new operands while keeping attributes.
    def CloneOpWithReplacedOperands : NativeCodeCall<
      "CloneOpWithReplacedOperands("
        "$_builder, $0, llvm::SmallVector<Value>{$1...}).front()">;
    
    // Checks whether the value of a constant equals the given float, regardless
    // of the tensor dimension.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 04:55:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

    Type CloneTypeWithNewElementType(Type old_type, Type element_type) {
      if (!mlir::isa<ShapedType>(old_type)) return {};
    
      return mlir::cast<ShapedType>(old_type).clone(element_type);
    }
    
    SmallVector<Value> CloneOpWithReplacedOperands(
        OpBuilder& builder, Operation* op, const ArrayRef<Value> new_operands) {
      IRMapping mapping;
      for (const auto& arg : enumerate(new_operands)) {
        mapping.map(op->getOperand(arg.index()), arg.value());
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

        return false;
      }
    
      return splat_x == splat_y;
    }
    
    // Clones an operation with new operands while keeping attributes.
    SmallVector<Value> CloneOpWithReplacedOperands(OpBuilder& builder,
                                                   Operation* op,
                                                   ArrayRef<Value> new_operands);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top