- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 156 for RankedTensorType (0.39 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tf_data_optimization.td
include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td" // TODO(jpienaar): Move this somewhere general. class GetI64ScalarElementsAttr<int value> : NativeCodeCall<"DenseElementsAttr::get<int64_t>(RankedTensorType::get({}, $_builder.getIntegerType(64)), " # value # ")">; def FuseMapAndBatch : Pat< (TF_BatchDatasetV2Op (TF_MapDatasetOp $input_dataset, $other_arguments, $f, $output_types,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
!IsQuantized(tensor)) { TF_ASSIGN_OR_RETURN(elem_type, GetCalibratedQuantizedType(tensor, builder)); } if (tensor.shape.empty() && (is_constant || tensor.has_rank)) { return RankedTensorType::get({}, elem_type); } if (!tensor.shape_signature.empty()) { llvm::SmallVector<int64_t, 4> shape(tensor.shape_signature.begin(), tensor.shape_signature.end());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
return lhs.hasRank() && rhs.hasRank() && lhs.getRank() == rhs.getRank(); } // Creates a compatible RankedTensorType where mismatched dimensions are // replaced with dynamic sizes. RankedTensorType GetCompatibleRankedTensorType(RankedTensorType lhs, RankedTensorType rhs) { assert(lhs.getRank() == rhs.getRank()); llvm::SmallVector<int64_t, 4> dims;
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/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc
}; SmallVector<Type, 4> output_types{ value.getType(), RankedTensorType::get({}, rewriter.getF32Type()), RankedTensorType::get({}, rewriter.getF32Type()), RankedTensorType::get({effective_num_bins}, rewriter.getI64Type()), }; // Insert custom aggregation op between operand and operator.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
#include "tsl/platform/ml_dtypes.h" namespace tensorflow { using llvm::ArrayRef; using llvm::SmallVector; using mlir::Builder; using mlir::DenseStringElementsAttr; using mlir::ElementsAttr; using mlir::RankedTensorType; using mlir::ShapedType; using mlir::Type; using tensorflow::errors::InvalidArgument; static TensorProto ConvertToProto(const Tensor& input_tensor, bool use_tensor_content = true) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/constant_utils.cc
absl::StatusOr<arith::ConstantOp> CreateConstOpWithVectorValue( PatternRewriter* rewriter, Location loc, ShapedType shaped_type, int value) { ShapedType dense_type = RankedTensorType::get(shaped_type.getShape(), shaped_type.getElementType()); auto attr = CreateTypedAttr(dense_type, value); return rewriter->create<arith::ConstantOp>(loc, dense_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h
// of input type and no-op permutation. std::pair<RankedTensorType, DenseIntElementsAttr> GetReformatTypeAndPermutation( int batch_dim, int feature_dim, int spatial_dim_start, int default_batch_dim, int default_feature_dim, int default_spatial_dim_start, int num_spatial_dims, RankedTensorType type, ConversionPatternRewriter& rewriter);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 11:35:25 UTC 2023 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
using mlir::DenseIntElementsAttr; using mlir::failure; using mlir::Location; using mlir::LogicalResult; using mlir::OpBuilder; using mlir::Operation; using mlir::OperationPass; using mlir::OpOperand; using mlir::RankedTensorType; using mlir::StringAttr; using mlir::success; using mlir::Type; using mlir::Value; using mlir::ValueRange; using mlir::WalkResult; using mlir::func::FuncOp; using mlir::TF::ConstOp;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
auto global_tensor = LookupBoundInputOfType<GlobalTensorOp>( func, arg_number, symbol_table); if (!global_tensor) continue; auto arg_type = mlir::cast<RankedTensorType>(arg.getType()); assert(arg_type.getRank() == 0); llvm::ArrayRef<TensorType> underlying_type = mlir::cast<TF::ResourceType>(arg_type.getElementType()).getSubtypes();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc
for (auto input : to_graph.getOperands()) { Operation* input_op = input.getDefiningOp(); if (input_op && input_op == from_graph.getOperation()) { auto input_type = mlir::dyn_cast_or_null<RankedTensorType>(input.getType()); if (input_type == nullptr || !input_type.hasStaticShape()) continue; // Quantized type does not support getSizeInBits. if (IsQUI8Type(input_type) || IsQI8Type(input_type)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0)