Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for fn (0.18 sec)

  1. tensorflow/c/c_api_function.cc

    // Performs various checks.
    Status ComputeBodyNodes(
        const TF_Graph* fn_body, const char* fn_name, int num_opers,
        const TF_Operation* const* opers,
        const std::unordered_map<const Node*, std::vector<int>>& input_nodes,
        std::vector<const Node*>* body_nodes)
        TF_EXCLUSIVE_LOCKS_REQUIRED(fn_body->mu) {
      if (num_opers == -1) {
        for (const Node* node : fn_body->graph.op_nodes()) {
          const auto& iter = input_nodes.find(node);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  2. tensorflow/c/eager/unified_api_testutil.cc

        }
    
        AbstractOperationPtr fn_op(ctx->CreateOperation());
        TF_RETURN_IF_ERROR(fn_op->Reset(fn_name, /*raw_device_name=*/nullptr));
        for (auto input : inputs) {
          TF_RETURN_IF_ERROR(fn_op->AddInput(input));
        }
        int retvals = outputs.size() - null_indices.size();
        std::vector<AbstractTensorHandle*> fn_outputs(retvals);
        TF_RETURN_IF_ERROR(fn_op->Execute(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. callbacks.go

    }
    
    func (p *processor) Register(name string, fn func(*DB)) error {
    	return (&callback{processor: p}).Register(name, fn)
    }
    
    func (p *processor) Remove(name string) error {
    	return (&callback{processor: p}).Remove(name)
    }
    
    func (p *processor) Replace(name string, fn func(*DB)) error {
    	return (&callback{processor: p}).Replace(name, fn)
    }
    
    func (p *processor) compile() (err error) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 8.6K bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/RequestBodyTest.kt

      private inline fun <T> assertOnFileDescriptor(
        content: String? = null,
        fn: (FileDescriptor) -> T,
      ): T {
        return assertOnPath(content) {
          FileInputStream(filePath.toFile()).use { fis ->
            fn(fis.fd)
          }
        }
      }
    
      private inline fun <T> assertOnPath(
        content: String? = null,
        fn: (okio.Path) -> T,
      ): T {
        FileSystem.SYSTEM.write(filePath) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  5. cmd/jwt_test.go

    	creds := globalActiveCred
    	b.Run("uncached", func(b *testing.B) {
    		fn := authenticateNode
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn(creds.AccessKey, creds.SecretKey, "aud")
    		}
    	})
    	b.Run("cached", func(b *testing.B) {
    		fn := newCachedAuthToken()
    		b.ResetTimer()
    		b.ReportAllocs()
    		for i := 0; i < b.N; i++ {
    			fn("aud")
    		}
    	})
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:14 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. docs/debugging/xl-meta/main.go

    					fn := fmt.Sprintf("%s-%s.data", file, name)
    					if c.Bool("combine") {
    						if name == "null" {
    							name = v0
    						}
    
    						f := filemap[file][name]
    						if f != "" {
    							fn = f + ".data"
    							err = os.MkdirAll(filepath.Dir(fn), os.ModePerm)
    							if err != nil {
    								fmt.Println("MkdirAll:", filepath.Dir(fn), err)
    							}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 17:56:22 GMT 2024
    - 20.2K bytes
    - Viewed (1)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

          level = Level.FINEST
        }
    
      private fun applyLogger(fn: Logger.() -> Unit) {
        Logger.getLogger(OkHttpClient::class.java.`package`.name).fn()
        Logger.getLogger(OkHttpClient::class.java.name).fn()
        Logger.getLogger(Http2::class.java.name).fn()
        Logger.getLogger(TaskRunner::class.java.name).fn()
        Logger.getLogger("javax.net.ssl").fn()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-decom.go

    		return errInvalidArgument
    	}
    
    	z.poolMetaMutex.Lock()
    	defer z.poolMetaMutex.Unlock()
    
    	fn := z.decommissionCancelers[idx]
    	if fn == nil {
    		// canceling a decommission before it started return an error.
    		return errDecommissionNotStarted
    	}
    
    	defer fn() // cancel any active thread.
    
    	if z.poolMeta.DecommissionCancel(idx) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.3K bytes
    - Viewed (1)
  9. cmd/os_unix.go

    		return consumed, nil, typ, err
    	}
    
    	return consumed, nameBuf[:nameLen], typ, nil
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    // the directory itself, if the dirPath doesn't exist this function doesn't return
    // an error.
    func readDirFn(dirPath string, fn func(name string, typ os.FileMode) error) error {
    	fd, err := openFileWithFD(dirPath, readMode, 0o666)
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/Striped64.java

       *
       * @param currentValue the current value (of either base or a cell)
       * @param newValue the argument from a user update call
       * @return result of the update function
       */
      abstract long fn(long currentValue, long newValue);
    
      /**
       * Handles cases of updates involving initialization, resizing, creating new Cells, and/or
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 11.5K bytes
    - Viewed (0)
Back to top