Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for inputs_ty (0.15 sec)

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

    LogicalResult XlaVariadicSortOp::verify() {
      XlaVariadicSortOp op = *this;
      const auto &inputs_ty = op.getInputs().getType();
      int n_inputs = inputs_ty.size();
      auto input_ty_0 = inputs_ty[0].cast<ShapedType>();
      if (input_ty_0.hasStaticShape()) {
        for (int i = 1; i < n_inputs; ++i) {
          auto input_ty_i = inputs_ty[i].cast<ShapedType>();
          if (input_ty_i.hasStaticShape() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      DataFormatVecPermuteOp op = *this;
      auto input_ty = mlir::dyn_cast<RankedTensorType>(op.getX().getType());
      if (!input_ty) return success();
    
      int rank = input_ty.getRank();
      if (rank != 1 && rank != 2)
        return op.emitOpError("requires input of rank 1 or 2");
    
      if (rank == 1) {
        int64_t dim0 = input_ty.getDimSize(0);
        if (dim0 != ShapedType::kDynamic && dim0 != 4 && dim0 != 2)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        // as its an input requirement.
        if (!input_ty.hasRank() || input_ty.getRank() != 4) {
          return failure();
        }
    
        int64_t batch_cst = input_ty.getShape()[0];
        int64_t channels_cst = input_ty.getShape()[3];
    
        int64_t in_y_cst = input_ty.getShape()[1];
        int64_t in_x_cst = input_ty.getShape()[2];
        int64_t in_spatial_cst =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

    }
    
    Type InferReductionOpType(Value input, Value reduction_indices,
                              BoolAttr keep_dims) {
      Type input_ty = input.getType();
      Type element_ty = getElementTypeOrSelf(input_ty);
    
      // Output type is unranked if input type is not ranked.
      auto ranked_ty = mlir::dyn_cast<RankedTensorType>(input_ty);
      if (!ranked_ty) return UnrankedTensorType::get(element_ty);
      int64_t rank = ranked_ty.getRank();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        }
        int axis = val.getSExtValue();
    
        auto input_ty = mlir::dyn_cast<RankedTensorType>(op.getInput().getType());
        if (!input_ty || !input_ty.hasStaticShape()) {
          return rewriter.notifyMatchFailure(
              op, "require the type of input to have static shapes");
        }
        ArrayRef<int64_t> input_shape = input_ty.getShape();
        int input_rank = input_ty.getRank();
        if (axis < 0) axis += input_rank;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

      mlir::MLIRContext* context = tfr_module_.getContext();
      llvm::SmallVector<mlir::Type, 4> input_tys, output_tys;
      mlir::Builder builder(context);
      for (auto ty : input_dtys) {
        mlir::Type elt_ty;
        TF_RETURN_IF_ERROR(ConvertDataType(ty, builder, &elt_ty));
        mlir::TensorType mlir_ty = mlir::UnrankedTensorType::get(elt_ty);
        input_tys.push_back(mlir_ty);
      }
      for (auto ty : output_dtys) {
        mlir::Type elt_ty;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        // i.e., num_input/input_last_dim = num_result/k
        auto input_ty = mlir::dyn_cast_or_null<ShapedType>(value.getType());
        auto result_ty = mlir::dyn_cast<ShapedType>(slice_op.getType());
        if (!input_ty || !result_ty) return std::nullopt;
        if (!input_ty.hasStaticShape() || !result_ty.hasStaticShape())
          return std::nullopt;
        if (!input_ty.getRank() || !result_ty.getRank()) return std::nullopt;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      const RankedTensorType input_ty =
          input.getType().dyn_cast_or_null<RankedTensorType>();
      const RankedTensorType filter_ty =
          filter.getType().dyn_cast_or_null<RankedTensorType>();
      // If indeed both input type & filter type are ranked type and have ranks.
      // We will need to check their ranks are valid.
      if ((input_ty && input_ty.hasRank() && input_ty.getRank() != 4) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Sets.java

        private final ImmutableMap<E, Integer> inputSet;
        private final int mask;
    
        SubSet(ImmutableMap<E, Integer> inputSet, int mask) {
          this.inputSet = inputSet;
          this.mask = mask;
        }
    
        @Override
        public Iterator<E> iterator() {
          return new UnmodifiableIterator<E>() {
            final ImmutableList<E> elements = inputSet.keySet().asList();
            int remainingSetBits = mask;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/tf_to_corert_pipeline.mlir

    tensor<*x!tf_type.resource>, %arg4: tensor<*x!tf_type.resource>) -> (tensor<?x?xf32>, tensor<*xf32>, tensor<?x16384xf32>, tensor<16x112x112x?xf32>, tensor<16x224x224x3xf32>, tensor<*xf32>) attributes {tf.entry_function = {control_outputs = "", inputs = "inputs_0,conv1_conv2d_readvariableop_resource,conv1_biasadd_readvariableop_resource,fc1000_matmul_readvariableop_resource,fc1000_biasadd_readvariableop_resource", outputs = "identity_RetVal,fc1000_matmul_readvariableop_RetVal,flatten_reshape_RetVal,relu_...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
Back to top