Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for PROVIDED (0.31 sec)

  1. tensorflow/c/c_api.cc

          if (n == nullptr) continue;
    
          // Adding the gradients to the graph can alter the prefix to prevent
          // name collisions only if this prefix has not been provided explicitly
          // by the user. If it was provided, assert that it remained intact.
          if (prefix != nullptr && !absl::StartsWith(n->name(), prefix_cmp)) {
            status->status = tensorflow::errors::Internal(
    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/eager/c_api_cluster_test.cc

      EXPECT_NE(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      // Even after the prevoiusly failed cluster update, another update and op
      // execution should work fine as long as the provided server_def is valid.
      TFE_ContextUpdateServerDef(ctx, 0, serialized.data(), serialized.size(),
                                 status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    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)
  3. tensorflow/c/c_api_experimental.cc

      // A vector to keep track of newly created `tf::Tensor` objects.
      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.
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients_test.cc

                          {x.get()}, absl::MakeSpan(outputs),
                          /*use_function=*/!std::get<2>(GetParam()));
      ASSERT_EQ(error::INVALID_ARGUMENT, s.code());
      ASSERT_EQ(
          "Provided null gradient_function for 'Neg'.\nIf the intent is to treat "
          "this op as non-differentiable consider using RegisterNotDifferentiable "
          "or NotDifferentiableGradientFunction.",
          s.message());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

      }
    
      void TestGradientsSuccess(bool grad_inputs_provided) {
        TF_Output inputs[2];
        TF_Output outputs[1];
        TF_Output grad_outputs[2];
        TF_Output expected_grad_outputs[2];
    
        BuildSuccessGraph(inputs, outputs);
        BuildExpectedGraph(grad_inputs_provided, expected_grad_outputs);
    
        AddGradients(grad_inputs_provided, nullptr, inputs, 2, outputs, 1,
                     grad_outputs);
    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)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        const ParallelDevice& parallel_device,
        std::vector<TensorHandlePtr> components, TF_Status* status) {
      if (components.empty()) {
        TF_SetStatus(status, TF_INTERNAL,
                     "No components are provided for creating a ParallelTensor");
        return nullptr;
      }
      TFE_TensorHandleGetStatus(components[0].get(), status);
      if (!status->status.ok()) {
        return nullptr;
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  7. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // only requests schemes that don't exist, first instantiation of the test would
    // filter out all the user provided schemes (as they are not registered) but
    // subsequent instantiations would return all registered schemes (since the
    // vector with the user provided schemes is cleared).
    static std::vector<std::string>* GetSchemesFromUserOrEnv() {
      std::vector<std::string>* all_schemes = new std::vector<std::string>;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients.cc

      AbstractTensorHandle* AggregateGradients(
          gtl::ArraySlice<AbstractTensorHandle*> gradient_tensors) const override;
    
      // Calls the passed-in backward function.
      // op_type is the op's name provided in RecordOperation.
      Status CallBackwardFunction(
          const string& op_type, GradientFunction* gradient_function,
          const std::vector<int64_t>& unneeded_gradients,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  9. tensorflow/c/eager/gradient_checker_test.cc

    // result of `gradient_checker` and `[*]_grad`. The tests here test the
    // functionality of `gradient_checker` by comparing the result with expected
    // manual user-provided gradients.
    class GradientCheckerTest
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    #include "tensorflow/c/tf_status_internal.h"
    #include "tensorflow/core/platform/env.h"
    #include "tensorflow/core/platform/errors.h"
    
    namespace tensorflow {
    
    // Checks that all schemes provided by a plugin are valid.
    // TODO(b/139060984): More validation could be done here, based on supported
    // charset, maximum length, etc. Punting it for later.
    static Status ValidateScheme(const char* scheme) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
Back to top