Lines Matching refs:f
132 with open(filepath, "a") as f:
133 self.write_common_config(f, prefix)
135 f.write("#define {}_CH_MULT {}\n".format(prefix, self.channel_multiplier))
136 f.write("#define {}_INPUT_OFFSET {}\n".format(prefix, -self.input_zero_point))
137 f.write("#define {}_OUTPUT_OFFSET {}\n".format(prefix, self.output_zero_point))
138 f.write("#define {}_DILATION_X {}\n".format(prefix, self.dilation_x))
139 f.write("#define {}_DILATION_Y {}\n".format(prefix, self.dilation_y))
141 f.write("#define {}_FILTER_CH {}\n".format(prefix, self.filter_ch))
143 f.write("#define {}_PAD_X_WITH_OFFSET {}\n".format(prefix, self.pad_x_with_offset))
144 f.write("#define {}_PAD_Y_WITH_OFFSET {}\n".format(prefix, self.pad_y_with_offset))
409 raise RuntimeError(f"Dimension mismatch for {self.testdataset}")