Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for ImmediateExecutionTensorHandle (0.23 sec)

  1. tensorflow/c/eager/immediate_execution_tensor_handle.cc

                          device_name, "\")");
    }
    
    absl::Status ImmediateExecutionTensorHandle::SummarizeValue(
        std::string& summary) const {
      absl::Status status;
      AbstractTensorPtr resolved(
          // TODO(allenl): Resolve should be const, and the caches that get updated
          // marked mutable.
          const_cast<ImmediateExecutionTensorHandle*>(this)->Resolve(&status));
      if (!status.ok()) {
        return status;
      }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:24:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  2. tensorflow/c/eager/immediate_execution_context.h

      // Create a handle to wrap and manage a Tensor
      virtual ImmediateExecutionTensorHandle* CreateLocalHandle(
          AbstractTensorInterface* t) = 0;
      // Copy the handle to another device.
      virtual ImmediateExecutionTensorHandle* CopyTensorHandleToDevice(
          ImmediateExecutionTensorHandle* handle, const char* device_name,
          absl::Status* status) = 0;
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_tensor_handle.h

      }
    
     protected:
      explicit ImmediateExecutionTensorHandle(AbstractTensorHandleKind kind)
          : AbstractTensorHandle(kind) {}
      ~ImmediateExecutionTensorHandle() override {}
    };
    
    namespace internal {
    struct ImmediateExecutionTensorHandleDeleter {
      void operator()(ImmediateExecutionTensorHandle* p) const {
        if (p != nullptr) {
          p->Unref();
        }
      }
    };
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/c/eager/immediate_execution_operation.h

     public:
      virtual void Clear() = 0;
    
      // Returns the inputs of this op.
      virtual absl::Span<ImmediateExecutionTensorHandle* const> GetInputs()
          const = 0;
      virtual absl::Status SetInput(size_t index,
                                    ImmediateExecutionTensorHandle* input) = 0;
    
      virtual ImmediateExecutionContext* GetContext() const = 0;
    
      // Following two methods are used to support custom device.
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental_eager.cc

    using tensorflow::AbstractContext;
    using tensorflow::AbstractTensorHandle;
    using tensorflow::dyn_cast;
    using tensorflow::ImmediateExecutionContext;
    using tensorflow::ImmediateExecutionTensorHandle;
    using tensorflow::string;
    using tensorflow::unwrap;
    using tensorflow::wrap;
    using tensorflow::strings::StrCat;
    
    TF_ExecutionContext* TF_NewEagerExecutionContext(TFE_ContextOptions* options,
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jun 25 04:40:46 UTC 2020
    - 3.2K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

      ~CustomDeviceAPI() override { device_.delete_device(info_); }
    
      const string& name() override { return name_; }
    
      absl::Status CopyTensorToDevice(
          ImmediateExecutionTensorHandle* handle,
          ImmediateExecutionTensorHandle** result) override {
        handle->Ref();
        TF_Status status;
        TFE_TensorHandle* result_handle = device_.copy_tensor_to_device(
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 43.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_experimental.cc

              tensorflow::down_cast<tensorflow::CustomDeviceTensorHandle*>(
                  unwrapped_handle);
          tensorflow::ImmediateExecutionTensorHandle* result;
          status->status = custom_device_handle->device()->Pack(
              absl::Span<tensorflow::ImmediateExecutionTensorHandle*>(
                  tensorflow::unwrap(handles), *num_handles),
              &result);
          return tensorflow::wrap(result);
        }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 35.9K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

        // devices limiting themselves to a C API (for ABI compatibility) would need
        // to implement summarization for component tensors themselves.
        ImmediateExecutionTensorHandle* component =
            tensorflow::unwrap(tensors_[component_index].get());
        std::string component_summary;
        TF_RETURN_IF_ERROR(component->SummarizeValue(component_summary));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 21 04:14:14 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  9. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TensorHandlePtr device_value = CreatePerDeviceValues(
          context.get(), components, device_name, status.get());
      ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
      ImmediateExecutionTensorHandle* unwrapped_handle =
          tensorflow::unwrap(device_value.get());
      std::string summarized;
      TF_ASSERT_OK(unwrapped_handle->SummarizeValue(summarized));
      EXPECT_THAT(summarized, HasSubstr("\"CPU:0\": 3"));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 06 23:56:17 UTC 2024
    - 29.4K bytes
    - Viewed (0)
Back to top