Home
last modified time | relevance | path

Searched refs:tf (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/third_party/curl/packages/vms/
Dconfig_h.com171 $ write tf ""
172 $ write tf -
174 $ write tf -
176 $ write tf -
180 $ write tf -
183 $ write tf -
361 $ write tf "#endif"
369 $ write tf "#ifndef ''key2'"
370 $ write tf "#define ''key2' 1"
371 $ write tf "#endif"
[all …]
/third_party/mindspore/tests/ut/python/mindrecord/
Dtest_tfrecord_to_mr.py29 tf = import_module("tensorflow") # just used to convert tfrecord to mindrecord variable
32 tf = None variable
66 if tf.__version__ < '2.0.0':
88 …feature = tf.train.Feature(int64_list=tf.train.Int64List(value=list(values))) # values: [int, int…
90 … feature = tf.train.Feature(int64_list=tf.train.Int64List(value=[values])) # values: int
95 …feature = tf.train.Feature(float_list=tf.train.FloatList(value=list(values))) # values: [float, f…
97 … feature = tf.train.Feature(float_list=tf.train.FloatList(value=[values])) # values: float
102 … feature = tf.train.Feature(bytes_list=tf.train.BytesList(value=[values])) # values: bytes
105 … feature = tf.train.Feature(bytes_list=tf.train.BytesList(value=[bytes(values, encoding='utf-8')]))
108 writer = tf.io.TFRecordWriter(os.path.join(TFRECORD_DATA_DIR, TFRECORD_FILE_NAME))
[all …]
/third_party/gstreamer/gstplugins_base/gst/typefind/
Dgsttypefindfunctions.c61 data_scan_ctx_advance (GstTypeFind * tf, DataScanCtx * c, guint bytes_to_skip) in data_scan_ctx_advance() argument
74 data_scan_ctx_ensure_data (GstTypeFind * tf, DataScanCtx * c, guint min_len) in data_scan_ctx_ensure_data() argument
83 data = gst_type_find_peek (tf, c->offset, chunk_len); in data_scan_ctx_ensure_data()
93 len = gst_type_find_get_length (tf); in data_scan_ctx_ensure_data()
100 data = gst_type_find_peek (tf, c->offset, len); in data_scan_ctx_ensure_data()
111 data_scan_ctx_memcmp (GstTypeFind * tf, DataScanCtx * c, guint offset, in data_scan_ctx_memcmp() argument
117 if (!data_scan_ctx_ensure_data (tf, c, offset + len)) in data_scan_ctx_memcmp()
124 static gboolean xml_check_first_element (GstTypeFind * tf,
126 static gboolean sdp_check_header (GstTypeFind * tf);
133 utf8_type_find_have_valid_utf8_at_offset (GstTypeFind * tf, guint64 offset, in utf8_type_find_have_valid_utf8_at_offset() argument
[all …]
/third_party/skia/src/core/
DSkColorSpacePriv.h42 static inline TFKind classify_transfer_fn(const skcms_TransferFunction& tf) { in classify_transfer_fn() argument
43 if (tf.g < 0 && (int)tf.g == tf.g) { in classify_transfer_fn()
45 switch ((int)tf.g) { in classify_transfer_fn()
54 if (sk_float_isfinite(tf.a + tf.b + tf.c + tf.d + tf.e + tf.f + tf.g) in classify_transfer_fn()
56 && tf.a >= 0 in classify_transfer_fn()
57 && tf.c >= 0 in classify_transfer_fn()
58 && tf.d >= 0 in classify_transfer_fn()
59 && tf.g >= 0 in classify_transfer_fn()
61 && tf.a * tf.d + tf.b >= 0) { in classify_transfer_fn()
/third_party/flutter/skia/src/utils/
DSkWhitelistTypefaces.cpp40 static int whitelist_name_index(const SkTypeface* tf) { in whitelist_name_index() argument
44 SkOTUtils::LocalizedStrings_NameTable::MakeForFamilyNames(*tf); in whitelist_name_index()
57 SkOTUtils::LocalizedStrings_NameTable::MakeForFamilyNames(*tf); in whitelist_name_index()
65 static uint32_t compute_checksum(const SkTypeface* tf) { in compute_checksum() argument
66 std::unique_ptr<SkFontData> fontData = tf->makeFontData(); in compute_checksum()
107 static bool is_local(const SkTypeface* tf) { in is_local() argument
110 tf->getFontDescriptor(&desc, &isLocal); in is_local()
114 static void serialize_full(const SkTypeface* tf, SkWStream* wstream) { in serialize_full() argument
117 tf->getFontDescriptor(&desc, &isLocal); in serialize_full()
121 desc.setFontData(tf->makeFontData()); in serialize_full()
[all …]
/third_party/boost/libs/multiprecision/test/
Dtest_cpp_bin_float_round.cpp36 test_type tf(f), tf2(f); in main() local
38 fr2 = tf.convert_to<float>(); in main()
42 tf = boost::math::float_next(tf2); in main()
44 BOOST_CHECK_NE(tf, tf2); in main()
46 fr2 = tf.convert_to<float>(); in main()
50 tf = boost::math::float_prior(tf2); in main()
52 BOOST_CHECK_NE(tf, tf2); in main()
54 fr2 = tf.convert_to<float>(); in main()
62 tf = tf2 += extra; in main()
64 fr2 = tf.convert_to<float>(); in main()
[all …]
/third_party/mindspore/mindspore/mindrecord/tools/
Dtfrecord_to_mr.py88 self.tf = import_module("tensorflow") # just used to convert tfrecord to mindrecord
92 if self.tf.__version__ < SupportedTensorFlowVersion:
115 if self.feature_dict[item].dtype != self.tf.string:
140 if not isinstance(val, self.tf.io.FixedLenFeature):
161 if val.dtype == self.tf.string:
170 features = self.tf.io.parse_single_example(example, features=self.feature_dict)
177 if self.feature_dict[key].dtype == self.tf.string:
195 if self.feature_dict[key].dtype == self.tf.string:
216 dataset = self.tf.data.TFRecordDataset(self.source)
219 with self.tf.Session() as sess:
[all …]
/third_party/gstreamer/gstreamer/tests/check/libs/
Dtypefindhelper.c36 static void foobar_typefind (GstTypeFind * tf, gpointer unused);
90 foobar_typefind (GstTypeFind * tf, gpointer unused) in foobar_typefind() argument
94 data = gst_type_find_peek (tf, 0, 10); in foobar_typefind()
98 data = gst_type_find_peek (tf, 0, 20); in foobar_typefind()
102 data = gst_type_find_peek (tf, 0, 30); in foobar_typefind()
106 fail_unless (gst_type_find_peek (tf, 0, 31) == NULL); in foobar_typefind()
107 fail_unless (gst_type_find_peek (tf, 1, 30) == NULL); in foobar_typefind()
108 fail_unless (gst_type_find_peek (tf, 25, 6) == NULL); in foobar_typefind()
110 data = gst_type_find_peek (tf, 1, 29); in foobar_typefind()
114 data = gst_type_find_peek (tf, 25, 4); in foobar_typefind()
[all …]
/third_party/icu/icu4c/source/test/perf/unisetperf/
Dunisetperf.cpp102 UBool tf=FALSE; in countSpans() local
104 i=span(s, length, i, tf); in countSpans()
105 tf=(UBool)(!tf); in countSpans()
109 int32_t span(const UChar *s, int32_t length, int32_t start, UBool tf) const { in span()
114 if(tf!=set.contains(c)) { in span()
184 UBool tf=FALSE; in call() local
186 i+=span(set, s+i, length-i, tf); in call()
187 tf=(UBool)(!tf); in call()
195 static int32_t span(const UnicodeSet &set, const UChar *s, int32_t length, UBool tf) { in span() argument
200 if(tf!=set.contains(c)) { in span()
[all …]
/third_party/musl/libc-test/src/math/
Dfpclassify.c11 } tf[] = { variable
92 for (i = 0; i < length(tf); i++) { in main()
93 if (fpclassify(tf[i].f) != tf[i].class) in main()
94 error(tf[i], fpclassify); in main()
95 if (!!isinf(tf[i].f) != (tf[i].class == FP_INFINITE)) in main()
96 error(tf[i], isinf); in main()
97 if (!!isnan(tf[i].f) != (tf[i].class == FP_NAN)) in main()
98 error(tf[i], isnan); in main()
99 if (!!isnormal(tf[i].f) != (tf[i].class == FP_NORMAL)) in main()
100 error(tf[i], isnormal); in main()
[all …]
/third_party/skia/third_party/skcms/
Dskcms.cc145 static TFKind classify(const skcms_TransferFunction& tf, TF_PQish* pq = nullptr in classify() argument
147 if (tf.g < 0 && (int)tf.g == tf.g) { in classify()
149 switch ((int)tf.g) { in classify()
150 case -PQish: if (pq ) { memcpy(pq , &tf.a, sizeof(*pq )); } return PQish; in classify()
151 case -HLGish: if (hlg) { memcpy(hlg, &tf.a, sizeof(*hlg)); } return HLGish; in classify()
152 case -HLGinvish: if (hlg) { memcpy(hlg, &tf.a, sizeof(*hlg)); } return HLGinvish; in classify()
158 if (isfinitef_(tf.a + tf.b + tf.c + tf.d + tf.e + tf.f + tf.g) in classify()
160 && tf.a >= 0 in classify()
161 && tf.c >= 0 in classify()
162 && tf.d >= 0 in classify()
[all …]
/third_party/mindspore/tests/perf_test/mindrecord/imagenet/
Dimagenet_to_tfrecord.py19 import tensorflow as tf namespace
76 feature = tf.train.Feature(int64_list=tf.train.Int64List(value=[values]))
81 … feature = tf.train.Feature(bytes_list=tf.train.BytesList(value=[bytes(values, encoding='utf-8')]))
86 feature = tf.train.Feature(bytes_list=tf.train.BytesList(value=[values]))
94 writers.append(tf.io.TFRecordWriter(output_file))
106 tf_example = tf.train.Example(features=tf.train.Features(feature=features))
Dperf_read_imagenet.py17 import tensorflow as tf namespace
79 'file_name': tf.io.FixedLenFeature([], tf.string),
80 'label': tf.io.FixedLenFeature([1], tf.int64),
81 'data': tf.io.FixedLenFeature([], tf.string)}
82 parsed_features = tf.io.parse_single_example(example_photo, features=features)
85 data_set = tf.data.TFRecordDataset(filenames=tfrecord,
/third_party/toybox/toys/pending/
Dsyslogd.c278 static int write_rotate(struct logfile *tf, int len) in write_rotate() argument
282 isreg = (!fstat(tf->logfd, &statf) && S_ISREG(statf.st_mode)); in write_rotate()
288 int i = strlen(tf->filename) + 3 + 1; in write_rotate()
293 sprintf(new_file, "%s.%d", tf->filename, i); in write_rotate()
295 sprintf(old_file, "%s.%d", tf->filename, --i); in write_rotate()
298 rename(tf->filename, new_file); in write_rotate()
299 unlink(tf->filename); in write_rotate()
300 close(tf->logfd); in write_rotate()
301 tf->logfd = open(tf->filename, O_CREAT | O_WRONLY | O_APPEND, 0666); in write_rotate()
302 if (tf->logfd < 0) { in write_rotate()
[all …]
/third_party/flutter/skia/third_party/skcms/
Dskcms.cc258 static bool tf_is_valid(const skcms_TransferFunction* tf) { in tf_is_valid() argument
260 if (!isfinitef_(tf->a + tf->b + tf->c + tf->d + tf->e + tf->f + tf->g)) { in tf_is_valid()
265 if (tf->a < 0 || tf->c < 0 || tf->d < 0 || tf->g < 0) { in tf_is_valid()
1411 float skcms_TransferFunction_eval(const skcms_TransferFunction* tf, float x) { in skcms_TransferFunction_eval() argument
1415 return sign * (x < tf->d ? tf->c * x + tf->f in skcms_TransferFunction_eval()
1416 : powf_(tf->a * x + tf->b, tf->g) + tf->e); in skcms_TransferFunction_eval()
1523 const skcms_TransferFunction* tf, in rg_nonlinear() argument
1529 c = tf->c, d = tf->d, f = tf->f; in rg_nonlinear()
1551 const skcms_TransferFunction* tf, in gauss_newton_step() argument
1597 float resid = rg_nonlinear(x,curve,tf,P, dfdP); in gauss_newton_step()
[all …]
/third_party/ltp/testcases/kernel/fs/fsx-linux/
Dfsx-linux.c422 struct test_file *tf = get_tf(); in get_fd() local
423 return tf->fd; in get_fd()
428 struct test_file *tf; in open_test_files() local
441 for (i = 0, tf = test_files; i < num_test_files; i++, tf++) { in open_test_files()
443 tf->path = argv[i]; in open_test_files()
444 tf->fd = open(tf->path, O_RDWR | (lite ? 0 : O_CREAT | O_TRUNC), in open_test_files()
446 if (tf->fd < 0) { in open_test_files()
447 prterr(tf->path); in open_test_files()
455 for (i = 0, tf = test_files; i < num_test_files; i++, tf++) in open_test_files()
456 prt("fd %d: %s\n", i, tf->path); in open_test_files()
[all …]
/third_party/gstreamer/gstreamer/libs/gst/check/
Dinternal-check.h195 #define tcase_add_test(tc,tf) tcase_add_test_raise_signal(tc,tf,0) argument
209 #define tcase_add_test_raise_signal(tc,tf,signal) \ argument
210 _tcase_add_test((tc),(tf),"" # tf "",(signal), 0, 0, 1)
224 #define tcase_add_exit_test(tc, tf, expected_exit_value) \ argument
225 _tcase_add_test((tc),(tf),"" # tf "",0,(expected_exit_value),0,1)
241 #define tcase_add_loop_test(tc,tf,s,e) \ argument
242 _tcase_add_test((tc),(tf),"" # tf "",0,0,(s),(e))
262 #define tcase_add_loop_test_raise_signal(tc,tf,signal,s,e) \ argument
263 _tcase_add_test((tc),(tf),"" # tf "",(signal),0,(s),(e))
283 #define tcase_add_loop_exit_test(tc,tf,expected_exit_value,s,e) \ argument
[all …]
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/
Dcheck.h195 #define tcase_add_test(tc,tf) tcase_add_test_raise_signal(tc,tf,0) argument
209 #define tcase_add_test_raise_signal(tc,tf,signal) \ argument
210 _tcase_add_test((tc),(tf),"" # tf "",(signal), 0, 0, 1)
224 #define tcase_add_exit_test(tc, tf, expected_exit_value) \ argument
225 _tcase_add_test((tc),(tf),"" # tf "",0,(expected_exit_value),0,1)
241 #define tcase_add_loop_test(tc,tf,s,e) \ argument
242 _tcase_add_test((tc),(tf),"" # tf "",0,0,(s),(e))
262 #define tcase_add_loop_test_raise_signal(tc,tf,signal,s,e) \ argument
263 _tcase_add_test((tc),(tf),"" # tf "",(signal),0,(s),(e))
283 #define tcase_add_loop_exit_test(tc,tf,expected_exit_value,s,e) \ argument
[all …]
/third_party/flutter/skia/src/core/
DSkColorSpaceXformSteps.cpp117 skcms_TransferFunction tf; in apply() local
118 memcpy(&tf, &srcTF, 7*sizeof(float)); in apply()
120 rgba[0] = skcms_TransferFunction_eval(&tf, rgba[0]); in apply()
121 rgba[1] = skcms_TransferFunction_eval(&tf, rgba[1]); in apply()
122 rgba[2] = skcms_TransferFunction_eval(&tf, rgba[2]); in apply()
133 skcms_TransferFunction tf; in apply() local
134 memcpy(&tf, &dstTFInv, 7*sizeof(float)); in apply()
136 rgba[0] = skcms_TransferFunction_eval(&tf, rgba[0]); in apply()
137 rgba[1] = skcms_TransferFunction_eval(&tf, rgba[1]); in apply()
138 rgba[2] = skcms_TransferFunction_eval(&tf, rgba[2]); in apply()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fLifetimeTests.cpp72 void draw (GLuint vao, GLfloat scale, bool tf, Surface* dst);
126 void ScaleProgram::draw (GLuint vao, GLfloat scale, bool tf, Surface* dst) in draw() argument
143 if (tf) in draw()
146 if (tf) in draw()
313 void attach (GLuint buffer, GLuint tf);
314 void detach (GLuint buffer, GLuint tf);
316 GLuint getAttachment (GLuint tf);
326 void BufferTfAttacher::attach (GLuint buffer, GLuint tf) in attach() argument
328 glBindTransformFeedback(GL_TRANSFORM_FEEDBACK, tf); in attach()
334 void BufferTfAttacher::detach (GLuint buffer, GLuint tf) in detach() argument
[all …]
/third_party/ffmpeg/libavcodec/
Dh264_picture.c46 int off = offsetof(H264Picture, tf) + sizeof(pic->tf); in ff_h264_unref_picture()
52 ff_thread_release_buffer(h->avctx, &pic->tf); in ff_h264_unref_picture()
72 av_assert0(src->tf.f == src->f); in ff_h264_ref_picture()
74 dst->tf.f = dst->f; in ff_h264_ref_picture()
75 ret = ff_thread_ref_frame(&dst->tf, &src->tf); in ff_h264_ref_picture()
147 dst->tf = &src->tf; in ff_h264_set_erpic()
183 ff_thread_report_progress(&h->cur_pic_ptr->tf, INT_MAX, in ff_h264_field_end()
/third_party/ffmpeg/libavfilter/
Dvf_fieldhint.c116 int64_t tf, bf; in filter_frame() local
138 } else if (sscanf(buf, "%"PRId64",%"PRId64" %c %c", &tf, &bf, &hint, &field) == 4) { in filter_frame()
140 } else if (sscanf(buf, "%"PRId64",%"PRId64" %c", &tf, &bf, &hint) == 3) { in filter_frame()
142 } else if (sscanf(buf, "%"PRId64",%"PRId64"", &tf, &bf) == 2) { in filter_frame()
150 … if (tf > outlink->frame_count_in + 1 || tf < FFMAX(0, outlink->frame_count_in - 1) || in filter_frame()
152 …PRId64" and/or %"PRId64" on line %"PRId64" for %"PRId64". input frame.\n", tf, bf, s->line, inlink… in filter_frame()
157 if (tf > 1 || tf < -1 || in filter_frame()
159 …PRId64" and/or %"PRId64" on line %"PRId64" for %"PRId64". input frame.\n", tf, bf, s->line, inlink… in filter_frame()
177 top = s->frame[tf - outlink->frame_count_in + 1]; in filter_frame()
181 top = s->frame[1 + tf]; in filter_frame()
/third_party/skia/gm/
Duserfont.cpp55 static sk_sp<SkTypeface> round_trip(sk_sp<SkTypeface> tf) { in round_trip() argument
56 auto data = tf->serialize(); in round_trip()
73 static sk_sp<SkTextBlob> make_blob(sk_sp<SkTypeface> tf, float size, float* spacing) { in make_blob() argument
74 SkFont font(tf); in make_blob()
88 auto waterfall = [&](sk_sp<SkTypeface> tf) { in onDraw() argument
96 auto blob = make_blob(tf, size, &spacing); in onDraw()
99 if (tf == nullptr) { in onDraw()
/third_party/lwip/test/unit/
Dlwip_check.h25 #define tcase_add_named_test(tc,tf) \ argument
26 _tcase_add_test((tc),(tf).func,(tf).name,0, 0, 0, 1)
34 #define tcase_add_named_test(tc,tf) tcase_add_test(tc,tf) argument
/third_party/boost/libs/core/test/
Dtest_lib_typeid.cpp13 boost::core::typeinfo const & tf = BOOST_CORE_TYPEID( float ); in main() local
18 BOOST_TEST( ti2 != tf ); in main()
23 BOOST_TEST( ti2.before( tf ) != tf.before( ti2 ) ); in main()

12345678910>>...14