Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 422 for uint16_t (0.14 sec)

  1. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

          switch (itype.getWidth()) {
            case 8:
              return DenseElementsAttr::get<uint8_t>(shaped_type,
                                                     static_cast<uint8_t>(value));
              break;
            case 16:
              return DenseElementsAttr::get<uint16_t>(shaped_type,
                                                      static_cast<uint16_t>(value));
              break;
            case 32:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. src/runtime/write_err_android.go

    	// The first 11 bytes of the header corresponds to android_log_header_t
    	// as defined in system/core/include/private/android_logger.h
    	//   hdr[0] log type id (unsigned char), defined in <log/log.h>
    	//   hdr[1:2] tid (uint16_t)
    	//   hdr[3:11] log_time defined in <log/log_read.h>
    	//      hdr[3:7] sec unsigned uint32, little endian.
    	//      hdr[7:11] nsec unsigned uint32, little endian.
    	hdr[0] = 0 // LOG_ID_MAIN
    	sec, nsec, _ := time_now()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      absl::flat_hash_map<std::pair<std::vector<int32_t>, std::vector<int32_t>>,
                          std::vector<uint8_t>>
          custom_op_data_map_;
      absl::flat_hash_map<std::pair<std::vector<int32_t>, std::vector<int32_t>>,
                          std::pair<uint64_t, uint64_t>>
          custom_op_idx_map_;
    
      // Points to TensorFlow and TFLite dialects, respectively. nullptr if the
      // dialect is not registered.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/elf.go

    	case sys.MIPS, sys.MIPS64:
    		eh.Machine = uint16(elf.EM_MIPS)
    	case sys.Loong64:
    		eh.Machine = uint16(elf.EM_LOONGARCH)
    	case sys.ARM:
    		eh.Machine = uint16(elf.EM_ARM)
    	case sys.AMD64:
    		eh.Machine = uint16(elf.EM_X86_64)
    	case sys.ARM64:
    		eh.Machine = uint16(elf.EM_AARCH64)
    	case sys.I386:
    		eh.Machine = uint16(elf.EM_386)
    	case sys.PPC64:
    		eh.Machine = uint16(elf.EM_PPC64)
    	case sys.RISCV64:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/schema/schema_generated.h

      void add_adj_x(bool adj_x) {
        fbb_.AddElement<uint8_t>(BatchMatMulOptions::VT_ADJ_X, static_cast<uint8_t>(adj_x), 0);
      }
      void add_adj_y(bool adj_y) {
        fbb_.AddElement<uint8_t>(BatchMatMulOptions::VT_ADJ_Y, static_cast<uint8_t>(adj_y), 0);
      }
      void add_asymmetric_quantize_inputs(bool asymmetric_quantize_inputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

      if (element_ty.isF16()) {
        uint16_t raw_epsilon = Eigen::numext::bit_cast<uint16_t>(
            Eigen::NumTraits<Eigen::half>::epsilon());
        auto value = APFloat(APFloat::IEEEhalf(), APInt(16, raw_epsilon));
        return DenseElementsAttr::get(scalar_ty, value);
      } else if (element_ty.isBF16()) {
        uint16_t raw_epsilon = Eigen::numext::bit_cast<uint16_t>(
            Eigen::NumTraits<Eigen::bfloat16>::epsilon());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top