- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 68 for DenseIntElementsAttr (0.26 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/utils.cc
} DenseIntElementsAttr GetI64ElementsAttr(ArrayAttr attr) { RankedTensorType ty = RankedTensorType::get(static_cast<int64_t>(attr.size()), IntegerType::get(attr.getContext(), 64)); return DenseIntElementsAttr::get(ty, attr.getValue()); } DenseIntElementsAttr GetI64ElementsAttr(ArrayRef<int64_t> values,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 1.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h
// Get a DenseIntElementsAttr of type I64 and convert it to an I32 attribute. DenseIntElementsAttr DenseI64AttrToI32Attr( const DenseIntElementsAttr& dense_attr, PatternRewriter& builder); // Returns a NHWC shaped type from an NCHW shaped type op. // For example- Given a Composite op that wraps a core.aten.avg_pool2d, this // returns the return type of the tfl.average_pool_2d emitted. Note that the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 18:33:05 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.cc
#include "mlir/IR/Value.h" // from @llvm-project #include "mlir/Support/LLVM.h" // from @llvm-project namespace mlir { namespace odml { DenseIntElementsAttr DenseI64AttrToI32Attr( const DenseIntElementsAttr& dense_attr, PatternRewriter& builder) { std::vector<int32_t> ret(dense_attr.getNumElements()); auto range = dense_attr.getValues<int64_t>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 18:33:05 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc
transposed_shape[i] = input_type.getDimSize(permutation_array[i]); } 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}; }
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/lite/stablehlo/transforms/hlo_matchers.cc
class StridedArrayView; // Class requires specialization. // Wraps a DenseIntElementsAttr that holds backing data for a tensor so that // int64_t values in a 1-d slice of the tensor can be accessed as if part of an // ArrayView. template <> class StridedArrayView<DenseIntElementsAttr> : StridedArrayViewBase { public: StridedArrayView(const DenseIntElementsAttr& data, ArrayRef<int64_t> shape,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.td
// Receives a composite DictionaryAttr and returns the value of the Attribute // with the key `attr_name` as a DenseIntElementsAttr. class GetAsVectorAttr<string attr_name>: GetCompositeAttributeAs<attr_name, "DenseIntElementsAttr">; class IsBoolAttrEqual<string true_or_false> : Constraint<CPred< "$0.getValue() == "#true_or_false#"">>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 19:05:30 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc
DenseIntElementsAttr& replica_groups, Operation* op) { DenseIntElementsAttr group_assignment; if (!matchPattern(group_assignment_value, m_Constant(&group_assignment))) { return op->emitOpError() << "expects constant group_assignment"; } replica_groups = mlir::cast<DenseIntElementsAttr>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h
llvm::ArrayRef<int64_t> permutation_array); // Returns the DenseIntElementsAttr for an inverse permutation given a // permutation_array. DenseIntElementsAttr GetInversePermutation( llvm::ArrayRef<int64_t> permutation_array, ConversionPatternRewriter& rewriter); // Returns a DenseIntElementsAttr for an inverse permutation and the shape after
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/transforms/utils.h
ConstantOp GetScalarNegZeroOfType(Type ty, Location loc, OpBuilder* builder); // Converts an ArrayAttr to a 1D 64-bit dense elements attribute. DenseIntElementsAttr GetI64ElementsAttr(ArrayAttr attr); DenseIntElementsAttr GetI64ElementsAttr(llvm::ArrayRef<int64_t> values, Builder* builder); } // namespace mhlo } // namespace mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc
namespace tensorflow { namespace tf2xla { namespace internal { namespace { using llvm::dyn_cast; using mlir::Attribute; using mlir::Block; using mlir::BlockArgument; 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;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 13 18:52:07 UTC 2024 - 13.9K bytes - Viewed (0)