Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Methods (0.23 sec)

  1. tensorflow/c/c_api.cc

      }
    
    TF_DEVICELIST_METHOD(const char*, TF_DeviceListName, name().c_str(), nullptr);
    TF_DEVICELIST_METHOD(const char*, TF_DeviceListType, device_type().c_str(),
                         nullptr);
    TF_DEVICELIST_METHOD(int64_t, TF_DeviceListMemoryBytes, memory_limit(), -1);
    TF_DEVICELIST_METHOD(uint64_t, TF_DeviceListIncarnation, incarnation(), 0);
    
    #undef TF_DEVICELIST_METHOD
    
    }  // end extern "C"
    
    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/custom_device_testutil.cc

      TFE_CustomDeviceTensorHandleMethods handle_methods;
      handle_methods.num_dims = &LoggedTensorNumDims;
      handle_methods.dim = &LoggedTensorDim;
      handle_methods.deallocator = &LoggedTensorDeallocator;
      return TFE_NewCustomDeviceTensorHandle(context, logging_device_name.c_str(),
                                             dtype, t.release(), handle_methods,
                                             status);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/parallel_device/parallel_device.cc

      ParallelTensor* t_released = t.release();
      TFE_CustomDeviceTensorHandleMethods handle_methods;
      handle_methods.num_dims = &ParallelTensorNumDims;
      handle_methods.dim = &ParallelTensorDim;
      handle_methods.deallocator = &ParallelTensorDeallocator;
      handle_methods.summarize = &ParallelTensorSummarize;
      return TensorHandlePtr(TFE_NewCustomDeviceTensorHandle(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/abstract_tensor_handle.cc

                          ", type=", FullType().DebugString(), ")");
    }
    
    Status AbstractTensorHandle::TensorHandleStatus() const {
      // Tensor handles in current runtime don't carry error info and this method
      // should always return OK status.
      return absl::OkStatus();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      // finished, if any.
      //
      // `cancellation_manager` must live until after `Join` finishes and pending
      // `is_async` operations finish. In addition to allowing the caller to cancel
      // the operation, its `StartCancel` method will be called if op execution
      // fails on any device in order to cancel the others.
      void StartExecute(TFE_Context* context, const char* operation_name,
                        std::vector<TFE_TensorHandle*> inputs,
    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)
  6. tensorflow/c/experimental/filesystem/modular_filesystem.cc

    #include "tensorflow/core/platform/file_system_helper.h"
    #include "tsl/platform/errors.h"
    
    // TODO(b/139060984): After all filesystems are converted, all calls to
    // methods from `FileSystem` will have to be replaced to calls to private
    // methods here, as part of making this class a singleton and the only way to
    // register/use filesystems.
    
    namespace tensorflow {
    
    using UniquePtrTo_TF_Status =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  7. tensorflow/c/c_test_util.cc

      values[0] = v;
      return TF_NewTensor(TF_FLOAT, nullptr, 0, values, num_bytes,
                          &FloatDeallocator, nullptr);
    }
    
    // All the *Helper methods are used as a workaround for the restrictions that
    // one cannot call ASSERT_* methods in non-void-returning functions (when
    // exceptions are disabled during compilation)
    void PlaceholderHelper(TF_Graph* graph, TF_Status* s, const char* name,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  8. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

    #include <memory>
    
    #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h"
    
    namespace tf_posix_filesystem {
    
    // Transfers up to `size` bytes from `dst_fd` to `src_fd`.
    //
    // This method uses a temporary buffer to hold contents.
    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      // Use a copy buffer of 128KB but don't store it on the stack.
      constexpr static size_t kPosixCopyFileBufferSize = 128 * 1024;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      // format, etc. When we get there, we might decide to move this class to
      // `modular_filesystem_test.h` and extend the instantiation to also take as
      // argument an implementation for this method/a subclass factory (see
      // https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#creating-value-parameterized-abstract-tests)
      std::string GetURIForPath(StringPiece path) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api.cc

          : tensorflow::CustomDeviceTensorHandle(context, device, dtype),
            data_(data),
            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;
    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