MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / updateShape

Method updateShape

src/fastertransformer/utils/Tensor.h:290–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288 }
289
290 void updateShape(size_t idx, size_t val)
291 {
292 // TODO: find a better way to update the shape
293 std::vector<size_t>& shape_ref = const_cast<std::vector<size_t>&>(shape);
294 shape_ref[idx] = val;
295 }
296
297 Tensor slice(std::vector<size_t> shape, size_t offset = 0) const;
298

Callers 1

setOutputTensorsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected