We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1f48ac commit d385b4dCopy full SHA for d385b4d
arrayfire/util.py
@@ -75,12 +75,21 @@ def safe_call(af_error):
75
raise RuntimeError(to_str(err_str), af_error)
76
77
def get_version():
78
+ """
79
+ Function to get the version of arrayfire.
80
81
major=ct.c_int(0)
82
minor=ct.c_int(0)
83
patch=ct.c_int(0)
84
safe_call(backend.get().af_get_version(ct.pointer(major), ct.pointer(minor), ct.pointer(patch)))
85
return major.value,minor.value,patch.value
86
87
+def get_reversion():
88
89
+ Function to get the revision hash of the library.
90
91
+ return to_str(backend.get().af_get_revision())
92
+
93
to_dtype = {'f' : Dtype.f32,
94
'd' : Dtype.f64,
95
'b' : Dtype.b8,
0 commit comments