mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add convert_to_tensor to tensorflow (#11292)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user