Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for total (0.15 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

        rc = read(src_fd, buffer.get(), chunk);
        if (rc < 0) return -1;
    
        int total_write = 0;
        int total_read = rc;
        while (total_write < total_read && rc > 0) {
          rc = write(dst_fd, buffer.get() + total_write, chunk - total_write);
          if (rc < 0) return -1;
    
          total_write += rc;
          bytes_transferred += rc;
          offset += rc;
        }
      }
    
      return bytes_transferred;
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

          size_t bytes_to_copy = end - begin;
          memcpy(&buffer[total_bytes_transferred], &*begin, bytes_to_copy);
          total_bytes_transferred += bytes_to_copy;
        }
        if (data.size() < block_size_) {
          // The block was a partial block and thus signals EOF at its upper bound.
          break;
        }
      }
      TF_SetStatus(status, TF_OK, "");
      return total_bytes_transferred;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      EXPECT_TF_META("v", list.size(), TF_ATTR_STRING, list_total_size);
      std::unique_ptr<void*[]> values(new void*[list.size()]);
      std::unique_ptr<size_t[]> lens(new size_t[list.size()]);
      std::unique_ptr<char[]> storage(new char[list_total_size]);
      TF_OperationGetAttrStringList(oper, "v", values.get(), lens.get(),
                                    list.size(), storage.get(), list_total_size,
                                    s_);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  4. tensorflow/c/eager/dlpack.cc

            "Unsupported byte_offset (", dl_tensor->byte_offset,
            ") from DLPack, must be zero");
        return nullptr;
      }
    
      size_t total_bytes = dl_tensor->dtype.bits / 8;
      for (int i = 0; i < num_dims; i++) {
        total_bytes *= dims[i];
      }
    
      if (dl_tensor->strides != nullptr &&
          !IsValidStrideCompactRowMajorData(dl_tensor->shape, dl_tensor->strides,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/grappler/grappler_test.cc

      std::unordered_set<string> nodes_preserved = item.NodesToPreserve();
      TF_GrapplerItem* c_item = reinterpret_cast<TF_GrapplerItem*>(&item);
    
      int list_total_size = 0;
      for (const string& s : nodes_preserved) {
        list_total_size += s.size();
      }
    
      size_t storage_size = 0;
      int num_values = 0;
      TF_Status* status = TF_NewStatus();
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

    class RamFileBlockCache {
     public:
      /// The callback executed when a block is not found in the cache, and needs to
      /// be fetched from the backing filesystem. This callback is provided when the
      /// cache is constructed. It returns total bytes read ( -1 in case of errors
      /// ). The `status` should be `TF_OK` as long as the read from the remote
      /// filesystem succeeded (similar to the semantics of the read(2) system
      /// call).
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  7. tensorflow/c/c_api.cc

              s, TF_ATTR_STRING, metadata.total_size = 0;
              for (int i = 0; i < attr->list().s_size();
                   ++i) { metadata.total_size += attr->list().s(i).size(); });
          LIST_CASE(i, TF_ATTR_INT);
          LIST_CASE(f, TF_ATTR_FLOAT);
          LIST_CASE(b, TF_ATTR_BOOL);
          LIST_CASE(type, TF_ATTR_TYPE);
          LIST_CASE(
              shape, TF_ATTR_SHAPE, metadata.total_size = 0;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.h

      TF_AttrType type;
    
      // Total size the attribute value.
      // The units of total_size depend on is_list and type.
      // (1) If type == TF_ATTR_STRING and is_list == 0
      //     then total_size is the byte size of the string
      //     valued attribute.
      // (2) If type == TF_ATTR_STRING and is_list == 1
      //     then total_size is the cumulative byte size
      //     of all the strings in the list.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  9. tensorflow/c/eager/tape.h

              {"SparseSoftmaxCrossEntropyWithLogits", {1}},
              {"FusedBatchNorm", {1, 2, 3, 4}},
          });
      return m;
    }
    
    }  // namespace
    
    // If over kMinAggregateCount gradients are accumulated and the total
    // memory consumption is over kMinAggregateBytes, do an early aggregation
    // so as to release the gradient tensor to save memory.
    constexpr int kMinAggregateCount = 4;
    constexpr int kMinAggregateBytes = 128 * 1024 * 1024;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  10. RELEASE.md

        `with_values` function of `RaggedTensor`.
    *   Adds `StatelessCase` op, and uses it if none of case branches has stateful
        ops.
    *   Adds `tf.config.experimental.get_memory_usage` to return total memory usage
        of the device.
    *   Adds gradients for `RaggedTensorToVariant` and `RaggedTensorFromVariant`.
    *   Improve shape inference of nested function calls by supporting constant
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
Back to top