| 373 | } |
| 374 | |
| 375 | void cg::add_workspace_output(OperatorNodeBase* opr) { |
| 376 | opr->add_output("workspace") |
| 377 | ->add_flag(VarNode::Flag::VOLATILE_CONTENT) |
| 378 | .add_flag(VarNode::Flag::ALLOW_EMPTY_SHAPE) |
| 379 | .dtype(dtype::Byte()); |
| 380 | } |
| 381 | |
| 382 | void cg::copy_shape_to_tensor_value(DeviceTensorND& dest, const TensorShape& shp) { |
| 383 | dest.comp_node(CompNode::default_cpu()) |
nothing calls this directly
no test coverage detected