Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 51 for var_ (0.04 sec)

  1. tensorflow/compiler/jit/variable_info.cc

    VariableInfo::VariableInfo(
        int index, absl::string_view name, Var* var,
        const std::optional<ManagedStackTrace>& definition_stack_trace)
        : index_(index),
          name_(name),
          var_(var),
          definition_stack_trace_(definition_stack_trace) {}
    
    VariableInfo::VariableInfo(VariableInfo&& other)
        : index_(other.index_),
          var_(other.var_),
          definition_stack_trace_(other.definition_stack_trace_),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/complit.go

    		}
    		appendWalkStmt(init, ir.NewAssignStmt(base.Pos, var_, r))
    
    		var_ = ir.NewStarExpr(base.Pos, var_)
    		var_ = typecheck.AssignExpr(var_)
    		anylit(n.X, var_, init)
    
    	case ir.OSTRUCTLIT, ir.OARRAYLIT:
    		n := n.(*ir.CompLitExpr)
    		if !t.IsStruct() && !t.IsArray() {
    			base.Fatalf("anylit: not struct/array")
    		}
    
    		if isSimpleName(var_) && len(n.List) > 4 {
    			// lay out static data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/codegen.cc

      const {{TYPE}}& var_{{NAME}}({{DIM_VARS}}) const {
        return (*static_cast<const {{TYPE}}(*){{DIM_SIZES}}>(
            arg_data({{I}}))){{INDICES}};
      }
      int var_{{NAME}}_size() const {
        return {{COUNT}} * sizeof({{TYPE}});
      }
      int var_{{NAME}}_count() const {
        return {{COUNT}};
      }
    )";
        const tf2xla::Variable& var = config.variable(i - config.feed_size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/assign.go

    	}
    	n.Rhs = []ir.Node{call}
    	n.SetOp(ir.OAS2FUNC)
    
    	// don't generate a = *var if a is _
    	if ir.IsBlank(a) {
    		return walkExpr(typecheck.Stmt(n), init)
    	}
    
    	var_ := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewPtr(t.Elem()))
    	var_.SetTypecheck(1)
    	var_.MarkNonNil() // mapaccess always returns a non-nil pointer
    
    	n.Lhs[0] = var_
    	init.Append(walkExpr(n, init))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/subst.go

    		}
    	}
    	return t
    }
    
    func (subst *subster) varList(in []*Var) (out []*Var, copied bool) {
    	out = in
    	for i, v := range in {
    		if w := subst.var_(v); w != v {
    			if !copied {
    				// first variable that got substituted => allocate new out slice
    				// and copy all variables
    				new := make([]*Var, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = w
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/go/types/subst.go

    		}
    	}
    	return t
    }
    
    func (subst *subster) varList(in []*Var) (out []*Var, copied bool) {
    	out = in
    	for i, v := range in {
    		if w := subst.var_(v); w != v {
    			if !copied {
    				// first variable that got substituted => allocate new out slice
    				// and copy all variables
    				new := make([]*Var, len(in))
    				copy(new, out)
    				out = new
    				copied = true
    			}
    			out[i] = w
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      call->set_requested_device(kXlaDeviceName);
      call->AddAttr(kXlaHasReferenceVarsAttr, false);
    
      auto var =
          ops::VarHandleOp(root.WithOpName("var"), DT_INT32, TensorShape({}));
      auto int32_on_device =
          ops::ReadVariableOp(root.WithOpName("int32_on_device"), var, DT_INT32);
    
      root.graph()->AddEdge(int32_on_device.node(), 0, call, 0);
    
      std::unique_ptr<Graph> graph;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/builtin.go

    		init.Append(typecheck.Stmt(nif))
    
    		t = types.NewArray(t.Elem(), i) // [r]T
    		var_ := typecheck.TempAt(base.Pos, ir.CurFunc, t)
    		appendWalkStmt(init, ir.NewAssignStmt(base.Pos, var_, nil))  // zero temp
    		r := ir.NewSliceExpr(base.Pos, ir.OSLICE, var_, nil, l, nil) // arr[:l]
    		// The conv is necessary in case n.Type is named.
    		return walkExpr(typecheck.Expr(typecheck.Conv(r, n.Type())), init)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/debug/elf/file_test.go

    			{"puts", 16, 0, 0, 0, 0, "", ""},
    		},
    	},
    }
    
    func TestOpen(t *testing.T) {
    	for i := range fileTests {
    		tt := &fileTests[i]
    
    		var f *File
    		var err error
    		if path.Ext(tt.file) == ".gz" {
    			var r io.ReaderAt
    			if r, err = decompress(tt.file); err == nil {
    				f, err = NewFile(r)
    			}
    		} else {
    			f, err = Open(tt.file)
    		}
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 60.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/hoist_loop_invariant.mlir

    // conditions are also hoisted (i.e., `tf.Add` and `tf.Mul`).
    // Another variable `%var2` which has a different resource handle is not
    // readonly.
    
    // CHECK-LABEL: readvariableop_is_hoisted_if_readonly2
    // CHECK:       [[CST_0:%.*]] = "tf.Const"
    // CHECK:       [[VAR_1:%.*]] = "tf.VarHandleOp"
    // CHECK-SAME:  "shared_name_var1"
    // CHECK:       [[VAR_2:%.*]] = "tf.VarHandleOp"
    // CHECK-SAME:  "shared_name_var2"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 22 17:12:02 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top