Home
last modified time | relevance | path

Searched refs:dt (Results 1 – 25 of 1238) sorted by relevance

12345678910>>...50

/external/python/dateutil/dateutil/tz/
D_common.py33 def enfold(dt, fold=1): argument
51 return dt.replace(fold=fold)
98 def enfold(dt, fold=1): argument
116 if getattr(dt, 'fold', 0) == fold:
117 return dt
119 args = dt.timetuple()[:6]
120 args += (dt.microsecond, dt.tzinfo)
134 def fromutc(self, dt): argument
135 if not isinstance(dt, datetime):
137 if dt.tzinfo is not self:
[all …]
Dtz.py69 def utcoffset(self, dt): argument
72 def dst(self, dt): argument
76 def tzname(self, dt): argument
79 def is_ambiguous(self, dt): argument
96 def fromutc(self, dt): argument
101 return dt
142 def utcoffset(self, dt): argument
145 def dst(self, dt): argument
149 def tzname(self, dt): argument
153 def fromutc(self, dt): argument
[all …]
/external/python/cpython2/Doc/includes/
Dtzinfo-examples.py11 def utcoffset(self, dt): argument
14 def tzname(self, dt): argument
17 def dst(self, dt): argument
33 def utcoffset(self, dt): argument
36 def tzname(self, dt): argument
39 def dst(self, dt): argument
56 def utcoffset(self, dt): argument
57 if self._isdst(dt):
62 def dst(self, dt): argument
63 if self._isdst(dt):
[all …]
/external/python/cpython3/Doc/includes/
Dtzinfo_examples.py23 def fromutc(self, dt): argument
24 assert dt.tzinfo is self
25 stamp = (dt - datetime(1970, 1, 1, tzinfo=self)) // SECOND
30 return datetime(*args, microsecond=dt.microsecond,
33 def utcoffset(self, dt): argument
34 if self._isdst(dt):
39 def dst(self, dt): argument
40 if self._isdst(dt):
45 def tzname(self, dt): argument
46 return _time.tzname[self._isdst(dt)]
[all …]
/external/tensorflow/tensorflow/core/framework/
Dtypes.cc116 bool DataTypeFromString(StringPiece sp, DataType* dt) { in DataTypeFromString() argument
121 *dt = static_cast<DataType>(non_ref + kDataTypeRefOffset); in DataTypeFromString()
129 *dt = DT_FLOAT; in DataTypeFromString()
132 *dt = DT_DOUBLE; in DataTypeFromString()
135 *dt = DT_INT32; in DataTypeFromString()
138 *dt = DT_UINT32; in DataTypeFromString()
141 *dt = DT_UINT8; in DataTypeFromString()
144 *dt = DT_UINT16; in DataTypeFromString()
147 *dt = DT_INT16; in DataTypeFromString()
150 *dt = DT_INT8; in DataTypeFromString()
[all …]
Dfake_input.cc34 void SetDataType(DataType dt);
41 Status GetDataType(DataType* dt) const;
42 void NSources(int n, DataType dt) const;
75 void FakeInputImpl::SetDataType(DataType dt) { in SetDataType() argument
77 dt_ = dt; in SetDataType()
93 DataType dt; in AddInputToBuilder() local
95 TF_RETURN_IF_ERROR(GetDataType(&dt)); in AddInputToBuilder()
97 dt = DT_FLOAT; in AddInputToBuilder()
100 NSources(n, dt); in AddInputToBuilder()
114 DataType dt; in AddInputToBuilder() local
[all …]
Dtypes_test.cc87 DataType dt; in TEST() local
88 ASSERT_TRUE(DataTypeFromString("int32", &dt)); in TEST()
89 EXPECT_EQ(DT_INT32, dt); in TEST()
90 ASSERT_TRUE(DataTypeFromString("int32_ref", &dt)); in TEST()
91 EXPECT_EQ(DT_INT32_REF, dt); in TEST()
92 EXPECT_FALSE(DataTypeFromString("int32_ref_ref", &dt)); in TEST()
93 EXPECT_FALSE(DataTypeFromString("foo", &dt)); in TEST()
94 EXPECT_FALSE(DataTypeFromString("foo_ref", &dt)); in TEST()
95 ASSERT_TRUE(DataTypeFromString("int64", &dt)); in TEST()
96 EXPECT_EQ(DT_INT64, dt); in TEST()
[all …]
/external/vixl/src/aarch32/
Dassembler-aarch32.h262 typedef void (Assembler::*InstructionDtQQ)(DataType dt,
347 typedef void (Assembler::*InstructionDtQQQ)(DataType dt,
368 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm);
370 Condition cond, DataType dt, QRegister rd, QRegister rn, QRegister rm);
372 Condition cond, DataType dt, QRegister rd, DRegister rn, DRegister rm);
374 DataType dt,
378 DataType dt,
382 DataType dt,
386 Condition cond, DataType dt, SRegister rd, SRegister rn, SRegister rm);
388 Condition cond, DataType dt, DRegister rd, QRegister rn, QRegister rm);
[all …]
Ddisasm-aarch32.cc837 DecodeNeon Index_1_Decode(uint32_t value, DataType dt) { in Index_1_Decode() argument
838 switch (dt.GetValue()) { in Index_1_Decode()
863 DecodeNeonAndAlign Align_index_align_1_Decode(uint32_t value, DataType dt) { in Align_index_align_1_Decode() argument
864 switch (dt.GetValue()) { in Align_index_align_1_Decode()
908 DecodeNeonAndAlign Align_index_align_2_Decode(uint32_t value, DataType dt) { in Align_index_align_2_Decode() argument
909 switch (dt.GetValue()) { in Align_index_align_2_Decode()
955 DecodeNeonAndAlign Align_index_align_3_Decode(uint32_t value, DataType dt) { in Align_index_align_3_Decode() argument
956 switch (dt.GetValue()) { in Align_index_align_3_Decode()
1004 Alignment Align_a_1_Decode(uint32_t value, DataType dt) { in Align_a_1_Decode() argument
1009 if (dt.Is(Untyped16)) return k16BitAlign; in Align_a_1_Decode()
[all …]
Ddisasm-aarch32.h155 DtPrinter(DataType dt, DataType default_dt) in DtPrinter() argument
156 : dt_(dt), default_dt_(default_dt) {} in DtPrinter()
159 friend std::ostream& operator<<(std::ostream& os, DtPrinter dt) {
160 if (dt.dt_.Is(dt.default_dt_)) return os;
161 return os << dt.dt_;
307 virtual DisassemblerStream& operator<<(const DtPrinter& dt) {
308 os_ << dt;
1449 Condition cond, DataType dt, DRegister rd, DRegister rn, DRegister rm);
1452 Condition cond, DataType dt, QRegister rd, QRegister rn, QRegister rm);
1455 Condition cond, DataType dt, QRegister rd, DRegister rn, DRegister rm);
[all …]
Dmacro-assembler-aarch32.h704 void Vldr(Condition cond, DataType dt, DRegister rd, RawLiteral* literal) { in Vldr() argument
712 bool can_encode = vldr_info(cond, dt, rd, literal, &info); in Vldr()
720 vldr(cond, dt, rd, literal); in Vldr()
723 void Vldr(DataType dt, DRegister rd, RawLiteral* literal) { in Vldr() argument
724 Vldr(al, dt, rd, literal); in Vldr()
733 void Vldr(Condition cond, DataType dt, SRegister rd, RawLiteral* literal) { in Vldr() argument
741 bool can_encode = vldr_info(cond, dt, rd, literal, &info); in Vldr()
749 vldr(cond, dt, rd, literal); in Vldr()
752 void Vldr(DataType dt, SRegister rd, RawLiteral* literal) { in Vldr() argument
753 Vldr(al, dt, rd, literal); in Vldr()
[all …]
Dassembler-aarch32.cc104 explicit Dt_L_imm6_1(DataType dt);
108 Dt_L_imm6_1::Dt_L_imm6_1(DataType dt) { in Dt_L_imm6_1() argument
109 switch (dt.GetValue()) { in Dt_L_imm6_1()
153 explicit Dt_L_imm6_2(DataType dt);
157 Dt_L_imm6_2::Dt_L_imm6_2(DataType dt) { in Dt_L_imm6_2() argument
158 switch (dt.GetValue()) { in Dt_L_imm6_2()
184 explicit Dt_L_imm6_3(DataType dt);
187 Dt_L_imm6_3::Dt_L_imm6_3(DataType dt) { in Dt_L_imm6_3() argument
188 switch (dt.GetValue()) { in Dt_L_imm6_3()
208 explicit Dt_L_imm6_4(DataType dt);
[all …]
/external/skqp/src/core/
DSkTime.cpp34 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime() argument
35 if (dt) { in GetDateTime()
38 dt->fTimeZoneMinutes = 0; in GetDateTime()
39 dt->fYear = st.wYear; in GetDateTime()
40 dt->fMonth = SkToU8(st.wMonth); in GetDateTime()
41 dt->fDayOfWeek = SkToU8(st.wDayOfWeek); in GetDateTime()
42 dt->fDay = SkToU8(st.wDay); in GetDateTime()
43 dt->fHour = SkToU8(st.wHour); in GetDateTime()
44 dt->fMinute = SkToU8(st.wMinute); in GetDateTime()
45 dt->fSecond = SkToU8(st.wSecond); in GetDateTime()
[all …]
/external/skia/src/core/
DSkTime.cpp34 void SkTime::GetDateTime(DateTime* dt) { in GetDateTime() argument
35 if (dt) { in GetDateTime()
38 dt->fTimeZoneMinutes = 0; in GetDateTime()
39 dt->fYear = st.wYear; in GetDateTime()
40 dt->fMonth = SkToU8(st.wMonth); in GetDateTime()
41 dt->fDayOfWeek = SkToU8(st.wDayOfWeek); in GetDateTime()
42 dt->fDay = SkToU8(st.wDay); in GetDateTime()
43 dt->fHour = SkToU8(st.wHour); in GetDateTime()
44 dt->fMinute = SkToU8(st.wMinute); in GetDateTime()
45 dt->fSecond = SkToU8(st.wSecond); in GetDateTime()
[all …]
/external/tensorflow/tensorflow/contrib/integrate/python/ops/
Dodes.py90 dt, argument
112 with ops.name_scope(name, 'runge_kutta_step', [y0, f0, t0, dt]) as scope:
116 dt = ops.convert_to_tensor(dt, name='dt')
117 dt_cast = math_ops.cast(dt, y0.dtype)
121 ti = t0 + alpha_i * dt
136 def _interp_fit(y0, y1, y_mid, f0, f1, dt): argument
166 a = _dot_product([-2 * dt, 2 * dt, -8, -8, 16], [f0, f1, y0, y1, y_mid])
167 b = _dot_product([5 * dt, -3 * dt, 18, 14, -32], [f0, f1, y0, y1, y_mid])
168 c = _dot_product([-4 * dt, dt, -11, -5, 16], [f0, f1, y0, y1, y_mid])
169 d = dt * f0
[all …]
/external/u-boot/drivers/rtc/
Drs5c372.c118 rs5c372_convert_to_time(struct rtc_time *dt, unsigned char *buf) in rs5c372_convert_to_time() argument
121 dt->tm_sec = bcd2bin(buf[1]); in rs5c372_convert_to_time()
122 dt->tm_min = bcd2bin(buf[2]); in rs5c372_convert_to_time()
125 dt->tm_hour = HOURS_12(buf[3]); in rs5c372_convert_to_time()
127 dt->tm_hour += 12; in rs5c372_convert_to_time()
129 dt->tm_hour = HOURS_24(buf[3]); in rs5c372_convert_to_time()
131 dt->tm_mday = bcd2bin(buf[5]); in rs5c372_convert_to_time()
132 dt->tm_mon = bcd2bin(buf[6]); in rs5c372_convert_to_time()
133 dt->tm_year = bcd2bin(buf[7]); in rs5c372_convert_to_time()
134 if (dt->tm_year >= 70) in rs5c372_convert_to_time()
[all …]
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_from_tensor_op_test.py38 dt = constant_op.constant([[5, 7, 0], [0, 3, 0], [6, 0, 0]])
40 RaggedTensor.from_tensor(dt), [[5, 7, 0], [0, 3, 0], [6, 0, 0]])
43 RaggedTensor.from_tensor(dt, lengths=[1, 0, 3]), [[5], [], [6, 0, 0]])
46 RaggedTensor.from_tensor(dt, padding=0), [[5, 7], [0, 3], [6]])
313 dt = constant_op.constant(tensor)
315 rt = RaggedTensor.from_tensor(dt, lengths, padding, ragged_rank)
317 rt = RaggedTensor.from_tensor(dt, lengths, padding)
321 dt.shape.is_compatible_with(rt.shape),
322 '%s is incompatible with %s' % (dt.shape, rt.shape))
328 dt = array_ops.reshape(
[all …]
/external/blktrace/btt/
Dp_live.c27 __u64 dt, ct; member
64 static inline int inside(struct p_live *plp, __u64 dt, __u64 ct) in inside() argument
66 if (plp->dt <= dt && dt <= plp->ct) in inside()
68 if (plp->dt <= ct && ct <= plp->ct) in inside()
70 if (dt < plp->dt && plp->ct < ct) in inside()
75 static void __p_live_add(struct rb_root *root, __u64 dt, __u64 ct) in __p_live_add() argument
85 if (inside(plp, dt, ct)) { in __p_live_add()
88 __p_live_add(root, min(plp->dt, dt), max(plp->ct, ct)); in __p_live_add()
93 if (ct < plp->dt) in __p_live_add()
100 plp->dt = dt; in __p_live_add()
[all …]
/external/u-boot/dts/
DMakefile23 $(obj)/dt-spl.dtb: $(DTB) $(objtree)/tools/fdtgrep FORCE
26 $(obj)/dt.dtb: $(DTB) FORCE
29 targets += dt.dtb dt-spl.dtb
46 .SECONDARY: $(obj)/dt.dtb.S $(obj)/dt-spl.dtb.S
50 obj-$(CONFIG_OF_EMBED) := dt-spl.dtb.o
52 $(obj)/dt-spl.dtb.o: $(obj)/dt-spl.dtb.S FORCE
55 obj-$(CONFIG_OF_EMBED) := dt.dtb.o
58 dtbs: $(obj)/dt.dtb $(obj)/dt-spl.dtb
61 clean-files := dt.dtb.S dt-spl.dtb.S
/external/tensorflow/tensorflow/python/kernel_tests/random/
Drandom_ops_test.py82 for dt in dtypes.float16, dtypes.float32, dtypes.float64:
83 sampler = self._Sampler(1000, 0.0, 1.0, dt, use_gpu=True)
98 for dt in dtypes.float16, dtypes.float32, dtypes.float64:
102 1000000, 0.0, 1.0, dt, use_gpu=use_gpu, seed=12345)
104 if dt == dtypes.float16:
111 for dt in dtypes.float16, dtypes.float32, dtypes.float64:
112 sx = self._Sampler(1000, 0.0, 1.0, dt, use_gpu=True, seed=345)
113 sy = self._Sampler(1000, 0.0, 1.0, dt, use_gpu=True, seed=345)
129 for dt in dtypes.float16, dtypes.float32, dtypes.float64:
131 random_ops.random_normal, 100, dt, 0.0, 1.0, use_gpu=use_gpu)
[all …]
/external/python/dateutil/dateutil/test/
Dtest_isoparser.py50 def test_year_only(dt): argument
51 dtstr = dt.strftime('%Y')
53 assert isoparse(dtstr) == dt
57 def test_year_month(dt): argument
59 dtstr = dt.strftime(fmt)
61 assert isoparse(dtstr) == dt
67 def test_year_month_day(dt, fmt): argument
68 dtstr = dt.strftime(fmt)
70 assert isoparse(dtstr) == dt
72 def _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset, argument
[all …]
/external/python/cpython3/Lib/test/
Ddatetimetester.py121 def utcoffset(self, dt): argument
123 def tzname(self, dt): argument
125 def dst(self, dt): argument
153 dt = datetime.max
154 self.assertRaises(NotImplementedError, useless.tzname, dt)
155 self.assertRaises(NotImplementedError, useless.utcoffset, dt)
156 self.assertRaises(NotImplementedError, useless.dst, dt)
167 dt = datetime.now()
168 self.assertRaises(NotImplementedError, ne.tzname, dt)
169 self.assertRaises(NotImplementedError, ne.utcoffset, dt)
[all …]
/external/dng_sdk/source/
Ddng_date_time.cpp705 dng_date_time dt; in CurrentDateTimeAndZone() local
707 dt.fYear = t.tm_year + 1900; in CurrentDateTimeAndZone()
708 dt.fMonth = t.tm_mon + 1; in CurrentDateTimeAndZone()
709 dt.fDay = t.tm_mday; in CurrentDateTimeAndZone()
710 dt.fHour = t.tm_hour; in CurrentDateTimeAndZone()
711 dt.fMinute = t.tm_min; in CurrentDateTimeAndZone()
712 dt.fSecond = t.tm_sec; in CurrentDateTimeAndZone()
714 info.SetDateTime (dt); in CurrentDateTimeAndZone()
752 void DecodeUnixTime (uint32 unixTime, dng_date_time &dt) in DecodeUnixTime() argument
779 dt.Clear (); in DecodeUnixTime()
[all …]
Ddng_date_time.h82 bool operator== (const dng_date_time &dt) const
84 return fYear == dt.fYear &&
85 fMonth == dt.fMonth &&
86 fDay == dt.fDay &&
87 fHour == dt.fHour &&
88 fMinute == dt.fMinute &&
89 fSecond == dt.fSecond;
94 bool operator!= (const dng_date_time &dt) const
96 return !(*this == dt);
242 void SetDateTime (const dng_date_time &dt) in SetDateTime() argument
[all …]
/external/libxml2/result/HTML/
Dtest3.html.sax34 SAX.startElement(dt)
39 SAX.endElement(dt)
42 SAX.startElement(dt)
47 SAX.endElement(dt)
50 SAX.startElement(dt)
54 SAX.endElement(dt)
75 SAX.startElement(dt)
82 SAX.endElement(dt)
85 SAX.startElement(dt)
92 SAX.endElement(dt)
[all …]

12345678910>>...50