MCPcopy Create free account
hub / github.com/davisking/dlib / embeddings

Function embeddings

dlib/cuda/tensor_tools.cpp:1563–1576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1561// ----------------------------------------------------------------------------------------
1562
1563 void embeddings(
1564 resizable_tensor& dest,
1565 const tensor& src,
1566 const tensor& embs
1567 )
1568 {
1569 IF_DLIB_USE_CUDA(
1570 cuda::embeddings(dest, src, embs);
1571 )
1572
1573 IF_DLIB_NOT_USE_CUDA(
1574 cpu::embeddings(dest, src, embs);
1575 )
1576 }
1577
1578 void embeddings_gradient(
1579 const tensor& prev,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected