- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for getAxis (0.28 sec)
-
tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc
// Figure out output shapes. SmallVector<int64_t, 4> concat_out_shape; SmallVector<int64_t, 4> pack_out_shape; const int64_t rank = input_type.getRank(); int64_t pack_axis = pack_op.getAxis(); size_t count = pack_inputs.size(); if (pack_axis < 0) { pack_axis += rank; } // Concat out shape. for (int i = 0; i < rank; ++i) { int64_t dim_size = input_type.getDimSize(i);
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/quantization/ir/ConvertSimQuant.cc
for (auto m : fqOp.getMax()) max.push_back(cast<FloatAttr>(m).getValueAsDouble()); return fakeQuantAttrsToType(fqOp.getLoc(), fqOp.getNumBits(), fqOp.getAxis(), min, max, fqOp.getNarrowRange(), expressedType, fqOp.getIsSigned()); } }; void ConvertSimulatedQuantPass::runOnOperation() { bool hadFailure = false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 6K 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/tensorflow/ir/tf_ops_a_m.cc
nullptr> static LogicalResult Verify(OpT op) { if (!IsOfRankOrUnranked(op.getAxis(), 0)) return op.emitOpError("requires scalar axis operand"); DenseIntElementsAttr axis_attr; if (matchPattern(op.getAxis(), m_Constant(&axis_attr))) { auto input_ty = mlir::dyn_cast<RankedTensorType>(op.getX().getType()); if (input_ty) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
loc, DenseElementsAttr::get(tensorflow::GetTypeFromTFTensorShape( {}, rewriter.getIntegerType(64)), op.getAxis())); int64_t axis = op.getAxis(); Type prev_input_ty, inferred_ty; SmallVector<Value, 4> expanded_inputs; expanded_inputs.reserve(op.getN()); for (Value input : op.getValues()) {
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/ir/tfl_ops.cc
int32_t axis_value = op.getAxis(); if (axis_value < 0) axis_value += input_type.getRank() + 1; if (axis_value < 0 || axis_value >= input_type.getRank() + 1) return op.emitOpError() << "op attribute 'axis' should be in range [-rank - 1, rank + 1), " << "got rank = " << input_type.getRank() << ", and axis = " << op.getAxis(); }
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/ir/tf_ops_n_z.cc
// OneHotOp //===----------------------------------------------------------------------===// LogicalResult OneHotOp::verify() { OneHotOp op = *this; int64_t axis = op.getAxis(); auto indices_ty = op.getIndices().getType().dyn_cast<RankedTensorType>(); if (indices_ty && !(axis == -1 || (axis >= 0 && axis <= indices_ty.getShape().size()))) { return op.emitOpError()
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/tf2xla/transforms/legalize_tf.cc
if (!shift_ty || shift_ty.getRank() != 0) { return rewriter.notifyMatchFailure( op, "require the type of shift to be 0D tensor"); } APInt val; if (!matchPattern(op.getAxis(), m_ConstantInt(&val))) { return rewriter.notifyMatchFailure(op, "require axis to be constant"); } int axis = val.getSExtValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)