Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 88 for operands_ (0.24 sec)

  1. tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc

    };
    
    }  // namespace
    
    /// Matches a [constant] -> [qbarrier] where the qbarrier results type is
    /// quantized and the operand type is quantizable.
    
    LogicalResult QuantizedConstRewrite::matchAndRewrite(
        QuantizeCastOp qbarrier, PatternRewriter &rewriter) const {
      Attribute value;
    
      // Is the operand a constant?
      if (!matchPattern(qbarrier.getArg(), m_Constant(&value))) {
        return failure();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/nchw_convolution_to_nhwc.cc

            mlir::cast<TensorType>(input.getType()), kNchwToNhwcPermutation);
    
        auto input_transpose_op = rewriter.create<mlir::stablehlo::TransposeOp>(
            op.getLoc(), /*resultType0=*/new_input_tensor_type, /*operand=*/input,
            rewriter.getDenseI64ArrayAttr(kNchwToNhwcPermutation));
    
        // Transpose the filter tensor: [o, i, 0, 1] => [0, 1, i, o]
        Value filter = op->getOperand(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/mark_input_output_aliases.cc

          return failure();
        }
        alias_info.output_index = result.getResultNumber();
      }
    
      for (auto& operand : cluster_func->getOpOperands()) {
        auto read_op = llvm::dyn_cast_or_null<TF::ReadVariableOp>(
            operand.get().getDefiningOp());
        if (!read_op) continue;
        if (!read_op->hasOneUse()) continue;
        auto it = resource_alias_info_map.find(read_op.getResource());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 04:14:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc

      std::vector<int> stateful_operands_index;
      if (!IsStatefulOp(op, &stateful_operands_index)) return success();
    
      for (int index : stateful_operands_index) {
        Value operand = op->getOperand(index);
        auto inserted_value = values->insert(operand).second;
        if (inserted_value) continue;
        // We can only clone the constant op or const->dequantize combo. The latter
        // case is useful for float16 quantization. Since all ops have been
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc

          if (!op.hasTrait<OpTrait::ReturnLike>()) continue;
          for (OpOperand& operand : op.getOpOperands()) {
            int i = operand.getOperandNumber();
            if (used_argument[i] && operand.get() != used_argument[i]) {
              assert(i < number_of_results);
              invariant.reset(i);
            }
            used_argument[i] = operand.get();
          }
        }
      }
      return invariant;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize.cc

          : StableHloQuantizationBase<StableHloQuantization>(ctx) {}
    };
    
    // Quantization rewrite pattern using Q as the root op. This is for the
    // quantizable ops without floating-point operands.
    struct StableHloQuantizationReverse
        : public StableHloQuantizationBase<StableHloQuantizationReverse,
                                           quantfork::QuantizeCastOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 07:08:19 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.cc

      if (isa<TF::ConstOp>(op)) return true;
    
      if (op->getDialect()->getNamespace() != "tf" || !TF::CanBeFolded(op)) {
        return false;
      }
    
      // Check if the operands are foldable as well.
      for (auto operand : op->getOperands()) {
        auto preceding_op = operand.getDefiningOp();
        if (!preceding_op || !IsOperationFoldable(preceding_op)) {
          return false;
        }
      }
    
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/go/types/badlinkname.go

    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname badlinkname_Checker_infer go/types.(*Checker).infer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 702 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/errors.go

    func (err *error_) report() {
    	if err.empty() {
    		panic("no error")
    	}
    
    	// Cheap trick: Don't report errors with messages containing
    	// "invalid operand" or "invalid type" as those tend to be
    	// follow-on errors which don't add useful information. Only
    	// exclude them if these strings are not at the beginning,
    	// and only if we have at least one error already reported.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

      auto result = op->getResult(0);
      if (!result.hasOneUse()) return nullptr;
      return (*result.getUses().begin()).getOwner();
    }
    
    // Gets operation providing value for the given operand of given operation
    // if the given operation is the only user.
    Operation* GetInputOpWithOneUse(Operation* op, int opr_num) {
      if (opr_num >= op->getNumOperands()) return nullptr;
      auto opr = op->getOperand(opr_num);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top