Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for getOpResults (0.48 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_xla_call_module_op_to_bfloat16.cc

                op->getLoc(), ToBfloat16Type(op_operand.get().getType()),
                op_operand.get()));
          }
        }
        builder.setInsertionPointAfter(op);
        for (auto op_result : op->getOpResults()) {
          if (IsLargeFloatType(op_result.getType())) {
            const Type original_type = op_result.getType();
            op_result.setType(ToBfloat16Type(original_type));
            const Value cast =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td

      "$_builder.clone(*op0)->getOpResult(0)">;
    
    // Same as CloningOpResult but is used for ops with multiple results.
    class CloningOpResults<int returns> : NativeCodeCall<
      "$_builder.clone(*op0)->getOpResults()", returns>;
    
    // Creates an 1D array const with float values.
    class Create1DConst<string values> : NativeCodeCall<
      "Create1DConstValue<float>($_builder, $_loc, "# values #")">;
    
    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/lite/transforms/post_quantize.cc

                                    PatternRewriter& rewriter) const override {
        if (op.getOperation()->template hasTrait<OpTrait::IsTerminator>()) {
          return failure();
        }
        for (auto result : op.getOperation()->getOpResults()) {
          if (!result.use_empty()) {
            return failure();
          }
        }
        // Remove if the custom op is in the provided map and is NoSideEffect.
        auto custom_op = llvm::isa<CustomOp>(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tpu_validate_inputs.cc

    }
    
    // Gets the successors of an op wrapped in a tf_executor.island.
    llvm::SmallVector<Operation*> GetSuccessors(Operation* op) {
      llvm::SmallVector<Operation*> successors;
      for (auto result : op->getParentOp()->getOpResults()) {
        for (auto& use : result.getUses()) {
          auto succ = use.getOwner();
          successors.push_back(succ);
        }
      }
      return successors;
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 06:51:01 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

            gather_op->getLoc(), tf_gather_nd_result_type, operand,
            cast_op ? cast_op.getResult() : start_indices);
    
        if (!need_transpose_after) {
          rewriter.replaceOp(gather_op, tf_gather_nd_op->getOpResults());
          return success();
        }
    
        // Insert the transpose op after the gather_nd.
        rewriter.replaceOpWithNewOp<mhlo::TransposeOp>(
            gather_op, result_type, tf_gather_nd_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
Back to top