(obj: any)
| 277 | */ |
| 278 | // tslint:disable-next-line:no-any |
| 279 | export function canTensorify(obj: any): boolean { |
| 280 | return obj == null || isPrimitive(obj) || Array.isArray(obj) || |
| 281 | (typeof obj === 'object' && (obj instanceof tf.Tensor)) || |
| 282 | tf.util.isTypedArray(obj); |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Returns true if the given `value` is a primitive type. Otherwise returns |
no test coverage detected
searching dependent graphs…