from cs231n.fast_layers import conv_forward_fast, conv_backward_fast
out_fast, cache_fast = conv_forward_fast(x, w, b, conv_param)
如何使用命令查找conv_forward_fast
函数的位置?
答案 0 :(得分:2)
你可以
import cs231n.fast_layers as path
print(path)
它将显示库的路径。
答案 1 :(得分:0)
在Python 2.x中:
from os.path import join
path_to_module = __import__(join.__module__).__file__