Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 631 for _Assign (0.26 sec)

  1. finisher_api.go

    // FirstOrInit never modifies the database. It is often used with Assign and Attrs.
    //
    //	// assign an email if the record is not found
    //	db.Where(User{Name: "non_existing"}).Attrs(User{Email: "******@****.***"}).FirstOrInit(&user)
    //	// user -> User{Name: "non_existing", Email: "******@****.***"}
    //
    //	// assign email regardless of if record is found
    //	db.Where(User{Name: "jinzhu"}).Assign(User{Email: "******@****.***"}).FirstOrInit(&user)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Jan 12 08:42:21 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  2. test/fixedbugs/issue30087.go

    	var a, b = 1    // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
    	_ = 1, 2        // ERROR "assignment mismatch: 1 variable but 2 values|number of variables does not match|cannot assign"
    	c, d := 1       // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:07:00 UTC 2023
    - 734 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/coverage/cover.go

    	assign := callx
    	if pkid == coverage.NotHardCoded {
    		assign = typecheck.Stmt(ir.NewAssignStmt(pos, cnames.PkgIdVar, callx))
    	}
    
    	// Tack the call onto the start of our init function. We do this
    	// early in the init since it's possible that instrumented function
    	// bodies (with counter updates) might be inlined into init.
    	cnames.InitFn.Body.Prepend(assign)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/tests/saved_model/saved_model_test.cc

            in_specs.assign(sig_info.input_specs.begin(),
                            sig_info.input_specs.end());
            transform(sig_info.output_names, std::back_inserter(outputs),
                      [](llvm::StringRef x) { return x.str(); });
            out_specs.assign(sig_info.output_specs.begin(),
                             sig_info.output_specs.end());
            bound_inputs.assign(sig_info.bound_inputs.begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 13 01:17:29 UTC 2023
    - 9K bytes
    - Viewed (0)
  5. tests/prepared_stmt_test.go

    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestPreparedStmt(t *testing.T) {
    	tx := DB.Session(&gorm.Session{PrepareStmt: true})
    
    	if _, ok := tx.ConnPool.(*gorm.PreparedStmtDB); !ok {
    		t.Fatalf("should assign PreparedStatement Manager back to database when using PrepareStmt mode")
    	}
    
    	ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
    	defer cancel()
    	txCtx := tx.WithContext(ctx)
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Mar 21 07:55:43 UTC 2024
    - 4K bytes
    - Viewed (0)
  6. misc/wasm/wasm_exec_node.js

    globalThis.performance ??= require("performance");
    
    globalThis.crypto ??= require("crypto");
    
    require("./wasm_exec");
    
    const go = new Go();
    go.argv = process.argv.slice(2);
    go.env = Object.assign({ TMPDIR: require("os").tmpdir() }, process.env);
    go.exit = process.exit;
    WebAssembly.instantiate(fs.readFileSync(process.argv[2]), go.importObject).then((result) => {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:49:42 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. pilot/pkg/config/kube/gateway/testdata/invalid.status.yaml.golden

    spec: null
    status:
      conditions:
      - lastTransitionTime: fake
        message: Resource accepted
        reason: Accepted
        status: "True"
        type: Accepted
      - lastTransitionTime: fake
        message: 'Failed to assign to any requested addresses: hostname "fake-service.com"
          not found'
        reason: AddressNotUsable
        status: "False"
        type: Programmed
      listeners:
      - attachedRoutes: 0
        conditions:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 20:48:23 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/PortAllocator.groovy

     */
    
    package org.gradle.util.ports
    
    
    interface PortAllocator {
        public static final int MIN_PRIVATE_PORT = 49152
        public static final int MAX_PRIVATE_PORT = 65535
    
        /**
         * Assign and reserve a port
         * @return the port assigned
         */
        int assignPort()
    
        /**
         * Release a previously assigned port
         * @param port
         */
        void releasePort(int port)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 10 12:13:40 UTC 2015
    - 996 bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc

              LaunchToDeviceAttributePass> {
     public:
      explicit LaunchToDeviceAttributePass(bool legacy_graph_export) {
        legacy_graph_export_ = legacy_graph_export;
      }
    
      void runOnOperation() override;
    };
    
    // Assign all ops in region with specified device from launch.
    LogicalResult AssignDevicesInRegion(const Dialect* tf_dialect,
                                        tf_device::LaunchOp launch,
                                        Region& region) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

          testing::CreateTensorHandle(context(), dtype, shape_vector, 42);
      AbstractTensorPtr expected_tensor(expected_handle->Resolve(&status));
      TF_EXPECT_OK(status) << status.message();
    
      // Assign the tensorhandle to the variable.
      TF_EXPECT_OK(var->Assign(expected_handle.get()));
    
      // Read back the value from the variable
      ImmediateTensorHandlePtr output_handle;
      TF_EXPECT_OK(var->ReadValue(&output_handle));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top