- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 377 for uint16_t (0.35 sec)
-
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
return mlir::ElementsAttr( DenseElementsAttr::get(shaped_type, ArrayRef<uint8_t>(buffer))); } case 16: { values = ReadAsHostEndian<uint16_t>(buffer); break; } case 32: { values = ReadAsHostEndian<uint32_t>(buffer); break; } case 64: { values = ReadAsHostEndian<uint64_t>(buffer); break; } default:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
output->Add( Eigen::numext::bit_cast<uint16_t>(attr.getSplatValue<Eigen::half>())); } else { output->Reserve(attr.getNumElements()); for (const Eigen::half value : attr.getValues<Eigen::half>()) output->AddAlreadyReserved(Eigen::numext::bit_cast<uint16_t>(value)); } } // Converts an MLIR elements attribute containing signed int values and adds it
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
constexpr float kBlockOverRandomSparsityRatioQuant = 0.8; Eigen::half APFloatToEigenHalf(const APFloat& val) { uint16_t raw_data = val.bitcastToAPInt().getZExtValue(); return Eigen::numext::bit_cast<Eigen::half>(raw_data); } APFloat EigenHalfToAPFloat(const Eigen::half& val) { uint16_t raw_data = Eigen::numext::bit_cast<uint16_t>(val); return APFloat(APFloat::IEEEhalf(), APInt(16, raw_data)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
typedef uint32_t VkFlags; typedef VkFlags VkDeviceQueueCreateFlags; typedef uint32_t VkStructureType; typedef struct VkDeviceQueueCreateInfo { VkStructureType sType; const void* pNext; VkDeviceQueueCreateFlags flags; uint32_t queueFamilyIndex; uint32_t queueCount;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
} template <> inline std::vector<int16_t> GetVector(DenseElementsAttr elements) { auto type = elements.getType(); auto elemType = type.getElementType(); if (elemType.isSignlessInteger(16)) { auto vec = llvm::to_vector(llvm::map_range( elements.getValues<APInt>(), [&](APInt value) -> int16_t { return value.getSExtValue(); })); return std::vector<int16_t>(vec.begin(), vec.end()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc
return true; } } } return false; } // Returns the producer op code of the specified tensor_idx. bool GetProducerOpCode(const Model* model, uint32_t subgraph_idx, uint32_t tensor_idx, BuiltinOperator* op_code) { const auto subgraph = model->subgraphs()->Get(subgraph_idx); for (size_t op_idx = 0; op_idx < subgraph->operators()->size(); ++op_idx) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 32.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.h
clamp_max_double_); uint64_t signless_result; if (is_signed_) { int64_t clamped_int = static_cast<int8_t>(clamped); memcpy(&signless_result, &clamped_int, sizeof(clamped_int)); } else { signless_result = static_cast<uint8_t>(clamped); } return APInt(storage_bit_width_, signless_result); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor.h
SP_DeviceMemoryBase* location, uint64_t size, TF_Status* status); // Set the 8-bit patterns starting at the location with `size` bytes. void (*memset)(const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* location, uint8_t pattern, uint64_t size, TF_Status* status);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 24 08:40:35 UTC 2022 - 21.6K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor_test.cc
se_.memset32 = [](const SP_Device* device, SP_Stream stream, SP_DeviceMemoryBase* location, uint32_t pattern, uint64_t size, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); EXPECT_EQ(stream->stream_id, 14); EXPECT_EQ(size % 4, 0); auto ptr = static_cast<uint32_t*>(location->opaque); for (int i = 0; i < size / 4; i++) { *(ptr + i) = pattern; } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 19:54:04 UTC 2024 - 26.5K bytes - Viewed (0) -
src/cmd/internal/goobj/objfile.go
b := r.BytesAt(off, 4) return binary.LittleEndian.Uint32(b) } func (r *Reader) int32At(off uint32) int32 { return int32(r.uint32At(off)) } func (r *Reader) uint16At(off uint32) uint16 { b := r.BytesAt(off, 2) return binary.LittleEndian.Uint16(b) } func (r *Reader) uint8At(off uint32) uint8 { b := r.BytesAt(off, 1) return b[0] } func (r *Reader) StringAt(off uint32, len uint32) string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 23.8K bytes - Viewed (0)