Add convert_to_tensor to tensorflow (#11292)

This commit is contained in:
Hoël Bagard
2024-01-26 09:48:54 +09:00
committed by GitHub
parent b4f60ac5bf
commit 4fa759f12a

View File

@@ -406,3 +406,9 @@ class RaggedTensorSpec(TypeSpec[struct_pb2.TypeSpecProto]):
def from_value(cls, value: RaggedTensor) -> Self: ...
def __getattr__(name: str) -> Incomplete: ...
def convert_to_tensor(
value: _TensorCompatible | IndexedSlices,
dtype: _DTypeLike | None = None,
dtype_hint: _DTypeLike | None = None,
name: str | None = None,
) -> Tensor: ...