Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for loop (0.17 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

            lra_list_.erase(block->lra_iterator);
            lra_list_.push_front(key);
            block->lra_iterator = lra_list_.begin();
            block->timestamp = timer_seconds_();
          }
        }
      });
      // Loop until either block content is successfully fetched, or our request
      // encounters an error.
      absl::MutexLock l(&block->mu);
      TF_SetStatus(status, TF_OK, "");
      while (true) {
        switch (block->state) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

        if (new_node == nullptr) continue;
        parent->name_map[new_node->name()] = new_node;
      }
    
      // Populate 'outputs'.
      DCHECK_LE(loop_outputs.size(), num_loop_vars);
      for (int i = 0; i < loop_outputs.size(); ++i) {
        outputs[i] = {ToOperation(loop_outputs[i].node()), loop_outputs[i].index()};
      }
    }
    
    }  // namespace
    #endif  // !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD)
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_internal.h

          TF_GUARDED_BY(mu);
      bool delete_requested TF_GUARDED_BY(mu);  // set true by TF_DeleteGraph
    
      // Used to link graphs contained in TF_WhileParams to the parent graph that
      // will eventually contain the full while loop.
      TF_Graph* parent;
      TF_Output* parent_inputs;
    };
    
    struct TF_OperationDescription {
      TF_OperationDescription(TF_Graph* g, const char* op_type,
                              const char* node_name)
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat May 13 00:49:12 GMT 2023
    - 7.6K bytes
    - Viewed (0)
  4. tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc

      TensorHandlePtr combined_value = CreatePerDeviceValues(
          context.get(), in_components, device_name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      // Loop to make synchronization failures more deterministic
      for (int i = 0; i < 100; ++i) {
        TensorHandlePtr multiply_result(
            Multiply(context.get(), combined_value.get(), combined_value.get(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 22:09:57 GMT 2023
    - 6.7K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

          block_size, block_count * block_size, 0, fetcher);
      std::vector<char> out;
      out.resize(block_count, 0);
      // The cache has space for `block_count` blocks. The loop with i = 0 should
      // fill the cache, and the loop with i = 1 should be all cache hits. The
      // fetcher checks that it is called once and only once for each offset (to
      // fetch the corresponding block).
      for (int i = 0; i < 2; i++) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.h

      TF_Output cond_output;
    
      // The loop body graph. The inputs are the current values of the loop
      // variables. The outputs are the updated values of the loop variables.
      TF_Graph* const body_graph;
      const TF_Output* const body_inputs;
      TF_Output* const body_outputs;
    
      // Unique null-terminated name for this while loop. This is used as a prefix
      // for created operations.
      const char* name;
    } TF_WhileParams;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  7. tensorflow/c/eager/c_api.h

                                                            TF_Status* status);
    
    // Some TF ops need a step container to be set to limit the lifetime of some
    // resources (mostly TensorArray and Stack, used in while loop gradients in
    // graph mode). Calling this on a context tells it to start a step.
    TF_CAPI_EXPORT extern void TFE_ContextStartStep(TFE_Context* ctx);
    
    // Ends a step. When there is no active step (that is, every started step has
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  8. configure.py

      """
      var = environ_cp.get(var_name)
      if not var:
        var = get_input(ask_for_var)
        print('\n')
      if not var:
        var = var_default
      return var
    
    
    def prompt_loop_or_load_from_env(environ_cp,
                                     var_name,
                                     var_default,
                                     ask_for_var,
                                     check_success,
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_function_test.cc

      VerifyFDefOutputs(fdef, M({{"test_loop_exit"}}));
      VerifyFDefEdges(fdef,
                      {{"feed1", "test_loop/Enter:0"},
                       {"test_loop/Enter:output:0", "test_loop/Merge:0"},
                       {"test_loop/Merge:output:0", "test_loop/Switch:0"},
                       {"test_loop/Switch:output_false:0", "test_loop/Exit:0"},
                       {"test_loop/Exit:output:0", "test_loop_exit"}},
                      {}, false);
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  10. tensorflow/c/checkpoint_reader.h

      // Returns a map from variable names to their data types.  Slices of a
      // partitioned tensor are combined into a single entry.
      const TensorSliceReader::VarToDataTypeMap& GetVariableToDataTypeMap() const;
    
      // Attempts to look up the tensor named "name" and stores the found result in
      // "out_tensor".
      void GetTensor(const string& name,
                     std::unique_ptr<tensorflow::Tensor>* out_tensor,
                     TF_Status* out_status) const;
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 12 08:49:52 GMT 2023
    - 3.1K bytes
    - Viewed (0)
Back to top