File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,14 +46,13 @@ def asarray(
46
46
dtype : Optional [DType ] = None ,
47
47
order : Optional [str ] = None ,
48
48
like : Any = None ,
49
+ device : Optional [str ] = None ,
49
50
copy : bool = False ,
50
51
) -> EagerTensor :
51
52
"""
52
53
Converts anything into an array.
53
54
"""
54
- """
55
- Converts anything into an array.
56
- """
55
+ assert device is None , f"asarray not implemented yet for device={ device !r} "
57
56
if order not in ("C" , None ):
58
57
raise NotImplementedError (f"asarray is not implemented for order={ order !r} ." )
59
58
if like is not None :
Original file line number Diff line number Diff line change @@ -281,7 +281,8 @@ def astype(
281
281
to = DType (TensorProto .STRING )
282
282
else :
283
283
raise TypeError (f"dtype must of type DType, not { type (dtype )} -{ dtype } ." )
284
- return var (a , op = "Cast" , to = to .code )
284
+ return var (a , op = "Cast" , to = to .code )
285
+ return var (a , op = "Cast" , to = dtype .code )
285
286
286
287
287
288
@npxapi_inline
You can’t perform that action at this time.
0 commit comments