- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CreateConstOpWithSingleValue (0.62 sec)
-
tensorflow/compiler/mlir/lite/utils/constant_utils.h
#include "mlir/IR/PatternMatch.h" // from @llvm-project #include "tsl/platform/statusor.h" namespace mlir { namespace TFL { // Returns a Constant op with a single value. absl::StatusOr<arith::ConstantOp> CreateConstOpWithSingleValue( PatternRewriter* rewriter, Location loc, ShapedType shaped_type, int value); // Returns a Constant op with a splat vector value. absl::StatusOr<arith::ConstantOp> CreateConstOpWithVectorValue(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 06:24:28 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/constant_utils.cc
return rewriter->create<arith::ConstantOp>(loc, dense_type, cast<TypedAttr>(*attr)); } absl::StatusOr<arith::ConstantOp> CreateConstOpWithSingleValue( PatternRewriter* rewriter, Location loc, ShapedType shaped_type, int value) { ShapedType scalar_type = RankedTensorType::get({}, shaped_type.getElementType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.5K bytes - Viewed (0)