- Sort Score
- Result 10 results
- Languages All
Results 11 - 12 of 12 for getSExtValue (0.11 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
auto shape_const_op = llvm::dyn_cast<TF::ConstOp>(shape_op); if (!shape_const_op) return failure(); for (const auto& v : shape_const_op.getValue().getValues<APInt>()) { int64_t dim_size = v.getSExtValue(); if (dim_size == tensorflow::kTFDynamicSize) return failure(); shape->push_back(dim_size); } return success(); } // Checks the result Variant type to infer the element shape if fully defined.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
auto shape_value_array = shape_value_attr.getValues<llvm::APInt>(); for (int32_t idx = 0; idx < shape_value_array.size(); ++idx) { auto size = shape_value_array[idx].getSExtValue(); new_shape_array_i32.push_back( ShapedType::isDynamic(size) ? -1 : static_cast<int32_t>(size)); } return rewriter.create<arith::ConstantOp>( loc, DenseIntElementsAttr::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0)