- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 207 for int32Ptr (0.31 sec)
-
tensorflow/c/c_test_util.cc
const int32_t* values) { int64_t num_values = 1; for (int i = 0; i < num_dims; ++i) { num_values *= dims[i]; } TF_Tensor* t = TF_AllocateTensor(TF_INT32, dims, num_dims, sizeof(int32_t) * num_values); memcpy(TF_TensorData(t), values, sizeof(int32_t) * num_values); return t; } TF_Tensor* Int32Tensor(const std::vector<int32_t>& values) { int64_t dims = values.size();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc
} FailureOr<int32_t> CastI64ToI32(const int64_t value) { if (!llvm::isInt<32>(value)) { DEBUG_WITH_TYPE( "mlir-quant-attrs-and-constraints", llvm::dbgs() << "Tried to cast " << value << "from int64 to int32, but lies out of range of int32.\n"); return failure(); } return static_cast<int32_t>(value); }
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/utils/size_utils.cc
#include <cstdint> #include "mlir/IR/BuiltinTypes.h" // from @llvm-project namespace mlir { namespace TFL { int32_t ConvertToTfliteSize(int64_t size) { return mlir::ShapedType::isDynamic(size) ? -1 : static_cast<int32_t>(size); } } // namespace TFL
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 23 16:15:59 UTC 2022 - 1009 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc
int64_t revised_new_axis_mask = 0; SmallVector<int32_t, 4> padded_begin; SmallVector<int32_t, 4> padded_end; SmallVector<int32_t, 4> padded_stride; // Before the ellipsis. int index = 0; int new_index = 0; while (((ellipsis_mask >> index) & 1) == 0) { padded_begin.push_back(begin_dense_elem_attr.getValues<int32_t>()[index]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 64.6K bytes - Viewed (0) -
tensorflow/c/c_test_util.h
unique_tensor_ptr; TF_Tensor* BoolTensor(int32_t v); // Create a tensor with values of type TF_INT8 provided by `values`. TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values); // Create a tensor with values of type TF_INT32 provided by `values`. TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims, const int32_t* values);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 09 01:06:53 UTC 2018 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.h
// Decomposes a given floating point value num into a normalized and quantized // fraction and an integral power of two. LogicalResult QuantizeMultiplier(double double_multiplier, int32_t& quantized_fraction, int32_t& shift); } // namespace mlir::quant::stablehlo
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 07:43:59 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main0.c
#include <stdint.h> #include <stdio.h> #include "p.h" #include "libgo.h" // Tests libgo.so to export the following functions. // int8_t DidInitRun(); // int8_t DidMainRun(); // int32_t FromPkg(); // uint32_t Divu(uint32_t, uint32_t); int main(void) { int8_t ran_init = DidInitRun(); if (!ran_init) { fprintf(stderr, "ERROR: DidInitRun returned unexpected results: %d\n", ran_init);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h
std::vector<int32_t>* out_vec); // Gets boolean from composite attrs if it exists. std::optional<bool> GetBoolFromCompositeAttr( const DictionaryAttr& composite_attrs, llvm::StringRef attr_name); // Given a DictionaryAttr, checks if it has a DenseIntElementsAttr attribute // with the name attr_name. If so, extracts its values and stores as a vector // of int32_t elements.
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/cc/gradients/data_flow_grad.cc
// grad = [[g_1, g_2], [g_3, g_4], [g_5, g_6]] // indices and data are two equal-sized lists passed // into DynamicStitch. // num_values = 2 int32_t num_values = op.num_inputs() / 2; // Stop propagation along the indices list for (int32_t i = 0; i < num_values; i++) { grad_outputs->push_back(NoGradient()); } // DynamicStitch shuffles its data to the output (using items in
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jul 24 13:40:35 UTC 2021 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
// returns std::nullopt on failure. std::optional<flatbuffers::Offset<tflite::Operator>> CreateFlatBufferOperator( Operation *mlir_op, uint32_t opcode_index, const std::vector<int32_t> &operands, const std::vector<int32_t> &results, const std::vector<int32_t> &intermediates, flatbuffers::FlatBufferBuilder *fbb); // Populates the array of mlir::NamedAttributes corresponding to the given // tflite::FlatbufferOptionsUnion.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0)