- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for constant_ops (0.16 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc
auto new_shape_const_attr = DenseElementsAttr::get(shape_spec_type, new_shape.getShape()); rewriter.setInsertionPointAfter(weight_op); auto new_shape_const = rewriter.create<arith::ConstantOp>( weight_op->getLoc(), shape_spec_type, new_shape_const_attr); auto reshape_op = rewriter.create<TF::ReshapeOp>( weight_op->getLoc(), new_shape, weight_op->getResult(0), new_shape_const);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
scales, zero_points, quant_dim, qtype.getStorageTypeMin(), qtype.getStorageTypeMax()); } } // namespace bool IsOpQuantizable(Operation* op) { if (isa<func::ConstantOp, arith::ConstantOp, quantfork::StatisticsOp>(op)) { // Constant ops do not have QuantizableResult attribute but they can deal // with quantized tensors. return true; } else if (op->hasTrait<OpTrait::IsTerminator>() ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
} auto dense_attr_or = GetDenseAttrFromTensorProtoAttr( tensor_proto_attr.getValue(), new_operand_type); if (failed(dense_attr_or)) return failure(); return Value(rewriter.create<mhlo::ConstantOp>(op->getLoc(), new_operand_type, *dense_attr_or)); } xla::ConvolutionDimensionNumbers ConvertConvolutionDimensionNumbers(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc
// Use mhlo.Constant when it is consumed by the lowering passes since they // can't lower tf.Const. Value cst; if (use_mhlo_const) { cst = builder.create<mhlo::ConstantOp>(func_op->getLoc(), attrs); } else { cst = builder.create<TF::ConstOp>(func_op->getLoc(), attrs); } func_op.getArgument(i).replaceAllUsesWith(cst); } return module_op; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 01:03:21 UTC 2024 - 35.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
DenseFPElementsAttr attr; if (!matchPattern(q.getOperand(), m_Constant(&attr))) { continue; } auto cst = rewriter.create<arith::ConstantOp>( quantized_op->getLoc(), attr); quantizing_op->setOperand(i, cst.getResult()); } } for (int i = 0, e = quantized_op->getNumResults(); i < e; ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0)