- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 64 for hasTask (0.2 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.h
// Scalar identity is broadcastable to any operand shape, we only need to // check that operand has the same shape as a result. bool scalar_identity = identity_ty.hasRank() && identity_ty.getRank() == 0; if (scalar_identity) return operand_ty == result_ty; // If identity is not a scalar, we must verify that identity shape is
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc
first_operand_type = mlir::cast<TF::ResourceType>(element_type).getSubtypes().front(); } auto tensor_type = mlir::dyn_cast_or_null<TensorType>(first_operand_type); if (!(tensor_type && tensor_type.hasRank())) { return op->emitError() << "cannot convert op with unranked or non-tensor input type " << tensor_type << "."; } int rank = tensor_type.getRank(); if (rank <= partition_dim) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
if ((input_ty && input_ty.hasRank() && input_ty.getRank() != 4) || (filter_ty && filter_ty.hasRank() && filter_ty.getRank() != 4)) { return emitOptionalError(location, "Invalid ranks"); } // If either input or filter is unranked, we will just return unranked output // shape. if (!input_ty || !filter_ty || !input_ty.hasRank() || !filter_ty.hasRank()) { Type result_type;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
// Matches fail when lhs|rhs|cond is unranked tensor. // TODO(b/176202543): Support unranked tensor. if (!mlir::cast<ShapedType>(lhs.getType()).hasRank() || !mlir::cast<ShapedType>(rhs.getType()).hasRank() || !mlir::cast<ShapedType>(cond.getType()).hasRank()) { return failure(); } // Calculates symbolic broadcast shape that is only used in types.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
// If the updated type doesn't have a rank, then it can't be a more refined // type. if (!updated.hasRank()) return false; // If the original type doesn't have a rank, then refine as the updated type // has a rank. if (!original.hasRank()) return true; // Both types must have the same rank. if (original.getRank() != updated.getRank()) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
"requires compatible element types for all operands and results"); } } return success(); } inline ShapedType MergeType(ShapedType a, ShapedType b) { if (!a.hasRank()) { return b; } if (!b.hasRank()) { return a; } int64_t rank = a.getRank(); SmallVector<int64_t, 4> dims; dims.resize(rank); for (int i = 0, e = rank; i != e; i++) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc
auto operand_type = mlir::dyn_cast_or_null<ShapedType>(operand.getType()); return result_type && operand_type && result_type.hasRank() && operand_type.hasRank() && result_type.getRank() == operand_type.getRank(); }); if (!is_valid_move) return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.td
def ZeroIntAttr : AttrConstraint<CPred<"$_self.cast<::mlir::IntegerAttr>().getInt() == 0">>; // Checks if the value has rank at most 'n'. class HasRankAtLeast<int n> : Constraint< CPred<"$0.getType().cast<ShapedType>().hasRank() && " "$0.getType().cast<ShapedType>().getRank() >= " # n>>; // Checks value is not produced by a TFL_Quant or // from TFL_Quant Op with same quant type. def NotFromQuantOpOrSameQuantType : Constraint<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/saved_model/saved_model.cc
ProcessTensorSpec(mlir::TensorType type) { tensorflow::DataType dtype; TF_RETURN_IF_ERROR( ConvertScalarTypeToDataType(type.getElementType(), &dtype)); if (!type.hasRank()) return std::make_pair(dtype, tensorflow::PartialTensorShape()); auto shape = type.getShape(); llvm::SmallVector<int64_t, 4> dims; dims.assign(shape.begin(), shape.end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
src/compress/flate/deflate.go
// stop things from getting too large. maxFlateBlockTokens = 1 << 14 maxStoreBlockSize = 65535 hashBits = 17 // After 17 performance degrades hashSize = 1 << hashBits hashMask = (1 << hashBits) - 1 maxHashOffset = 1 << 24 skipNever = math.MaxInt32 ) type compressionLevel struct { level, good, lazy, nice, chain, fastSkipHashing int }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:32:40 UTC 2024 - 20.3K bytes - Viewed (0)