Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for element (0.2 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      TF_EXPECT_OK(ReadCache(&cache, "", 2 * block_size, 1, &out));
      // Element at block_size was evicted.  Reading this element will also cause
      // the LRU element (at 0) to be evicted.
      calls.push_back(block_size);
      TF_EXPECT_OK(ReadCache(&cache, "", block_size, 1, &out));
      // Element at 0 was evicted again.
      calls.push_back(0);
      TF_EXPECT_OK(ReadCache(&cache, "", 0, 1, &out));
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.h

      // tensors with respect to the source tensors. The output gradients are used
      // if not empty and not null. The result is populated with one tensor per
      // target element.
      Status ComputeGradient(
          AbstractContext* ctx, absl::Span<AbstractTensorHandle* const> targets,
          absl::Span<AbstractTensorHandle* const> sources,
          absl::Span<AbstractTensorHandle* const> output_gradients,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 10:27:05 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc

      std::vector<int32_t> data(1, 0);
      xla::Shape shape = xla::ShapeUtil::MakeShape(xla::S32, {1});
    
      auto buffer = c_api_client->pjrt_c_client()->client->BufferFromHostBuffer(
          data.data(), shape.element_type(), shape.dimensions(),
          /*byte_strides=*/std::nullopt,
          xla::PjRtClient::HostBufferSemantics::kImmutableOnlyDuringCall, nullptr,
          c_api_client->pjrt_c_client()->client->addressable_devices()[0]);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Mon Oct 30 19:20:20 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      const int num_dims = 2;
      int64_t* dims = new int64_t[num_dims];
      int64_t num_elements = 1;
      dims[0] = batch_size;
      dims[1] = 1;
      for (int64_t i = 0; i < num_dims; ++i) {
        num_elements *= dims[i];
      }
      TF_Tensor* t = TF_AllocateTensor(TF_STRING, dims, num_dims,
                                       sizeof(TF_TString) * num_elements);
      delete[] dims;
    
    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)
  5. tensorflow/c/eager/immediate_execution_tensor_handle.h

    class ImmediateExecutionTensorHandle : public AbstractTensorHandle {
     public:
      // Returns number of dimensions.
      virtual Status NumDims(int* num_dims) const = 0;
      // Returns number of elements across all dimensions.
      virtual Status NumElements(int64_t* num_elements) const = 0;
      // Returns size of specified dimension
      //
      // -1 indicates an unknown axis length; this is unreachable for most standard
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 10 21:56:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tape.h

      // once) and produces the gradient of the target tensors with respect to the
      // source tensors. The output gradients are used if not empty and not
      // null. The result is populated with one tensor per target element.
      // When running backward functions, builds zeros-like tensors for
      // incoming grads which are nullptrs, unless `build_default_zeros_grads`
      // is set to false.
      Status ComputeGradient(
    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)
  7. tensorflow/c/experimental/filesystem/filesystem_interface.h

      ///   * `statuses` is either null or an array of `num_files` non-null elements
      ///     of type `TF_Status*`.
      ///
      /// If `statuses` is not null, plugins must fill each element with detailed
      /// status for each file, as if calling `path_exists` on each one. Core
      /// TensorFlow initializes the `statuses` array and plugins must use
      /// `TF_SetStatus` to set each element instead of directly assigning.
      ///
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
  8. ci/official/utilities/extract_resultstore_links.py

      error_count = 0
    
      date_time = datetime.datetime
      attrib = {'name': 'Bazel Invocations', 'time': '0.0',
                'timestamp': date_time.isoformat(date_time.utcnow())}
      testsuites = ElemTree.Element('testsuites')
      testsuite = ElemTree.SubElement(testsuites, 'testsuite')
      for url, invocation_results in result_store_dict.items():
        invocation_id = url.rsplit('/')[-1]
        if verbose:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. RELEASE.md

        *   Changing `tf.data.experimental.save` to store the type specification of
            the dataset elements. This avoids the need for explicitly specifying the
            `element_spec` argument of `tf.data.experimental.load` when loading the
            previously saved dataset.
        *   Add `.element_spec` property to `tf.data.DatasetSpec` to access the
            inner spec. This can be used to extract the structure of nested
    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)
  10. tensorflow/c/c_api.cc

      shapes.resize(num_shapes);
      for (int i = 0; i < num_shapes; ++i) {
        if (proto_lens[i] > std::numeric_limits<int>::max()) {
          status->status = InvalidArgument(
              "length of element ", i, " in the list (", proto_lens[i],
              " bytes) is too large to be parsed by the protocol buffer library");
          return;
        }
        if (!shapes[i].ParseFromArray(protos[i], static_cast<int>(proto_lens[i]))) {
    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)
Back to top