"examples/consistency_distillation/requirements.txt" did not exist on "e70cb1243f8a90c2d78d29db1a6a64cf9ba6c5cc"
convert.cpp 292 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "yaml-cpp/value.h"

namespace YAML
{
	template<>
	Value convert(const std::string& rhs) {
		return Value(rhs);
	}
	
	template<>
	bool convert(const Value& value, std::string& rhs) {
		if(value.Type() != ValueType::Scalar)
			return false;
		rhs = value.scalar();
		return true;
	}
}