Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for overridden (0.22 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        return absl::OkStatus();
      }
      const string& Name() const override { return op_type_; }
      const string& DeviceName() const override { return device_name_; }
    
      Status SetDeviceName(const char* name) override {
        // TODO(srbs): Implement this.
        device_name_ = name;
        return absl::OkStatus();
      }
    
      Status AddInput(AbstractTensorHandle* input) override {
        GraphTensor* t = dyn_cast<GraphTensor>(input);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  2. tensorflow/c/experimental/gradients/math_grad.cc

                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
        // TODO(b/161805092): Support broadcasting.
    
        DCHECK(grad_outputs[0]);
        grad_inputs[0] = grad_outputs[0];
        grad_inputs[1] = grad_outputs[0];
    
        grad_inputs[0]->Ref();
        grad_inputs[1]->Ref();
        return absl::OkStatus();
      }
      ~AddGradientFunction() override {}
    };
    
    class ExpGradientFunction : public GradientFunction {
    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)
  3. tensorflow/c/eager/c_api.cc

            methods_(methods) {}
    
      ~CAPICustomDeviceTensorHandle() override { methods_.deallocator(data_); }
      void* DevicePointer() const override { return data_; }
      Status NumDims(int* num_dims) const override {
        TF_Status s;
        *num_dims = methods_.num_dims(data_, &s);
        return s.status;
      }
      Status Dim(int dim_index, int64_t* dim) const override {
        TF_Status s;
        *dim = methods_.dim(data_, dim_index, &s);
    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)
  4. tensorflow/c/c_api_experimental_test.cc

    class CApiExperimentalFunctionTest : public ::testing::Test {
     protected:
      CApiExperimentalFunctionTest()
          : s_(TF_NewStatus()), func_graph_(TF_NewGraph()), func_(nullptr) {}
    
      void SetUp() override {}
    
      ~CApiExperimentalFunctionTest() override {
        TF_DeleteFunction(func_);
        TF_DeleteGraph(func_graph_);
        TF_DeleteStatus(s_);
      }
    
      const char* func_name_ = "MyFunc";
      TF_Status* s_;
      TF_Graph* func_graph_;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  5. tensorflow/c/eager/unified_api_test.cc

    #include "tensorflow/core/platform/test.h"
    
    namespace tensorflow {
    namespace {
    class UnifiedAPI
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
        Status s = StatusFromTF_Status(status.get());
        CHECK_EQ(errors::OK, s.code()) << s.message();
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    namespace gcs = google::cloud::storage;
    
    // The environment variable that overrides the block size for aligned reads from
    // GCS. Specified in MB (e.g. "16" = 16 x 1024 x 1024 = 16777216 bytes).
    constexpr char kBlockSize[] = "GCS_READ_CACHE_BLOCK_SIZE_MB";
    constexpr size_t kDefaultBlockSize = 64 * 1024 * 1024;
    // The environment variable that overrides the max size of the LRU cache of
    // blocks read from GCS. Specified in MB.
    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)
  7. tensorflow/c/eager/gradient_checker_test.cc

    // manual user-provided gradients.
    class GradientCheckerTest
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
    
        {
          Status s = StatusFromTF_Status(status.get());
    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)
  8. tensorflow/c/c_api_function_test.cc

     protected:
      CApiFunctionTest()
          : s_(TF_NewStatus()),
            func_graph_(TF_NewGraph()),
            host_graph_(TF_NewGraph()),
            func_(nullptr) {}
    
      void SetUp() override {}
    
      ~CApiFunctionTest() override {
        TF_DeleteFunction(func_);
        TF_DeleteGraph(host_graph_);
        TF_DeleteGraph(func_graph_);
        TF_DeleteStatus(s_);
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  9. tensorflow/c/experimental/gradients/nn_grad_test.cc

                          "BiasAdd");
    }
    
    class CppGradients
        : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> {
     protected:
      void SetUp() override {
        TF_StatusPtr status(TF_NewStatus());
        TF_SetTracingImplementation(std::get<0>(GetParam()), status.get());
        status_ = StatusFromTF_Status(status.get());
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
    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)
  10. tensorflow/c/c_api_test.cc

        (*lens)[i] = v[i].size();
      }
    }
    
    class CApiColocationTest : public ::testing::Test {
     protected:
      CApiColocationTest() : s_(TF_NewStatus()), graph_(TF_NewGraph()) {}
    
      void SetUp() override {
        feed1_ = Placeholder(graph_, s_, "feed1");
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    
        feed2_ = Placeholder(graph_, s_, "feed2");
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
    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