- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for constop (0.2 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto conv_result = rewriter.create<mhlo::ConvolutionOp>( conv_op.getLoc(), new_output_type, sliced_input, sliced_kernel, conv_op.getWindowStridesAttr(), conv_op.getPaddingAttr(), conv_op.getLhsDilationAttr(), conv_op.getRhsDilationAttr(), conv_op.getWindowReversalAttr(), conv_op.getDimensionNumbers(), 1, 1, conv_op.getPrecisionConfigAttr()); conv_results.push_back(conv_result);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize.cc
bool isSupportedAxis(mlir::Value value, int64_t rank) const { auto const_op = dyn_cast_or_null<mlir::arith::ConstantOp>(value.getDefiningOp()); if (!const_op) { return false; } auto axes = dyn_cast<DenseIntElementsAttr>(const_op.getValueAttr()); if (!axes || axes.getNumElements() != 1) { return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
llvm::SmallVectorImpl<ShapedTypeComponents>& inferredReturnShapes) { const int64_t num_spatial_dims = std::is_same<OpT, Conv2DOpAdaptor>() ? 2 : 3; const int64_t num_dims = 2 + num_spatial_dims; const Value input = op.getInput(); const Value filter = op.getFilter(); const TensorType input_ty = mlir::cast<TensorType>(input.getType()); const TensorType filter_ty = mlir::cast<TensorType>(filter.getType());
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/lite/ir/tfl_ops.cc
LogicalResult matchAndRewrite(ConstOp const_op, PatternRewriter& rewriter) const override { if (arith::ConstantOp::isBuildableWith(const_op.getValue(), const_op.getType())) { rewriter.replaceOpWithNewOp<arith::ConstantOp>(const_op, const_op.getValue()); return success();
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
// Returns a value if the `value` is defined by a ConstOp with a single // integer element in it and has an expected rank. auto get_const_int = [](Value value, int expected_rank) -> std::optional<int64_t> { auto const_op = dyn_cast_or_null<ConstOp>(value.getDefiningOp()); if (!const_op) return std::nullopt; auto value_attr = const_op.getValue().dyn_cast<DenseIntElementsAttr>();
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/flatbuffer_export.cc
const std::vector<int32_t>& results); BufferOffset<tflite::Operator> BuildCustomOperator( Operation* inst, mlir::TFL::CustomOp op, const std::vector<int32_t>& operands, const std::vector<int32_t>& results); std::optional<CustomOptionsOffset> CreateFlexOpCustomOptions( const ::tensorflow::NodeDef& node_def, const mlir::Location& loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/generic.rules
(And16 (Const16 [c]) (Const16 [d])) => (Const16 [c&d]) (And32 (Const32 [c]) (Const32 [d])) => (Const32 [c&d]) (And64 (Const64 [c]) (Const64 [d])) => (Const64 [c&d]) (Or8 (Const8 [c]) (Const8 [d])) => (Const8 [c|d]) (Or16 (Const16 [c]) (Const16 [d])) => (Const16 [c|d]) (Or32 (Const32 [c]) (Const32 [d])) => (Const32 [c|d]) (Or64 (Const64 [c]) (Const64 [d])) => (Const64 [c|d])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 22:21:05 UTC 2024 - 135.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
while (!worklist.empty()) { mlir::Operation* const use = worklist.pop_back_val(); // Follow the `CastOp`/`IdentityOp`'s users to handle the `RestoreV2` -> // (optionally `IdentityOp`) -> `CastOp` `AssignVariableOp` case. if (llvm::isa<TF::CastOp, TF::IdentityOp>(use)) { llvm::append_range(worklist, use->getUsers()); continue; }
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
// the size of the bias constant. TFL::QConstOp CreateTflConstOpForDummyBias( const Location loc, const double input_scale, TFL::QConstOp filter_const_op, PatternRewriter& rewriter, const bool is_per_channel, MLIRContext& ctx) { const ArrayRef<int64_t> filter_shape = filter_const_op.getResult().getType().getShape(); Type bias_quantized_type; if (is_per_channel) { const auto filter_quantized_element_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/ARM64.rules
(Rsh8x(32|16|8) x y) && !shiftIsBounded(v) => (SRA (SignExt8to64 x) (CSEL [OpARM64LessThanU] <y.Type> y (Const64 <y.Type> [63]) (CMPconst [64] ((ZeroExt32to64|ZeroExt16to64|ZeroExt8to64) y)))) // constants (Const(64|32|16|8) [val]) => (MOVDconst [int64(val)]) (Const(32|64)F [val]) => (FMOV(S|D)const [float64(val)]) (ConstNil) => (MOVDconst [0])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 15:49:20 UTC 2024 - 113.1K bytes - Viewed (0)