- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TensorSpecProto (0.31 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor.cc
// Empty TensorShape indicates a scalar. return mlir::TF::ShapeAttr::get(type.getContext(), ArrayRef<int64_t>()); } absl::StatusOr<TensorSpecProto> ConvertTypeToTensorSpecProto( const mlir::Type& type) { DataType dtype; TF_RETURN_IF_ERROR(ConvertToDataType(type, &dtype)); TensorSpecProto tensor_spec; tensor_spec.set_dtype(dtype); *tensor_spec.mutable_shape() = ConvertTypeToTensorShape(type).AsProto();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 20.5K bytes - Viewed (0)