Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 119 for getRand (0.14 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

                       << " with broadcast_dims = " << broadcast_dims;
        return nullptr;
      }
      auto larger_broadcast_dims =
          GetI64ElementsAttrForSeq(0, result_type.getRank(), &builder);
      if (x_type.getRank() < y_type.getRank()) {
        if (x_type != result_type) {
          x = builder.create<BroadcastInDimOp>(loc, result_type, x, broadcast_dims);
        }
        if (y_type != result_type) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        // tensor, for setting depth_multiplier attribute, etc.).
        auto filter = tf_op.getFilter();
        auto filter_type = mlir::dyn_cast<RankedTensorType>(filter.getType());
        if (!filter_type || filter_type.getRank() != 4 ||
            !filter_type.hasStaticShape())
          return failure();
    
        Value input = tf_op.getInput();
        RankedTensorType input_type =
            mlir::dyn_cast<RankedTensorType>(input.getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        // before broadcasting.
        if (operand_type.getRank() < output_type.getRank()) {
          input = InsertExpandDimsOp(op, rewriter, input, output_type.getRank());
        }
    
        SmallVector<int32_t> broadcast_shape =
            CastI64ArrayToI32(output_type.getShape()).value();
        TensorType broadcast_shape_type =
            output_type.cloneWith({output_type.getRank()}, rewriter.getI32Type());
        auto broadcast_shape_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

      if (!image_type || !image_type.getElementType().isF32() ||
          image_type.getRank() != 4) {
        return func_.emitWarning() << "Image should be a 4D float tensor";
      }
    
      auto flow_type = mlir::dyn_cast_or_null<RankedTensorType>(
          func_.getFunctionType().getInput(1));
      if (!flow_type || !flow_type.getElementType().isF32() ||
          flow_type.getRank() != 4) {
        return func_.emitWarning() << "Flow should be a 4D float tensor";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

            llvm::dyn_cast<RankedTensorType>(tpose_arg1->getResultTypes()[0]);
        auto tpose_arg2_type =
            llvm::dyn_cast<RankedTensorType>(tpose_arg2->getResultTypes()[0]);
        if (tpose_arg1_type.getRank() != tpose_arg2_type.getRank()) {
          return failure();
        }
    
        if (llvm::isa<BlockArgument>(tpose_arg1.getPerm()) ||
            llvm::isa<BlockArgument>(tpose_arg2.getPerm())) {
          return failure();
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

      Block &cond = while_op.getCond().front();
      Block &body = while_op.getBody().front();
    
      auto n = while_op.getNumOperands();
      if (!AllOperationSafe(cond) || !AllOperationSafe(body)) return false;
    
      // Find all Consumed indices.
      // i is consumed element if result(i) is used outside whileOp or
      // argument(i) is used in whileOp.getCond().
      for (auto i = 0; i < n; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc

          while_op->erase();
        } else if (auto while_op = dyn_cast<TF::WhileRegionOp>(user_op)) {
          auto new_while_op = GetUpdatedWhileOp(
              while_op, while_op.getCond().getArgumentTypes(), args_to_erase);
          new_while_op.getCond().takeBody(while_op.getCond());
          new_while_op.getBody().takeBody(while_op.getBody());
          llvm::BitVector erase_indices;
          UpdateTerminatorArguments(new_while_op.getBody(), args_to_erase,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 09:56:53 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc

        if (!type || !type.getElementType().isF32()) {
          return failure();
        }
        return success(
            op->hasOneUse() &&
            IsWeightQuantizableFunction(*op->getUses().begin(), type.getRank()));
      }
    
      // Checks if the operand is second operand of `tf.XlaCallModule` op for
      // `stablehlo.convolution` or `stablehlo.dot_general` with fully_quantizable
      // trait.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc

      auto iota_shape = iota_type.getShape();
      auto reduce_dim = (*dimensions.value_begin<APInt>()).getSExtValue();
      if (reduce_dim < 0) reduce_dim += iota_type.getRank();
    
      auto index =
          std::optional<SmallVector<int64_t>>(std::in_place, iota_type.getRank());
      while (index.has_value()) {
        StridedArrayView<DenseIntElementsAttr> array_view(
            iota_const_attr, iota_shape, *index, reduce_dim);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc

        if (!mlir::isa<FloatType>(layerStatsType.getElementType())) {
          return emitOpError("layerStats must have a floating point element type");
        }
        if (layerStatsType.getRank() != 1 || layerStatsType.getDimSize(0) != 2) {
          return emitOpError("layerStats must have shape [2]");
        }
      }
      // Verify axisStats (optional) attribute.
      if (getAxisStats()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top