- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Imcasts (0.16 sec)
-
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
// considered dynamic so use -1 here if k is not a constant value. int const_k = -1; ElementsAttr cst; if (matchPattern(k, m_Constant(&cst))) // These casts should all be valid due to how Tensor constants are stored. // TODO(jpienaar): This should use a helper function. const_k = cst.getValues<IntegerAttr>()[0].getValue().getSExtValue();
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/transforms/shape_inference.cc
// tf.Cast is only inferred if it has at least one user in the TF dialect or // feeding into the function return. This is necessary to avoid inserting // casts which cannot be refined. if (isa<CastOp>(op)) return InferShapeForCast(op); // Handle IfOp here by inferring the shape from the else/then function
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
bias_value_type, APInt(/*numBits=*/32, /*value=*/0, /*isSigned=*/true)); return rewriter.create<TFL::QConstOp>( loc, /*output=*/TypeAttr::get(bias_type), /*value=*/bias_value); } // Casts the given op shapes from i64 to i32 to fit TFLite spec requirement. arith::ConstantOp CreateI32ShapeConstantOp(const TensorType op_type, const Location loc,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
auto yield = cast<YieldOp>(region.front().getTerminator()); auto updated_results = llvm::to_vector<4>(yield.getOperands()); // If the yield types do not match the IfRegion result types, add appropriate // casts. rewriter.setInsertionPoint(yield); for (auto it : llvm::zip(op.getResultTypes(), updated_results)) { auto& updated_result = std::get<1>(it); Type result_type = std::get<0>(it);
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/ir/tf_ops_n_z.cc
//===----------------------------------------------------------------------===// // WhileRegionOp canonicalization //===----------------------------------------------------------------------===// namespace { // Make casts before a `WhileRegion` be explicit. After this rewrite a // `WhileRegion` operand will have the same type as its corresponding iteration // variable. An operand and its iteration variables with the same type enables
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/lite/ir/tfl_ops.td
// LINT.IfChange def TFL_CastOp : TFL_Op<"cast", [ Pure, SameOperandsAndResultShape]> { let summary = "Cast operator"; let description = [{ Casts input from input type to output type. }]; let arguments = (ins TFL_TensorOf<[F16, BF16, F32, F64, I1, TFL_I4, I16, UI16, I32, UI32, I64, TFL_Quint8, UI8, I8, Complex<F<32>>]>:$input );
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 186K bytes - Viewed (0) -
maven-core/src/test/resources/apiv4-repo/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar
TypeSafeDiagnosingMa<T> extends BaseMatcher<T> Convenient base class for Matchers that require a non-null value of a specific type and that will report why the received value has been rejected. This implements the null check, checks the type and then casts. To use, implement matchesSafely() . Author: Neil Dunn, Nat Pryce, Steve Freeman Constructor Summary protected TypeSafeDiagnosingMa() The default constructor for simple sub types protected TypeSafeDiagnosingMa(java.lang.Class<?> expectedType) Use this...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Sun Oct 02 08:41:25 UTC 2022 - 236.8K bytes - Viewed (0)