Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hooks (0.13 sec)

  1. tensorflow/c/c_api_test.cc

        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void BuildExpectedGraph(bool grad_inputs_provided,
                              TF_Output* expected_grad_outputs) {
        // The expected graph looks like this if grad_inputs_provided.
        // If grad_inputs_provided is false, Const_0 will be a OnesLike op.
        //      ^             ^
        //    dy|           dx|        // MatMul Gradient Graph
        //      |             |
    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)
  2. tensorflow/c/eager/c_api.cc

      tensorflow::unwrap(ctx)->SetThreadLocalDevicePlacementPolicy(
          static_cast<tensorflow::ContextDevicePlacementPolicy>(policy));
    }
    
    // Note: this function looks up a thread local policy. So it should be called in
    // the appropriate client thread. In particular, in async mode, it may not be
    // safe to call this function from the async EagerExecutor threads.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
Back to top