Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for works (0.19 sec)

  1. tensorflow/c/eager/c_api_cluster_test.cc

      TFE_TensorHandleCopyToDevice(h0_task0_new, ctx, remote_device_name, status);
      EXPECT_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Copying and executing on the new remote device works.
      const char new_remote_device_name[] =
          "/job:worker/replica:0/task:1/device:CPU:0";
      const char new_local_device_name[] =
          "/job:worker/replica:0/task:0/device:CPU:0";
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/nn_grad_test.cc

      AbstractTensorHandle* backprop;
      TF_RETURN_IF_ERROR(ops::SparseSoftmaxCrossEntropyWithLogits(
          ctx, inputs[0], inputs[1], &loss, &backprop,
          "SparseSoftmaxCrossEntropyWithLogits"));
      // `gradient_checker` only works with model that returns only 1 tensor.
      // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the
      // second tensor isn't needed for computing gradient so we could safely drop
      // it.
      outputs[0] = loss;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      tf_gcs_filesystem::ExpiringLRUCache<int> cache(
          1, 0, [&env]() { return env->NowSeconds(); });
      env->SetNowSeconds(1);
      // Verify that replacement of an existing element works, and updates the
      // timestamp of the entry.
      cache.Insert(key, 41);
      env->SetNowSeconds(2);
      cache.Insert(key, 42);
      // 1 second after the most recent insertion, the entry is still valid.
      env->SetNowSeconds(3);
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        TF_SetStatus(status, TF_OK, "");
        return n;
      };
      std::vector<char> out;
      std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv);
      // Create a cache with max staleness of 2 seconds, and verify that it works as
      // expected.
      tf_gcs_filesystem::RamFileBlockCache cache1(
          8, 16, 2 /* max staleness */, fetcher,
          [&env]() { return env->NowSeconds(); });
      // Execute the first read to load the block.
    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)
  5. tensorflow/c/experimental/gradients/math_grad_test.cc

          immediate_execution_ctx_.get(), {x.get()}, UseFunction()));
    }
    
    TEST_P(CppGradients, TestMatMulGrad) {
      // TODO(vnvo2409): Figure out why `gradient_checker` does not work very
      // well with `MatMul` and remove `TestMatMul*` in
      // `mnist_gradients_test` when done.
      GTEST_SKIP();
    
      float A_vals[] = {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f, 7.0f, 8.0f, 9.0f};
      int64_t A_dims[] = {3, 3};
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Thu Apr 13 17:32:14 GMT 2023
    - 16.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      EXPECT_EQ(TF_GetCode(status.get()), TF_INVALID_ARGUMENT);
      EXPECT_THAT(TF_Message(status.get()), HasSubstr("assertion failed"));
    
      // Note that future collectives with the same context do not work at the
      // moment; once canceled, the collective executor requires the program to be
      // restarted / context to be reset.
    }
    
    TEST(PARALLEL_DEVICE_LIB, TestDifferentShapes) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/custom_device_test.cc

      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_DeleteTensorHandle(retval);
    
      // Custom device: inputs in same custom device works.
      matmul.reset(MatMulOp(context.get(), hcustom0.get(), hcustom0.get()));
      num_retvals = 1;
      executed = false;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_test.cc

        TFE_ExecutorClearError(executor);
        TFE_ExecutorWaitForAllPendingNodes(executor, status);
        ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        TFE_DeleteExecutor(executor);
      }
      // Following works in async mode since TFE_ContextAsyncClearError was called.
      TF_SetStatus(status, TF_OK, "");
      if (retvals[0] != nullptr) {
        TFE_DeleteTensorHandle(retvals[0]);
      }
      retvals[0] = nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  9. tensorflow/c/experimental/gradients/tape/tape_operation.cc

        forward_op_.outputs.push_back(retvals[i]);
      }
      // TODO(b/166669239): This is needed to support AttrBuilder::Get for string
      // attributes. Number type attrs and DataType attrs work fine without this.
      // Consider getting rid of this and making the behavior between number types
      // and string consistent.
      forward_op_.attrs.BuildNodeDef();
      // TODO(b/170307493): Populate skip_input_indices here.
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  10. tensorflow/c/c_api_test.cc

      TF_Status* s = TF_NewStatus();
      const char* tags[] = {tensorflow::kSavedModelTagServe};
      TF_Graph* graph = TF_NewGraph();
      // NULL run_options and meta_graph_def should work.
      TF_Session* session = TF_LoadSessionFromSavedModel(
          opt, nullptr, saved_model_dir.c_str(), tags, 1, graph, nullptr, s);
      EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_DeleteSessionOptions(opt);
    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)
Back to top