Expose ir::Value::try_from_initializer method

This commit is contained in:
Chunmyong Park
2020-06-27 09:38:38 +00:00
parent 56aabbe35d
commit c3237276dc

View File

@@ -227,7 +227,7 @@ impl Value {
Ok(value)
}
fn try_from_initializer(
pub fn try_from_initializer(
initializer: &ast::Initializer,
dtype: &Dtype,
structs: &HashMap<String, Option<Dtype>>,