- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for slicemap (0.19 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc
dimension_numbers.collapsed_slice_dims().end()); // Slice operand by constructed start_indices and slice_sizes. auto slice_op = builder.create<TF::SliceOp>( loc, GetSliceOpOutputType(output.getType(), collapsed_dims), operand, /*start_indices=*/scattered_start_indices, /*slice_sizes=*/ builder.create<TF::CastOp>( loc,
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/experimental/tac/transforms/device_transform_patterns.cc
auto slice_size_const = rewriter->create<TFL::ConstOp>(split_op->getLoc(), slice_size_attr); auto slice_op = rewriter->create<TFL::SliceOp>( split_op->getLoc(), current_output_type, input, slice_begin_const, slice_size_const); // Rewire output. slice_outputs.push_back(slice_op.getResult()); } return slice_outputs; } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 25.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
slice_op.getLimitIndices()); auto strides = rewriter.create<TF::ConstOp>(slice_op.getLoc(), slice_op.getStrides()); rewriter.replaceOpWithNewOp<TF::StridedSliceOp>( slice_op, slice_op.getType(), slice_op.getOperand(), begin, end, strides); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
// a more comprehensive set. (SliceLen (SliceMake _ (Const64 <t> [c]) _)) => (Const64 <t> [c]) (SliceCap (SliceMake _ _ (Const64 <t> [c]))) => (Const64 <t> [c]) (SliceLen (SliceMake _ (Const32 <t> [c]) _)) => (Const32 <t> [c]) (SliceCap (SliceMake _ _ (Const32 <t> [c]))) => (Const32 <t> [c]) (SlicePtr (SliceMake (SlicePtr x) _ _)) => (SlicePtr x) (SliceLen (SliceMake _ (SliceLen x) _)) => (SliceLen x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
auto slice_op = llvm::dyn_cast_or_null<TFL::SliceOp>(value.getUses().begin().getUser()); // We only match for the case where value is used by SliceOp. if (!slice_op) return std::nullopt; DenseElementsAttr begin; DenseElementsAttr size; if (!matchPattern(slice_op->getOperand(1), m_Constant(&begin)) || !matchPattern(slice_op->getOperand(2), m_Constant(&size)))
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
GetReshapeOpForConv2DFilter(last_reshape_shape, transpose_op, &builder); // create slice op. auto slice_op = GetSliceOpForConv2DBackPropFilter(old_filter_shape, final_reshape_op, &builder); // Update backprop's user with the slice op. backprop.replaceAllUsesWith(slice_op.getResult()); } // Checks if the input producer op is supported in this transform. Right now, we
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
// All masks are `0` except `shrink_axis_mask` which is equal to `1` (slicing // scalar value from input vector). if (slice_op.getBeginMask() != 0 || slice_op.getEllipsisMask() != 0 || slice_op.getEndMask() != 0 || slice_op.getNewAxisMask() != 0 || slice_op.getShrinkAxisMask() != 1) return {}; // Returns a value if the `value` is defined by a ConstOp with a single
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
slice_size[0] = 1; auto size_const = GetR1Const(slice_size, builder, loc); auto slice_type = tensorflow::GetTypeFromTFTensorShape( slice_size, buffer_type.getElementType()); auto slice = builder.create<TF::SliceOp>( loc, ArrayRef<Type>{slice_type}, ArrayRef<Value>{buffer, GetIndicesForElement(index, buffer, builder, loc), size_const}); if (keep_slice_shape) return slice;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc
mlir::stablehlo::ReshapeOp, mlir::stablehlo::SelectOp, mlir::stablehlo::SliceOp, mlir::stablehlo::TransposeOp>(op)) { scale_spec->has_same_scale_requirement = true; } if (llvm::isa<mlir::stablehlo::DynamicSliceOp, mlir::stablehlo::GatherOp, mlir::stablehlo::PadOp, mlir::stablehlo::SliceOp>(op)) { scale_spec->has_same_operand_and_result_type_requirement = true; } return scale_spec;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
vector_one); auto slice_op = CreateSliceOpForTensorList(loc, /*input_list=*/input, /*start_index=*/scalar_zero, /*size=*/size, /*item_rank=*/partial_position_shape, /*result_type=*/result_type, rewriter); rewriter->create<func::ReturnOp>(loc, ArrayRef<Value>({slice_op})); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0)