Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToTensor (0.14 sec)

  1. tensorflow/c/tf_tensor.cc

    }
    
    Status TF_TensorToTensor(const TF_Tensor* src, Tensor* dst) {
      return tensorflow::down_cast<const tensorflow::TensorInterface*>(src->tensor)
          ->ToTensor(dst);
    }
    
    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)
  2. tensorflow/c/tf_tensor_internal.h

      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;
      Status BitcastFrom(const TensorInterface& from, DataType type,
                         const int64_t* new_dims, int num_new_dims);
      Status FromProto(const tensorflow::TensorProto& from);
    
    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