- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 453 for int64Opt (0.25 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/dynamic_shape_utils.h
#include "mlir/IR/BuiltinTypes.h" // from @llvm-project namespace tensorflow { llvm::SmallVector<int64_t> ConvertTFShapeToMlir(llvm::ArrayRef<int64_t> shapes); llvm::SmallVector<int64_t> ConvertMlirShapeToTF(llvm::ArrayRef<int64_t> shape); static constexpr int64_t kTFDynamicSize = -1; mlir::RankedTensorType GetTypeFromTFTensorShape(llvm::ArrayRef<int64_t> shape, mlir::Type elementType,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 18 11:40:17 UTC 2022 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto can_convert_to_bilinear = [](bool align_corners, int64_t dilation, int64_t padding, int64_t stride, int64_t input_spatial, int64_t output_spatial) { int64_t input_spatial_size = align_corners ? input_spatial - 1 : input_spatial; int64_t output_spatial_size =
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/tensorflow/transforms/shape_inference.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
int64_t input_rank = input_ty.getRank(); ArrayRef<int64_t> input_shape = input_ty.getShape(); SmallVector<int64_t, 4> normalized_sizes; for (int64_t i = 0; i < input_rank; ++i) { int64_t input_size = input_shape[i]; int64_t start_index = constant_start_indices.getValues<IntegerAttr>()[i].getInt(); int64_t slice_size = slice_sizes.getValues<IntegerAttr>()[i].getInt();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (1) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.cc
std::vector<int64_t> shape; shape.push_back(static_cast<int64_t>(op->window_strides.size())); attributes.emplace_back(builder.getNamedAttr( "window_strides", BuildVhloTensorV1Attr(shape, op->window_strides, builder))); } else { std::vector<int64_t> data(op->input_spatial_dimensions.size(), 1); std::vector<int64_t> shape;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 38K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size.cc
// element is arbitrarily considered to be 4 bytes. constexpr int64_t kAssumedNumBytesPerElem = 4; int64_t GetSizeOfIntOrFloatConst(TF::ConstOp const_op) { const Type dtype = const_op.getDtype(); const ElementsAttr const_value = const_op.getValue(); const auto bytes_per_elem = static_cast<int64_t>(dtype.getIntOrFloatBitWidth() / CHAR_BIT); return bytes_per_elem * const_value.getNumElements();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 14 04:37:13 UTC 2022 - 2.7K bytes - Viewed (0) -
tensorflow/c/tf_tensor.cc
int TensorInterface::NumDims() const { return tensor_.dims(); } int64_t TensorInterface::Dim(int dim_index) const { return static_cast<int64_t>(tensor_.dim_size(dim_index)); } int64_t TensorInterface::NumElements() const { return static_cast<int64_t>(tensor_.NumElements()); } size_t TensorInterface::ByteSize() const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h
// with `size` number of values. bool IsIotaAttr(ArrayRef<int64_t> arr, int64_t size); // Returns a DenseIntElementsAttr for a permutation and the shape after // applying the permutation to a given shape through a transpose. PermutationAndShape GetPermutationAndTransposedShape( llvm::ArrayRef<int64_t> permutation_array, ShapedType input_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/lite/stablehlo/transforms/optimize.cc
// Extract B, Y1, C from %lhs. ArrayRef<int64_t> shape_lhs = reshape_before.getOperand().getType().getShape(); ArrayRef<int64_t> shape_b = shape_lhs.take_front(batch_dims_count); ArrayRef<int64_t> shape_c = shape_lhs.take_back(contracting_dims_count); ArrayRef<int64_t> shape_y1 = shape_lhs.drop_front(shape_b.size()).drop_back(shape_c.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 26.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.h" namespace mlir { class MLIRContext; namespace TF { SmallVector<int64_t, 4> ReversePermutation(ArrayRef<int64_t> permutation); SmallVector<int64_t, 4> GetDataFormatPermutation(StringRef from, StringRef to); // Shuffle elements in the `attr` according to the permutation. Optional
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 5.3K bytes - Viewed (0)