Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 85 for s_size (0.17 sec)

  1. tensorflow/c/eager/c_api.cc

        case tensorflow::AttrValue::kList: {
          // String
          if (const int s_size = default_value.list().s_size()) {
            absl::InlinedVector<const void*, 4> values_vector;
            values_vector.reserve(s_size);
            absl::InlinedVector<size_t, 4> lengths_vector;
            lengths_vector.reserve(s_size);
            for (int i = 0; i < s_size; ++i) {
              const string& v = default_value.list().s(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_util.cc

      return list.s_size() == 0 && list.i_size() == 0 && list.f_size() == 0 &&
             list.b_size() == 0 && list.type_size() == 0 &&
             list.shape_size() == 0 && list.tensor_size() == 0;
    }
    
    string ToCamelCase(StringPiece str) {
      string result;
      const char joiner = '_';
      size_t i = 0;
      bool cap = true;
      while (i < str.size()) {
        const char c = str[i++];
        if (c == '>') {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc

          return std::to_string(attr_value.f());
        case AttrValue::kB:
          return attr_value.b() ? "true" : "false";
        case AttrValue::kList:
          if (attr_.full_type() == "list(string)" &&
              attr_value.list().s_size() == 0) {
            return "{}";
          }
          LOG(WARNING) << "Unimplemented: default value of list-typed attribute.";
          return "/* UNIMPLEMENTED */";
        case AttrValue::kShape:
        case AttrValue::kTensor:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/c/kernels.cc

      if (attr->list().field##_size() > 0) {      \
        *list_size = attr->list().field##_size(); \
        __VA_ARGS__;                              \
        break;                                    \
      }
    
          LIST_CASE(
              s, TF_ATTR_STRING, *total_size = 0;
              for (int i = 0; i < attr->list().s_size();
                   ++i) { *total_size += attr->list().s(i).size(); });
          LIST_CASE(i, TF_ATTR_INT);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  5. tensorflow/c/c_api.cc

      DCHECK(tf_results->missing_unused_key_names_data.empty());
    
      size_t size = results.missing_unused_input_map_keys.size();
      tf_results->missing_unused_key_names.resize(size);
      tf_results->missing_unused_key_indexes.resize(size);
    
      for (int i = 0; i < size; ++i) {
        TensorId id = results.missing_unused_input_map_keys[i];
        tf_results->missing_unused_key_names_data.emplace_back(id.first);
        tf_results->missing_unused_key_names[i] =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/gradient_checker.cc

                                JAC_T* max_error) {
      if (xs.size() != x_shapes.size()) {
        return errors::InvalidArgument("xs(size ", xs.size(),
                                       ") and x_shapes(size ", x_shapes.size(),
                                       ") must be the same size.");
      }
      if (ys.size() != y_shapes.size()) {
        return errors::InvalidArgument("ys(size ", ys.size(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. src/runtime/defs1_solaris_amd64.go

    	sem_type  uint16
    	sem_magic uint16
    	sem_pad1  [3]uint64
    	sem_pad2  [2]uint64
    }
    
    type sigset struct {
    	__sigbits [4]uint32
    }
    
    type stackt struct {
    	ss_sp     *byte
    	ss_size   uintptr
    	ss_flags  int32
    	pad_cgo_0 [4]byte
    }
    
    type siginfo struct {
    	si_signo int32
    	si_code  int32
    	si_errno int32
    	si_pad   int32
    	__data   [240]byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 19:40:51 UTC 2023
    - 4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                              << ") != terminator operands ("
                              << term->getNumOperands() << ")";
        return {};
      }
      // Verify number of tensors for inputs and outputs matches size
      // of the list in the signature def.
      if (input_names.size() != sig_def_inputs.size() ||
          output_names.size() != sig_def_outputs.size()) {
        main_op.emitWarning(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  9. src/runtime/msize.go

    // Malloc small size classes.
    //
    // See malloc.go for overview.
    // See also mksizeclasses.go for how we decide what size classes to use.
    
    package runtime
    
    // Returns size of the memory block that mallocgc will allocate if you ask for the size,
    // minus any inline space for metadata.
    func roundupsize(size uintptr, noscan bool) (reqSize uintptr) {
    	reqSize = size
    	if reqSize <= maxSmallSize-mallocHeaderSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. src/internal/coverage/encodemeta/encodefile.go

    	mhsz := uint64(unsafe.Sizeof(coverage.MetaFileHeader{}))
    	stSize := m.stab.Size()
    	stOffset := mhsz + uint64(16*len(blobs))
    	preambleLength := stOffset + uint64(stSize)
    
    	if m.debug {
    		fmt.Fprintf(os.Stderr, "=+= sizeof(MetaFileHeader)=%d\n", mhsz)
    		fmt.Fprintf(os.Stderr, "=+= preambleLength=%d stSize=%d\n", preambleLength, stSize)
    	}
    
    	// Compute total size
    	tlen := preambleLength
    	for i := 0; i < len(blobs); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 11 12:40:42 UTC 2022
    - 3.4K bytes
    - Viewed (0)
Back to top