- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for operand_shape (4.2 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
// Calculates the flattened shapes for dynamic shaped operands in // mhlo.dot_general: // 1. flattened_out_dim = UnsortedSegmentProdOp(operand_shape, out_axes) // 2. flattened_contracting_dim = UnsortedSegmentProdOp(operand_shape, // contracting_axes) // 3. batch_dimensions = Gather(operand_shape, batch_axes) // 4. flattened_shape = Concat(batch_dimensions, flattened_out_dim, // flattened_contracting_dim)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc
// Construct full start_indices with given start_indices and // start_index_map. const ArrayRef<int64_t> operand_shape = mlir::cast<ShapedType>(operand.getType()).getShape(); const int64_t operand_rank = operand_shape.size(); // Fills zeros if start_index is not given in start_indices. Value empty_start_indices = builder.create<TF::FillOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
// Shape after dilation. SmallVector<int64_t> dilated_shape(rank); ArrayRef<int64_t> operand_shape = operand_type.getShape(); for (int i = 0; i < rank; ++i) { dilated_shape[i] = operand_shape[i] + interior_padding_i64[i] * (operand_shape[i] - 1); } TensorType output_type = op.getResult().getType().cast<TensorType>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
// Calculates the flattened shapes for dynamic shaped operands in // mhlo.dot_general: // 1. flattened_out_dim = UnsortedSegmentProdOp(operand_shape, out_axes) // 2. flattened_contracting_dim = UnsortedSegmentProdOp(operand_shape, // contracting_axes) // 3. batch_dimensions = Gather(operand_shape, batch_axes) // 4. flattened_shape = Concat(batch_dimensions, flattened_out_dim, // flattened_contracting_dim)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
XlaSelectAndScatterOp op) { DCOMMENT_OP(op, "Inferring shape for XlaSelectAndScatterOp"); auto operand_shape = mlir::cast<ShapedType>(op.getOperand().getType()); auto source_shape = mlir::cast<ShapedType>(op.getSource().getType()); DenseElementsAttr window_dimensions, window_strides, padding; if (operand_shape.hasRank() && source_shape.hasRank() && matchPattern(op.getWindowDimensions(), m_Constant(&window_dimensions)) &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
if (shaped_type.hasStaticShape()) { has_static_operand_shape = true; operand_shape = shaped_type.getShape(); } } SmallVector<int64_t, 4> broadcastedShape; if (has_static_cond_shape && has_static_operand_shape && !OpTrait::util::getBroadcastedShape(cond_shape, operand_shape, broadcastedShape)) {
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/tensorflow/transforms/fold_broadcast.cc
std::array<llvm::ArrayRef<int64_t>, 2> operand_shapes; operand_shapes[i] = broadcast_arg_type.getShape(); operand_shapes[1 - i] = argument_type.getShape(); // Check that the input of the broadcast and the other operand is broadcast // compatible. llvm::SmallVector<int64_t, 4> broadcasted_shape; if (!get_broadcasted_shape(operand_shapes[0], operand_shapes[1], broadcasted_shape))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
TensorType bn_train_input_type_tensor = mlir::cast<TensorType>(bn_train_input.getType()); if (op.getIsTraining()) { // Training case. auto operand_shape = bn_train_input_type_tensor.getShape(); // The mean and variance are each 1 dimensional arrays the size of the // feature dimension, with the same element type as the operand (x).
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)