mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
New gitter link added or replaced (#8551)
* New gitter link added * ruff==0.0.258 * noqa: S310 * noqa: S310 * Update ruff.yml * Add Ruff rule S311 * Ruff v0.0.259 * return ("{:08x}" * 5).format(*self.h) * pickle.load(f) # noqa: S301 --------- Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
@ -77,7 +77,7 @@ class CNN:
|
||||
def read_model(cls, model_path):
|
||||
# read saved model
|
||||
with open(model_path, "rb") as f:
|
||||
model_dic = pickle.load(f)
|
||||
model_dic = pickle.load(f) # noqa: S301
|
||||
|
||||
conv_get = model_dic.get("conv1")
|
||||
conv_get.append(model_dic.get("step_conv1"))
|
||||
|
Reference in New Issue
Block a user