- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 207 for int32Ptr (0.13 sec)
-
tensorflow/compiler/mlir/lite/utils/utils.h
DenseElementsAttr perm2_const) { SmallVector<int32_t> initial_permutation; DenseElementsAttr perm1_const; SmallVector<int32_t> new_permutation; if (matchPattern(permutation1, m_Constant(&perm1_const))) { for (int32_t idx = 0; idx < perm1_const.getNumElements(); ++idx) { initial_permutation.push_back(idx); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 11.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main1.c
return 1; } return 0; } int check_int32(void* handle, const char* fname, int32_t want) { int32_t (*fn)(); fn = (int32_t (*)())dlsym(handle, fname); if (!fn) { fprintf(stderr, "ERROR: missing %s: %s\n", fname, dlerror()); return 1; } int32_t ret = fn(); if (ret != want) { fprintf(stderr, "ERROR: %s=%d, want %d\n", fname, ret, want); return 1; }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
ShapedType weight_type = mlir::cast<ShapedType>(weight.getType()); const int32_t input_rank = input_type.getRank(); const int32_t weight_rank = weight_type.getRank(); const int32_t broadcasted_rank = std::max(input_rank, weight_rank); const int32_t num_matmul_dim = 2; const int32_t num_input_batch_dim = input_rank - num_matmul_dim; const int32_t num_weight_batch_dim = weight_rank - num_matmul_dim;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testsanitizers/testdata/msan.go
// license that can be found in the LICENSE file. package main /* #include <stdint.h> void f(int32_t *p, int n) { int i; for (i = 0; i < n; i++) { p[i] = (int32_t)i; } } */ import "C" import ( "fmt" "os" "unsafe" ) func main() { a := make([]int32, 10) C.f((*C.int32_t)(unsafe.Pointer(&a[0])), C.int(len(a))) for i, v := range a { if i != int(v) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 539 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_statistics_collector_histogram.cc
CalibrationStatistics statistics; statistics.mutable_histogram_statistics()->CopyFrom(hist_stats); return statistics; } std::pair<int32_t, int32_t> CalibrationStatisticsCollectorHistogram::ExpandHistogramIfNeeded( const float lower_bound, const float upper_bound) { int32_t lower_idx = CalculateBinIndex(lower_bound, lower_bound_, bin_width_); // If lower_idx < 0, then expand the histogram to the left. if (lower_idx < 0) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 05 09:09:34 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/tf_type_utils_test.cc
ASSERT_TRUE(succeeded(dense_attr)); EXPECT_THAT(dense_attr->getValues<int32_t>(), testing::SizeIs(4)); EXPECT_EQ(dense_attr->getValues<int32_t>()[0], 1); EXPECT_EQ(dense_attr->getValues<int32_t>()[1], 2); EXPECT_EQ(dense_attr->getValues<int32_t>()[2], 3); EXPECT_EQ(dense_attr->getValues<int32_t>()[3], 4); } TEST(GetDenseAttrFromTensorProtoAttrTest, Qint32ToInt32Succeeds) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc
auto padding_type = RankedTensorType::get({4, 2}, builder.getIntegerType(32)); // Calculate paddings. int32_t pad_total = kernel_size - 1; int32_t pad_beg = (pad_total / 2 + 1) / block_size; int32_t pad_end = (pad_total / 2) / block_size; SmallVector<int32_t, 8> values = {0, 0, pad_beg, pad_end, pad_beg, pad_end, 0, 0};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc
flattened_out_segids[i] = 0; } llvm::SmallVector<int32_t, 4> flattened_contracting_segids = llvm::SmallVector<int32_t, 4>(operand_rank, static_cast<int32_t>(-1)); for (int64_t i : dot_dimensions_info.contracting_dimensions().AxesArray()) { flattened_contracting_segids[i] = 0; } auto seg_prod_result_type = RankedTensorType::get(static_cast<int32_t>(1), builder.getI32Type());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.2K bytes - Viewed (0) -
src/runtime/cgo/gcc_mmap.c
#include <errno.h> #include <stdint.h> #include <stdlib.h> #include <sys/mman.h> #include "libcgo.h" uintptr_t x_cgo_mmap(void *addr, uintptr_t length, int32_t prot, int32_t flags, int32_t fd, uint32_t offset) { void *p; _cgo_tsan_acquire(); p = mmap(addr, length, prot, flags, fd, offset); _cgo_tsan_release(); if (p == MAP_FAILED) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 20:58:13 UTC 2023 - 916 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
mlir::TF::IfOp op, const std::vector<int32_t>& operands, const std::vector<int32_t>& results); // Build while operator where cond & body are regions. std::optional<BufferOffset<tflite::Operator>> BuildWhileOperator( mlir::TFL::WhileOp op, const std::vector<int32_t>& operands, const std::vector<int32_t>& results); // Build call once operator.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)