license import { Tensor } from '../tensor' ; import { inferShape } from '../tensor_util_env' ; import { TensorLike } from '../types' ; import { DataType , Rank , ShapeMap } from '../types' ; import { makeTensor } from './tensor_ops_util' ; param values param shape param dtype doc export function tensor < R extends Rank > ( values , shape ? , dtype ? ) { const inferredShape = inferShape ( values , dtype ) ; return makeTensor ( values , shape , inferredShape , dtype ) as Tensor < R > ; }