- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 201 for constop (0.4 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
} } const DimensionVector& batch_dimensions() const { return batch_dimensions_; } const DimensionVector& contracting_dimensions() const { return contracting_dimensions_; } // Out dimensions are any dimensions that are neither batch nor contracting // dimensions, hence will be propagated to output shape. const DimensionVector& out_dimensions() const { return out_dimensions_; }
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/tensorflow/transforms/optimize.cc
// Returns a TF Constant tensor with the passed in values. TF::ConstOp GetI64ConstantTensor(PatternRewriter &rewriter, ArrayRef<int64_t> values, Location location) { auto cst_attr = rewriter.getI64TensorAttr(values); return rewriter.create<TF::ConstOp>(location, cst_attr.getType(), cst_attr); } // Rewrites broadcast->reshape to a reshape->broadcast that reduces
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/save_variables.cc
auto assigned_value_operand = assign_var_op.getOperand(1); auto const_op = llvm::dyn_cast<mlir::TF::ConstOp>(assigned_value_operand.getDefiningOp()); if (!const_op) { assign_var_op->emitRemark( "Operand idx 1 is not a tf.ConstOp. The initializing tensor is not " "saved to checkpoint."); return ""; } Tensor const_tensor{}; if (const absl::Status status = mlir::tfg::ConvertToTensor(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:36:55 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto conv_result = rewriter.create<mhlo::ConvolutionOp>( conv_op.getLoc(), new_output_type, sliced_input, sliced_kernel, conv_op.getWindowStridesAttr(), conv_op.getPaddingAttr(), conv_op.getLhsDilationAttr(), conv_op.getRhsDilationAttr(), conv_op.getWindowReversalAttr(), conv_op.getDimensionNumbers(), 1, 1, conv_op.getPrecisionConfigAttr()); conv_results.push_back(conv_result);
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/python/mlir_wrapper/ops.cc
.getOperation(); }); // mlir::TF::ConstOp py::class_<mlir::TF::ConstOp>(m, "Tf_ConstOp") .def("create", [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Attribute value) -> mlir::Operation* { return opb.create<mlir::TF::ConstOp>(loc, value).getOperation(); }); // mlir::TF::EqualOp
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 30 02:12:49 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
if (!type) return -1; auto indices_op = indices.getDefiningOp(); if (!indices_op) return -1; auto const_op = llvm::dyn_cast<TF::ConstOp>(indices_op); if (!const_op) return -1; int64_t last_index = -1; int64_t first_index = -1; for (const auto& ind : const_op.getValue().getValues<APInt>()) { if (last_index == -1) { last_index = ind.getSExtValue(); first_index = last_index;
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/tensorflow/passes/remove_var_init_by_const.cc
if (isa<TF::VarHandleOp>(resource_operand.getDefiningOp()) && isa<TF::ConstOp>(assigned_value_operand.getDefiningOp())) { return success(); } else { return failure(); } } void rewrite(TF::AssignVariableOp assign_op, PatternRewriter& rewriter) const override { // `TF::ConstOp` and `TF::VarHandleOp` are not manually erased.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 03 12:04:03 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
TFL::Conv2DOp conv_op, PatternRewriter& rewriter) const { return EnsureBias(conv_op, 2, rewriter); } // ================== slice ============================ // If a slice op has < 4d dimension, will pad it to 4d. LogicalResult PadSlice::matchAndRewrite(TFL::SliceOp slice_op, PatternRewriter& rewriter) const {
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/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
RankedTensorType type = RankedTensorType::get( {}, TF::StringType::get(builder.getContext())); auto const_op = builder.create<TF::ConstOp>( builder.getUnknownLoc(), DenseStringElementsAttr::get(type, {filename})); it = const_ops.insert({asset.getSymName(), const_op}).first; } argument.replaceAllUsesWith(it->second.getOutput());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc
<< " does not have a defining op and cannot be duplicated."; } else { // If the operand's defining is not a ConstOp, recursively traverse // "upwards" to find ConstOps that transitively produces the current // operand and duplicate them. auto op_operands = defining_op->getOpOperands(); absl::c_transform(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 17.5K bytes - Viewed (0)