Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for hasOneUse (0.07 sec)

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

      for (int i = 0; i != block.getNumArguments(); ++i) {
        Value arg = block.getArgument(0);
        Type arg_type = arg.getType();
        Value new_arg = arg;
        Location loc = func.getLoc();
        if (arg.hasOneUse() && llvm::isa<QuantizeOp>(*arg.user_begin())) {
          auto quantize_op = llvm::cast<QuantizeOp>(*arg.user_begin());
          auto quantize_output = quantize_op.getOutput();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

        // There are none type values.
        return;
      }
      if (!tensor_type.getElementType().isF32()) return;
    
      // If the result is consumed by a quantize op, it has been quantized.
      if (value.hasOneUse() &&
          llvm::isa<TFL::QuantizeOp>(*value.getUsers().begin()))
        return;
    
      // Add this result to the list to apply the default value.
      values->push_back(value);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top