- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 172 for Axis (0.05 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
// to expand at the given `axis`. Type InferExpandDimsType(Type ty, int64_t axis, Builder *builder) { auto ranked_ty = mlir::dyn_cast<RankedTensorType>(ty); // Unranked type. if (!ranked_ty) return ty; auto shape = llvm::to_vector<4>(ranked_ty.getShape()); if (axis < 0) axis += ranked_ty.getRank() + 1; shape.insert(shape.begin() + axis, 1);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
auto values = tf_concat_op.getValues(); auto output_type = tf_concat_op.getOutput().getType(); // Extract axis attribute from constant axis tensor ElementsAttr axis; if (!matchPattern(tf_concat_op.getAxis(), m_Constant(&axis))) return failure(); IntegerAttr axis_int = ExtractSingleElementAsInteger(axis); // "axis" operand could be a i64 tensor. Resolve it here. IntegerAttr axis_i32;
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/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc
// $group_assignment CompileTimeConstantOperand<TF::CrossReplicaSumOp, 1>, CompileTimeConstantOperand<TF::CumprodOp, 1>, // $axis CompileTimeConstantOperand<TF::CumsumOp, 1>, // $axis CompileTimeConstantOperand<TF::CumulativeLogsumexpOp, 1>, // $axis // $filter_sizes CompileTimeConstantOperand<TF::DepthwiseConv2dNativeBackpropFilterOp, 1>, // $input_sizes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions_drq.td
[(IsNotInLiftedFunc $res), (IsConstTensor $b)], [], (addBenefit 1)>; def LiftGather : Pat< (TF_GatherV2Op:$res $params, $indices, $axis, $batch_dims), (LiftAsTFPartitionedCall<"composite_gather_fn"> (ArgumentList $params, $indices, $axis), (ResultList $res), (NamedAttributeList (NamedAttr<"batch_dims"> $batch_dims))), [(IsNotInLiftedFunc $res), (IsConstTensor $params)], [], (addBenefit 1)>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/unroll-batch-matmul.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 06 18:42:28 UTC 2023 - 63.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
int64_t depth = depth_attr.getValues<APInt>()[0].getSExtValue(); int64_t axis = op.getAxis(); if (axis == -1) axis = indices_shape.size(); llvm::SmallVector<int64_t, 4> broadcast_dims(indices_shape.size()); std::iota(broadcast_dims.begin(), broadcast_dims.begin() + axis, 0); std::iota(broadcast_dims.begin() + axis, broadcast_dims.end(), axis + 1); llvm::SmallVector<int64_t, 4> output_dims =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td
// Concat op patterns. //===----------------------------------------------------------------------===// def ConvertToConcatV2 : Pat< (TF_ConcatOp:$src $axis, $inputs), (TF_ConcatV2Op:$dest $inputs, $axis), [], [(CopyAttrs $src, $dest)]>; //===----------------------------------------------------------------------===// // Div op patterns.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 06 18:42:28 UTC 2023 - 17K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/tests/duplicate_shape_determining_constants.mlir
%axis = "tf.Const"() {device = "", value = dense<1> : tensor<i32>} : () -> tensor<i32> // tf.ConcatV2 accepts a variadic operand. The last operand should be compile // time constant. %0 = "tf.ConcatV2"(%arg0, %arg0, %arg0, %arg0, %axis) : (tensor<16x1xf32>, tensor<16x1xf32>, tensor<16x1xf32>, tensor<16x1xf32>, tensor<i32>) -> tensor<16x4xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 07:44:46 UTC 2022 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/convert_ref_variables.mlir
// CHECK-SAME: (tensor<i32>, tensor<i32>, tensor<i32>) -> tensor<2xi32> %axis = "tf.Const"() {value = dense<0> : tensor<i32>} : () -> tensor<i32> %0 = "tf.VariableV2"() {container = "", shape = #tf_type.shape<>, shared_name = "x"} : () -> tensor<!tf_type.int32ref> %1 = "tf.ConcatV2"(%0, %0, %axis) : (tensor<!tf_type.int32ref>, tensor<!tf_type.int32ref>, tensor<i32>) -> tensor<2xi32> func.return %1 : tensor<2xi32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 28 12:06:33 UTC 2022 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dilated_conv.h
} // Make sure that the axis in `expand_op` is constant. if (auto const_op = llvm::dyn_cast<TF::ConstOp>(expand_op.getDim().getDefiningOp())) { expand_axis = (*mlir::cast<DenseElementsAttr>(const_op.getValue()) .getValues<APInt>() .begin()) .getSExtValue(); // Canonicalize axis. Some TF python functions, such as
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20K bytes - Viewed (0)