Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 130 for resultType (0.31 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

      auto result_type =
          OpTrait::util::getBroadcastedType(x.getType(), y.getType());
      if (!result_type) {
        if (incompatible_shape_error.getValue()) {
          mlir::emitError(loc, "non-broadcastable operands");
        } else {
          return UnrankedTensorType::get(builder->getI1Type());
        }
      }
    
      auto ranked_type = mlir::dyn_cast<RankedTensorType>(result_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        // Note that we are using the same `result_type` for both the
        // `TensorListStackOp` and `ConcatOp`, since the first dimension of the
        // shape specified by `result_type` is -1.
        auto stacked_extended_part = rewriter->create<TF::TensorListStackOp>(
            loc, result_type, extended_part,
            /*element_shape=*/CreateI32SplatConst(loc, rewriter, {}, -1),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

      // All the rest: states, device.
      for (int i = 2; i < 5; ++i) {
        auto result_type =
            mlir::dyn_cast<RankedTensorType>(func_op.getResultTypes()[i]);
        outputs.push_back(CreatTfF32ConstOp(builder, result_type.getShape(), 0.0f,
                                            func_op.getLoc()));
        output_types.push_back(result_type);
      }
    
      // Update function signatures.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      if (x_type.getShape() != y_type.getShape()) return failure();
    
      auto result_type = squared_diff_op.getType();
      if (!result_type) return failure();
    
      auto sub_op =
          rewriter.create<TF::SubOp>(squared_diff_op.getLoc(), result_type, x, y);
      auto mul_op =
          rewriter.create<TF::MulOp>(squared_diff_op.getLoc(), result_type,
                                     sub_op.getResult(), sub_op.getResult());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

          TensorType result_type = mlir::dyn_cast<TensorType>(result.getType());
          if (!result_type) {
            result_types.push_back(result.getType());
            continue;
          }
          QuantizedType qtype =
              mlir::dyn_cast<QuantizedType>(result_type.getElementType());
          if (!qtype) {
            result_types.push_back(result_type);
            continue;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

        const auto result_type = mlir::cast<TensorType>(op.getResult(0).getType());
        const SmallVector<int64_t> new_result_shape =
            Permute<int64_t>(result_type.getShape(), kNchwToNhwcPermutation);
    
        const TensorType new_result_type =
            result_type.cloneWith(new_result_shape, result_type.getElementType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

      auto matmul = rewriter.create<TFL::BatchMatMulOp>(
          loc, RankedTensorType::get(matmul_shape, result_type.getElementType()),
          lhs_flattend, rhs_flattend, /*adj_x*/ false_attr, /*adj_y*/ false_attr,
          /*asym_quant_input*/ false_attr);
      if (result_type.hasStaticShape()) {
        auto reshaped =
            rewriter.create<mhlo::ReshapeOp>(loc, result_type, matmul.getResult());
        return reshaped.getResult();
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      values.reserve(rank);
      for (int i = 0; i < rank; ++i) values.push_back(APInt(bitwidth, r1[i]));
      auto result_type = tensorflow::GetTypeFromTFTensorShape(
          {rank}, IntegerType::get(builder.getContext(), bitwidth));
      return builder.create<TF::ConstOp>(
          loc, DenseElementsAttr::get(result_type, values));
    }
    
    Value GetIndicesForElement(Value index, Value buffer, OpBuilder builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h

        // Verify that the first result type is same as the rest of the results.
        // We skip the comparison against itself.
        for (auto result_type : llvm::drop_begin(op->getResultTypes(), 1)) {
          if (!mlir::tf_type::HasCompatibleElementTypes(type, result_type))
            return op->emitOpError()
                   << "requires all return types to have compatible element types";
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

        auto result_type =
            mlir::dyn_cast_or_null<ShapedType>(transpose_op.getResult().getType());
        auto is_valid_move =
            llvm::all_of(op->getOperands(), [result_type](Value operand) -> bool {
              auto operand_type =
                  mlir::dyn_cast_or_null<ShapedType>(operand.getType());
              return result_type && operand_type && result_type.hasRank() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top