MCPcopy
hub / github.com/tensorflow/tfjs / buffer

Function buffer

tfjs-core/src/ops/buffer.ts:48–54  ·  view source on GitHub ↗
(
    shape: ShapeMap[R], dtype: D = 'float32' as D,
    values?: DataTypeMap[D])

Source from the content-addressed store, hash-verified

46 * @doc {heading: 'Tensors', subheading: 'Creation'}
47 */
48export function buffer<R extends Rank, D extends DataType = 'float32'>(
49 shape: ShapeMap[R], dtype: D = 'float32' as D,
50 values?: DataTypeMap[D]): TensorBuffer<R, D> {
51 dtype = dtype || 'float32' as D;
52 util.assertNonNegativeIntegerDimensions(shape);
53 return new TensorBuffer<R, D>(shape, dtype, values);
54}

Callers 15

bufferSyncMethod · 0.90
poolFunction · 0.90
maxPoolPositionsFunction · 0.90
pool3dFunction · 0.90
maxPool3dPositionsFunction · 0.90
cropAndResizeFunction · 0.90
bincountReduceImplFunction · 0.90
stridedSliceImplFunction · 0.90
gatherNdImplFunction · 0.90
diagFunction · 0.90
gatherV2ImplFunction · 0.90
avgPool3DGradFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…