Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 383 for uint16_t (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

            StatusOr<Operation*> op_or_err;
            std::vector<uint8_t> buffer;
            // Check if constant tensor is stored outside of the flatbuffers.
            if (IsValidBufferOffset(buffers[const_tensor.buffer]->offset)) {
              const uint8_t* file_begin_ptr =
                  reinterpret_cast<const uint8_t*>(model_ptr->allocation()->base());
              buffer = std::vector<uint8_t>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  6. src/compress/bzip2/huffman.go

    // symbol is found.
    func (t *huffmanTree) Decode(br *bitReader) (v uint16) {
    	nodeIndex := uint16(0) // node 0 is the root of the tree.
    
    	for {
    		node := &t.nodes[nodeIndex]
    
    		var bit uint16
    		if br.bits > 0 {
    			// Get next bit - fast path.
    			br.bits--
    			bit = uint16(br.n>>(br.bits&63)) & 1
    		} else {
    			// Get next bit - slow path.
    			// Use ReadBits to retrieve a single bit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:44:37 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  7. src/runtime/cgo/libcgo.h

    // license that can be found in the LICENSE file.
    
    #include <stdint.h>
    #include <stdlib.h>
    #include <stdio.h>
    
    #undef nil
    #define nil ((void*)0)
    #define nelem(x) (sizeof(x)/sizeof((x)[0]))
    
    typedef uint32_t uint32;
    typedef uint64_t uint64;
    typedef uintptr_t uintptr;
    
    /*
     * The beginning of the per-goroutine structure,
     * as defined in ../pkg/runtime/runtime.h.
     * Just enough to edit these two fields.
     */
    typedef struct G G;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:50:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/cc/saved_model/fingerprinting_utils.cc

      return saved_model;
    }
    
    absl::StatusOr<uint64_t> HashMessage(
        Message* message, const ChunkedMessage& chunked_message,
        riegeli::RecordReader<riegeli::FdReader<>>& reader,
        const std::vector<ChunkInfo>& chunks_info,
        const RepeatedPtrField<FieldIndex>& field_tags) {
      uint64_t total_message_hash = Fingerprint64(SerializeProto(*message));
      TF_ASSIGN_OR_RETURN(
          uint64_t message_hash,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 22:19:55 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/fingerprinting.cc

      if (!result.ok()) return result;
    
      return fingerprint_proto;
    }
    
    std::string Singleprint(uint64_t graph_def_program_hash,
                            uint64_t signature_def_hash,
                            uint64_t saved_object_graph_hash,
                            uint64_t checkpoint_hash) {
      return std::to_string(graph_def_program_hash) + "/" +
             std::to_string(signature_def_hash) + "/" +
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 26 00:24:44 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top