MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / flatten_freq_time_python_order

Function flatten_freq_time_python_order

src/models/demucs/pipeline.cpp:354–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352 return out;
353}
354
355core::TensorValue flatten_freq_time_python_order(
356 core::ModuleBuildContext & ctx,
357 const core::TensorValue & input) {
358 auto x = modules::TransposeModule({{0, 1, 3, 2}, input.shape.rank}).build(ctx, input);
359 x = ensure_contiguous(ctx, x);
360 return core::reshape_tensor(
361 ctx,
362 x,
363 core::TensorShape::from_dims({input.shape.dims[0], input.shape.dims[1], input.shape.dims[2] * input.shape.dims[3]}));
364}
365
366core::TensorValue unflatten_freq_time_python_order(

Callers 1

rebuildMethod · 0.85

Calls 4

TransposeModuleClass · 0.85
reshape_tensorFunction · 0.85
ensure_contiguousFunction · 0.70
buildMethod · 0.45

Tested by

no test coverage detected