Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetShape (0.21 sec)

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

        SmallVector<int64_t, 4> split_updates_shape;
        split_updates_shape.append(updates_type.getShape().begin(),
                                   updates_type.getShape().end());
        split_updates_shape.front() = 1;
        SmallVector<Type, 4> split_updates_type;
        split_updates_type.resize(
            updates_type.getShape().front(),
            tensorflow::GetTypeFromTFTensorShape(split_updates_shape,
    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/tensorflow/transforms/shape_inference.cc

        if (rhs_shape_type.hasRank()) {
          shape.append(rhs_shape_type.getShape().begin(),
                       rhs_shape_type.getShape().end());
          refined_shape = true;
        }
      } else if (rhs_shape_type.hasRank()) {
        for (auto shape_elts : llvm::enumerate(
                 llvm::zip(lhs_shape_type.getShape(), rhs_shape_type.getShape()))) {
          if (ShapedType::isDynamic(std::get<0>(shape_elts.value())) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

      Type dtype = getElementTypeOrSelf(type);
      if (RankedTensorType ty = type.dyn_cast<RankedTensorType>()) {
        llvm::SmallVector<int64_t, 4> shape = {dim};
        shape.append(ty.getShape().begin(), ty.getShape().end());
        return tensorflow::GetTypeFromTFTensorShape(shape, dtype);
      }
      return type;
    }
    
    Type GetTensorTypeForTensorList(Type element_type, TF::VariantType handle_dtype,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

        zero = builder.getFloatAttr(elem_type, 0);
      } else {
        return false;
      }
      if (auto ranked_type = dyn_cast<RankedTensorType>(type)) {
        llvm::ArrayRef<int64_t> type_shape = ranked_type.getShape();
        for (int64_t i : type_shape) {
          if (i < 0) return false;
        }
        shape = builder.getI64TensorAttr(type_shape);
      } else {
        return false;
      }
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

          ".getShape()[" # dim # " ] == " # size>]>;
    
    // Returns true if the n-th operand is ranked and has a dimension length <=
    // size at the rank dim.
    class TFL_OperandDimIsAtMost<int n, int dim, int size> : And<[
      TFL_OperandIsRankedAndHasDimPred<n, dim>,
      CPred<"$_op.getOperand(" # n # ").getType().cast<ShapedType>()"
          ".getShape()[" # dim # " ] <= " # size>]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        llvm::ArrayRef<int64_t> shape_ref =
            mlir::cast<TensorType>(tensor_attr.getType()).getShape();
        if (mlir::failed(check_shape(shape_ref))) return std::nullopt;
    
        shape = std::vector<int32_t>(shape_ref.begin(), shape_ref.end());
      } else if (type.hasRank()) {
        llvm::ArrayRef<int64_t> shape_ref = type.getShape();
        if (mlir::failed(check_shape(shape_ref))) return std::nullopt;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top