- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 66 for deim (0.17 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc
bool ceil_mode; // Rounding strategy (ceil or floor). }; // Rounds the dimension based on the ceil mode. int RoundDim(float dim, bool ceil_mode) { if (ceil_mode) { return std::ceil(dim); } return std::floor(dim); } // For H or W, calculate the output dimension for average pool. int CalculateSpatialOutDim(int in, int k, int p, int s, bool ceil_mode) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc
TF_ASSERT_OK(output_proto.status()); EXPECT_EQ(output_proto->dtype(), DT_FLOAT); EXPECT_EQ(output_proto->shape().dim_size(), 3); EXPECT_EQ(output_proto->shape().dim().at(0).size(), 1); EXPECT_EQ(output_proto->shape().dim().at(1).size(), 2); EXPECT_EQ(output_proto->shape().dim().at(2).size(), 3); } TEST(ConvertTypeToTensorSpecProtoTest, ScalarTensorType) { mlir::MLIRContext context; mlir::Builder b(&context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc
bool HasStaticShapeAtDims(Value value, const ArrayRef<int> dims) { auto shaped_type = mlir::dyn_cast<ShapedType>(value.getType()); if (!shaped_type || !shaped_type.hasRank()) return false; for (auto dim : dims) { if (shaped_type.isDynamicDim(dim)) return false; } return true; } Type CloneTypeWithNewElementType(Type old_type, Type element_type) { if (!mlir::isa<ShapedType>(old_type)) return {};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
<< output_rank << ", got " << operand_rank; for (int64_t dim = 0; dim < output_rank; ++dim) { const int64_t operand_dim_size = operand_type.getDimSize(dim); const int64_t result_dim_size = result_dim_sizes[dim]; if (dim == axis) { if (ShapedType::isDynamic(operand_dim_size) || ShapedType::isDynamic(result_dim_size)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
for (const std::optional<llvm::ArrayRef<int64_t>>& shape : shapes) { TensorShapeProto& tshape = *shape_list.add_shape(); if (shape.has_value()) { for (int64_t dim : *shape) { tshape.add_dim()->set_size(mlir::ShapedType::isDynamic(dim) ? -1 : dim); } } else { tshape.set_unknown_rank(true); } } // If shape is already set, override it. This can happen if we import
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/validators.cc
} bool IsDimensionsDegenerateExceptLastOne(ArrayRef<int64_t> elements_shape) { if (elements_shape.empty()) return true; for (auto dim : elements_shape.drop_back(1)) { if (dim != 1) return false; } return true; } bool IsDimensionsDegenerateExceptLastOne(TypedAttr val) { if (auto ranked_type = mlir::dyn_cast<RankedTensorType>(val.getType())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.2K bytes - Viewed (0) -
src/bytes/buffer_test.go
if v != byte(l+i) { t.Fatalf("in %d,%d: Next(%d)[%d] = %d, want %d", i, j, k, l, v, l+i) } } } } } } var readBytesTests = []struct { buffer string delim byte expected []string err error }{ {"", 0, []string{""}, io.EOF}, {"a\x00", 0, []string{"a\x00"}, nil}, {"abbbaaaba", 'b', []string{"ab", "b", "b", "aaab"}, nil},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:31:36 UTC 2024 - 18.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
for (int i = 0; i < input_type.getRank(); ++i) { int64_t dim = input_type.getDimSize(i); if (i == axis) { if (dim % splits != 0) { return failure(); } size_of_splits = dim / splits; output_shape.push_back(size_of_splits); } else { output_shape.push_back(dim); } } SmallVector<mlir::Type, 4> output_types;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir
%0 = "tf.Squeeze"(%arg0) {T = f32, _output_shapes = ["tfshape$dim { size: 4 } dim { size: 64 } dim { size: 64 }"], device = "", squeeze_dims = []} : (tensor<4x64x64x1xf32>) -> tensor<4x64x64xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 29 07:26:59 UTC 2024 - 59.8K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8.go
// to allow a much smaller serialized state (just the seed plus offset). // This gives a delayed benefit for the forward secrecy // (you can reconstruct the recent past given a memory dump), // which we deem acceptable in exchange for the reduced size. s.seed[0] = s.buf[len(s.buf)-reseed+0] s.seed[1] = s.buf[len(s.buf)-reseed+1] s.seed[2] = s.buf[len(s.buf)-reseed+2] s.seed[3] = s.buf[len(s.buf)-reseed+3] s.c = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:47:29 UTC 2024 - 4.4K bytes - Viewed (0)