Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for beans (0.2 sec)

  1. tensorflow/c/c_api.cc

            InvalidArgument("Node ", node->name(), " was not found in the graph");
        return -1;
      }
    
      tensorflow::shape_inference::ShapeHandle shape = ic->output(output.index);
    
      // Unknown rank means the number of dimensions is -1.
      if (!ic->RankKnown(shape)) {
        return -1;
      }
    
      return ic->Rank(shape);
    }
    
    void TF_GraphGetTensorShape(TF_Graph* graph, TF_Output output, int64_t* dims,
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      EXPECT_EQ(value, 43);
      // ...but is no longer valid 2 seconds after the insertion.
      env->SetNowSeconds(6);
      EXPECT_FALSE(cache.Lookup(key, &value));
    }
    
    TEST(ExpiringLRUCacheTest, MaxEntries) {
      // max_age of 0 means nothing will be cached.
      tf_gcs_filesystem::ExpiringLRUCache<int> cache1(0, 4);
      cache1.Insert("a", 1);
      int value = 0;
      EXPECT_FALSE(cache1.Lookup("a", &value));
      // Now set max_age = 1 and verify the LRU eviction logic.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

        block->lru_iterator = lru_list_.begin();
      }
    
      // Check for inconsistent state. If there is a block later in the same file
      // in the cache, and our current block is not block size, this likely means
      // we have inconsistent state within the cache. Note: it's possible some
      // incomplete reads may still go undetected.
      if (block->data.size() < block_size_) {
    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)
  4. tensorflow/c/experimental/gradients/math_grad.cc

        /* Given upstream grad U and a matmul op A*B, the gradients are:
         *
         *    dA = U * B.T
         *    dB = A.T * U
         *
         *    where A.T means `transpose(A)`
         */
        AbstractTensorHandle* upstream_grad = grad_outputs[0];
    
        // Get transpose attrs
        bool t_a;
        TF_RETURN_IF_ERROR(forward_attrs_.Get("transpose_a", &t_a));
    
        bool t_b;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                         int64_t* offset, TempFile* outfile,
                         gcs::Client* gcs_client, TF_Status* status) {
      outfile->flush();
      // `*offset == 0` means this file does not exist on the server.
      if (*offset == -1 || *offset == 0) {
        // UploadFile will automatically switch to resumable upload based on Client
        // configuration.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
Back to top