- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for IsTuple (0.31 sec)
-
src/cmd/compile/internal/ssa/flagalloc.go
continue } b.Values[i] = v i++ } b.truncateValues(i) } } func (v *Value) clobbersFlags() bool { if opcodeTable[v.Op].clobberFlags { return true } if v.Type.IsTuple() && (v.Type.FieldType(0).IsFlags() || v.Type.FieldType(1).IsFlags()) { // This case handles the possibility where a flag value is generated but never used.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 31 21:41:20 UTC 2022 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_launch_util.cc
bool use_multiple_streams, std::shared_ptr<se::Event> definition_event) { xla::ShapeIndex output_index = input_output_alias.shape().IsTuple() ? xla::ShapeIndex({output_num}) : xla::ShapeIndex({}); CHECK(input_output_alias.shape().IsTuple() || output_num == 0); if (std::optional<xla::HloInputOutputAliasConfig::Alias> alias =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 40.4K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tpu_device.cc
// If the representation is a tuple, we also must wait for the tuple index // buffers to be available on the destination host to device transfer // stream. if (xla_output->shaped_buffer().on_device_shape().IsTuple()) { TF_RETURN_IF_ERROR(dst_xla_context->host_to_device_stream()->WaitFor( dst_compute_stream)); } } for (const auto& leaf : xla_input->shaped_buffer().buffers().leaves()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc
compilation_result->computation->GetProgramShape(); TF_RET_CHECK(program_shape_or_status.ok()); xla::ProgramShape& program_shape = program_shape_or_status.value(); if (!program_shape.result().IsTuple()) return errors::Internal("Expect result to have tuple shape"); xla::HloInputOutputAliasConfig config(program_shape.result()); for (auto alias : output_to_input_alias) { if (use_tuple_args) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 14K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/nilcheck.go
u.Pos = v.Pos } else if v.Pos.IsStmt() == src.PosIsStmt { pendingLines.add(v.Pos) } v.reset(OpUnknown) firstToRemove = i continue } if v.Type.IsMemory() || v.Type.IsTuple() && v.Type.FieldType(1).IsMemory() { if v.Op == OpVarLive || (v.Op == OpVarDef && !v.Aux.(*ir.Name).Type().HasPointers()) { // These ops don't really change memory. continue
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:45:54 UTC 2023 - 11.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/schedule.go
sort.Sort(bySourcePos(order[start:])) } } return order } // isFlagOp reports if v is an OP with the flag type. func (v *Value) isFlagOp() bool { if v.Type.IsFlags() || v.Type.IsTuple() && v.Type.FieldType(1).IsFlags() { return true } // PPC64 carry generators put their carry in a non-flag-typed register // in their output. switch v.Op {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 15:53:17 UTC 2024 - 16.4K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/loopreschedchecks.go
b.Fatalf("no last store found - cycle?") } // If this is a tuple containing a mem, select just // the mem. This will generate ops we don't need, but // it's the easiest thing to do. if last.Type.IsTuple() { last = b.NewValue1(last.Pos, OpSelect1, types.TypeMem, last) } else if last.Type.IsResults() { last = b.NewValue1I(last.Pos, OpSelectN, types.TypeMem, int64(last.Type.NumFields()-1), last) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 22 21:17:10 UTC 2023 - 16K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/check.go
} } } memCheck(f) } func memCheck(f *Func) { // Check that if a tuple has a memory type, it is second. for _, b := range f.Blocks { for _, v := range b.Values { if v.Type.IsTuple() && v.Type.FieldType(0).IsMemory() { f.Fatalf("memory is first in a tuple: %s\n", v.LongString()) } } } // Single live memory checks. // These checks only work if there are no memory copies.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 16:41:23 UTC 2024 - 17.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/regalloc.go
} } } return true } // needRegister reports whether v needs a register. func (v *Value) needRegister() bool { return !v.Type.IsMemory() && !v.Type.IsVoid() && !v.Type.IsFlags() && !v.Type.IsTuple() } func (s *regAllocState) init(f *Func) { s.f = f s.f.RegAlloc = s.f.Cache.locs[:0] s.registers = f.Config.registers
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 17:49:56 UTC 2023 - 87.2K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
return true } } return false } func (t *Type) IsFlags() bool { return t == TypeFlags } func (t *Type) IsVoid() bool { return t == TypeVoid } func (t *Type) IsTuple() bool { return t.kind == TTUPLE } func (t *Type) IsResults() bool { return t.kind == TRESULTS } // IsUntyped reports whether t is an untyped type. func (t *Type) IsUntyped() bool { if t == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0)