Skip to content

Latest commit

 

History

History
11 lines (11 loc) · 380 Bytes

placeholder.md

File metadata and controls

11 lines (11 loc) · 380 Bytes

Placeholder

Inserts a placeholder for a tensor that will be always fed. Placeholder is used to build the model.

Example

dw::Placeholder in(dw::Shape{32, 100});
dw::Placeholder out = dw::Linear(50, "linear_0")(in);
                out = dw::ReLU("relu_1")(out);
                out = dw::Linear(10, "linear_2")(out);
                out = dw::Softmax("probs")(out);