Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 24 of 24 for numBits (0.12 sec)

  1. tensorflow/c/eager/c_api_debug.cc

    namespace {
    
    std::vector<int64_t> TensorShapeAsVector(const tensorflow::TensorHandle& handle,
                                             tensorflow::Status* status) {
      std::vector<int64_t> shape;
      int rank = -1;
      *status = handle.NumDims(&rank);
      if (!status->ok()) {
        return shape;
      }
      shape.reserve(rank);
      for (int i = 0; i < rank; ++i) {
        int64_t dim;
        *status = handle.Dim(i, &dim);
        if (!status->ok()) {
          return shape;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/constant_loading_test.cc

      TF_EXPECT_OK(status) << "Failed to convert tensorhandle to tensor";
      EXPECT_EQ(revived_tensor->Type(), expected.dtype());
      EXPECT_EQ(revived_tensor->NumElements(), expected.NumElements());
      EXPECT_EQ(revived_tensor->NumDims(), expected.dims());
      for (int i = 0; i < expected.dims(); ++i) {
        EXPECT_EQ(revived_tensor->Dim(i), expected.dim_size(i));
      }
    
      testing::CheckBufferDataIsEqual(expected.dtype(), expected.NumElements(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  3. tensorflow/c/tf_tensor_internal.h

      TensorInterface() {}
      explicit TensorInterface(tensorflow::Tensor t) : tensor_(std::move(t)) {}
      ~TensorInterface() override {}
    
      void Release() override;
    
      DataType Type() const override;
      int NumDims() const override;
      int64_t Dim(int dim_index) const override;
      int64_t NumElements() const override;
      size_t ByteSize() const override;
      void* Data() const override;
      bool IsAligned() const override;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/immediate_execution_tensor_handle.h

    // is needed a static_cast can be applied.
    class ImmediateExecutionTensorHandle : public AbstractTensorHandle {
     public:
      // Returns number of dimensions.
      virtual Status NumDims(int* num_dims) const = 0;
      // Returns number of elements across all dimensions.
      virtual Status NumElements(int64_t* num_elements) const = 0;
      // Returns size of specified dimension
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 10 21:56:24 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top