Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tensorflow/c/c_api.cc

    // directly, instead of requiring us to serialize to a GraphDef and
    // call Session::Extend().
    bool ExtendSessionGraphHelper(TF_Session* session, TF_Status* status) {
      if (session->graph != nullptr) {
        // Take the graph lock before the session lock to avoid deadlock. This is
        // safe since session->graph does not change.
        session->graph->mu.lock();
        mutex_lock session_lock(session->mu);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradient_checker.cc

        theta_inputs[input_index] = thetaMinus.get();
        TF_RETURN_IF_ERROR(
            RunAndMaybeSum(ctx, forward, theta_inputs, f_outputs, use_function));
        AbstractTensorHandlePtr fMinus(f_outputs[0]);
    
        // Take Difference of both estimates: (f(theta + eps) - f(theta - eps)).
        TF_RETURN_IF_ERROR(
            ops::Sub(ctx, fPlus.get(), fMinus.get(), f_outputs, "sub_top"));
        AbstractTensorHandlePtr fDiff(f_outputs[0]);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_experimental.cc

      std::vector<Tensor> all_input_tensors;
      // Update the vector with information from `input_tensors` if provided.
      if (input_tensors != nullptr) {
        // Note that we take the address of the elements in `all_input_tensors`
        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/gradients/nn_grad_test.cc

      outputs[0]->Unref();
    }
    
    TEST_P(CppGradients, TestSparseSoftmaxCrossEntropyWithLogitsGrad) {
      if (UseFunction()) {
        // TODO(b/168850692): Enable this.
        GTEST_SKIP() << "Can't take gradient of "
                        "SparseSoftmaxCrossEntropyWithLogits in tracing mode.";
      }
    
      // Score
      float X_vals[] = {1.0f, 2.0f, 3.0f, -5.0f, -4.0f, -3.0f, 2.0f, 0.0f, -1.0f};
      int64_t X_dims[] = {3, 3};
    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)
  5. tensorflow/c/c_api_test.cc

      }
      TF_DeleteTensor(a);
    }
    
    TEST(CAPI, TestTensorIsNotAligned) {
      // Test unaligned access via a Slice.
      Tensor x(DT_FLOAT, TensorShape({30}));
      x.flat<float>().setConstant(0.0);
    
      // Take an unaligned slice.
      Tensor y = x.Slice(1, 13);
      Status status;
      TF_Tensor* a = TF_TensorFromTensor(y, &status);
      if (TF_TensorDefaultAlignment() > 0) {
        EXPECT_FALSE(TF_TensorIsAligned(a));
      }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top