Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsAligned (0.07 sec)

  1. test/typeparam/issue54497.go

    package testcase
    
    type C interface{ ~uint | ~uint32 | ~uint64 }
    
    func isAligned[T C](x, y T) bool { // ERROR "can inline isAligned\[uint\]" "can inline isAligned\[go\.shape\.uint\]" "inlining call to isAligned\[go\.shape\.uint\]"
    	return x%y == 0
    }
    
    func foo(x uint) bool { // ERROR "can inline foo"
    	return isAligned(x, 64) // ERROR "inlining call to isAligned\[go\.shape\.uint\]"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:26:40 UTC 2022
    - 618 bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor.cc

    Status TensorInterface::ToTensor(tensorflow::Tensor* dst) const {
      *dst = tensor_;
      return absl::OkStatus();
    }
    
    bool TensorInterface::IsAligned() const { return tensor_.IsAligned(); }
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. tensorflow/c/tensor_interface.h

      // Return size in bytes of the Tensor
      virtual size_t ByteSize() const = 0;
      // Returns a pointer to tensor data
      virtual void* Data() const = 0;
    
      // Returns if the tensor is aligned
      virtual bool IsAligned() const = 0;
      // Returns if their is sole ownership of this Tensor and thus it can be moved.
      virtual bool CanMove() const = 0;
    
      virtual std::string SummarizeValue() const = 0;
    
     protected:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 09 23:17:07 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. tensorflow/c/tf_tensor_internal.h

      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;
      bool CanMove() const override;
      std::string SummarizeValue() const override;
    
      void SetShape(const int64_t* dims, int num_dims);
      Status ToTensor(tensorflow::Tensor* dst) const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
Back to top