- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for DenseIntElementsAttr (0.21 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/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/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/tensorflow/ir/tf_ops_layout_helper.cc
new_shape[i] = shape[permutation[i]]; return RankedTensorType::get(new_shape, ranked_type.getElementType()); } return type; } bool AreCancellablePermutations(DenseIntElementsAttr perm0, DenseIntElementsAttr perm1) { if (perm0.getNumElements() == 0 || perm1.getNumElements() == 0) return false; if (perm0.getNumElements() != perm1.getNumElements()) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h
// Shuffle ranked tensor dimensions according to the permutation. Type ShuffleRankedTensorType(Type type, ArrayRef<int64_t> permutation); bool AreCancellablePermutations(DenseIntElementsAttr perm0, DenseIntElementsAttr perm1); // Default implementation of `LayoutSensitiveInterface::UpdateDataFormat` for // layout sensitive operations that do not have any additional layout dependent
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 20:53:17 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.h
namespace odml { // Given a Composite op that wraps a core.aten.avg_pool2d, returns the padding // configuration required for the `tfl.pad` if the padding part of the op is // to be done before average pooling. DenseIntElementsAttr GetPadOpAttr(Builder& builder, mhlo::CompositeOp op); // Given a Composite op that wraps a core.aten.avg_pool2d, and assuming that // the padding part is extracted into a tfl.pad op prior to a
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 2.5K bytes - Viewed (0)