- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for getI64Type (0.16 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc
auto transposed_type = RankedTensorType::get(transposed_shape, input_type.getElementType()); DenseIntElementsAttr permutation = DenseIntElementsAttr::get( RankedTensorType::get(permutation_array.size(), rewriter.getI64Type()), permutation_array); return {permutation, transposed_type}; } Value BuildIntConstOp(ImplicitLocOpBuilder& builder, ConversionPatternRewriter& rewriter, int64_t const_value,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc
Create1DConstValue<int64_t>(builder, loc, indices), Create1DConstValue<int64_t>(builder, loc, {index_map_size, 1})), /*value=*/ builder.create<TF::CastOp>( loc, RankedTensorType::get( mlir::cast<ShapedType>(start_indices.getType()).getShape(), builder.getI64Type()), start_indices));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc
alg = tensorflow::ConcreteRngAlgorithm::RNG_ALG_PHILOX; } else { return rewriter.notifyMatchFailure(op, "unsupported alg"); } Type state_element_type = rewriter.getI64Type(); RankedTensorType op_type = RankedTensorType::get( {tensorflow::RNG_MAX_COUNTER_SIZE + tensorflow::RNG_KEY_SIZE}, state_element_type); if (op_type != rng_op.getType()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
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/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
Value input_batch_dims = builder.create<TF::SliceOp>( loc, RankedTensorType::get({num_input_batch_dim}, builder.getI64Type()), input_shape, zero, num_input_batch_dim_value); Value input_matmul_dims = builder.create<TF::SliceOp>( loc, RankedTensorType::get({num_matmul_dim}, builder.getI64Type()), input_shape, num_input_batch_dim_value, num_matmul_dim_value); Value weight_shape = builder.create<TF::ShapeOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc
#include "tensorflow/lite/kernels/padding.h" namespace mlir::quant { namespace { Value GetDimValue(OpBuilder &builder, Location loc, Value shape_value, int32_t dim) { Type attribute_type = builder.getI64Type(); return builder.create<TF::StridedSliceOp>( loc, RankedTensorType::get( {}, mlir::cast<ShapedType>(shape_value.getType()).getElementType()), /*input=*/shape_value,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc
splat_elements_attr.getSplatValue<Attribute>())); auto broadcast_dims = DenseIntElementsAttr::get( RankedTensorType::get(/*shape=*/{0}, op_builder->getI64Type()), llvm::SmallVector<int64_t>{}); mhlo::BroadcastInDimOp broadcast_in_dim_op = op_builder->create<mhlo::BroadcastInDimOp>( const_op->getLoc(), splat_elements_attr.getType(), scalar,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/unfold_large_splat_constant.cc
const_op->getLoc(), DenseIntElementsAttr::get( tensorflow::GetTypeFromTFTensorShape( {splat_elements_attr.getType().getRank()}, op_builder->getI64Type()), splat_elements_attr.getType().getShape())); mlir::arith::ConstantOp fill_value = op_builder->create<mlir::arith::ConstantOp>( const_op->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc
const SmallVector<int64_t, 4>& output_shape) { auto input_type = RankedTensorType::get(input_shape, builder->getF32Type()); auto indices_type = RankedTensorType::get(input_shape, builder->getI64Type()); auto output_type = RankedTensorType::get(output_shape, builder->getF32Type()); SmallVector<mlir::Type, 2> input_types{input_type, indices_type}; SmallVector<mlir::Type, 1> output_types{output_type};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 29 21:02:21 UTC 2022 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
loc, RankedTensorType::get(lhs_transposed_shape, lhs_type.getElementType()), lhs, DenseIntElementsAttr::get( RankedTensorType::get({lhs_rank}, rewriter.getI64Type()), lhs_permutation)); // Transposes rhs shape to be in the order of {batch_dimensions, contracting // dimensions, out_dimensions}. llvm::SmallVector<int64_t, 4> rhs_permutation = Concat<int64_t>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0)