Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Max (0.12 sec)

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

        EXPECT_EQ(got_n, want_n);
        calls++;
        memset(buffer, 'x', got_n);
        TF_SetStatus(status, TF_OK, "");
        return got_n;
      };
      // If block_size, max_bytes, or both are zero, or want_n is larger than
      // max_bytes the cache is a pass-through.
      tf_gcs_filesystem::RamFileBlockCache cache1(1, 0, 0, fetcher);
      tf_gcs_filesystem::RamFileBlockCache cache2(0, 1, 0, fetcher);
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      }
      const char* max_bytes_env = std::getenv(kMaxCacheSize);
      if (max_bytes_env && absl::SimpleAtoi(max_bytes_env, &value)) {
        max_bytes = static_cast<size_t>(value * 1024 * 1024);
      }
      const char* max_staleness_env = std::getenv(kMaxStaleness);
      if (max_staleness_env && absl::SimpleAtoi(max_staleness_env, &value)) {
        max_staleness = value;
      }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        TFE_Execute(matmul, &retvals[0], &num_retvals, status);
        CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
        if (state.iterations() >= state.max_iterations && async) {
          TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
          TFE_ExecutorWaitForAllPendingNodes(executor, status);
          ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  4. tensorflow/c/c_api.cc

      return {ToOperation(edge->src()), edge->src_output()};
    }
    
    void TF_OperationAllInputs(TF_Operation* oper, TF_Output* inputs,
                               int max_inputs) {
      for (auto* edge : oper->node.in_edges()) {
        if (edge->dst_input() >= 0 && edge->dst_input() < max_inputs) {
          inputs[edge->dst_input()] = {ToOperation(edge->src()),
                                       edge->src_output()};
        }
      }
    }
    
    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)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

                              /*expected_max_outputs=*/1, status.get());
      ASSERT_FALSE(TF_GetCode(status.get()) == TF_OK);
      TF_SetStatus(status.get(), TF_OK, "");
    
      // Check that ops still run successfully on the device.
      parallel_device.Execute(context.get(), std::vector<ParallelTensor*>(),
                              "VarHandleOp", TFE_OpGetAttrs(handle_op.get()),
                              /*expected_max_outputs=*/1, status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/c/BUILD

        srcs = ["c_api_test.cc"],
        data = [
            ":test_op1.so",
            "//tensorflow/cc/saved_model:saved_model_half_plus_two",
        ],
        linkopts = select({
            "//tensorflow:macos": ["-headerpad_max_install_names"],
            "//conditions:default": [],
        }),
        tags = [
            "no_cuda_asan",  # TODO(b/181771536)
            "no_windows",  # TODO(b/155444728)
        ],
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 18:00:18 GMT 2024
    - 30.3K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                            const TFE_OpAttrs* attributes, int expected_max_outputs,
                            TF_Status* status) const {
      std::vector<PartialTensorShape> expected_output_shapes(expected_max_outputs);
      StartExecute(context, inputs, operation_name, attributes,
                   expected_max_outputs, *default_cancellation_manager_);
      auto result = Join(expected_output_shapes, status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      while (n > 0) {
        // Some platforms, notably macs, throw `EINVAL` if `pread` is asked to read
        // more than fits in a 32-bit integer.
        size_t requested_read_length;
        if (n > INT32_MAX)
          requested_read_length = INT32_MAX;
        else
          requested_read_length = n;
    
        // `pread` returns a `ssize_t` on POSIX, but due to interface being
        // cross-platform, return type of `Read` is `int64_t`.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  9. tensorflow/c/c_api.h

    // an array of length at least `max_inputs` (ideally set to
    // TF_OperationNumInputs(oper)).  Beware that a concurrent
    // modification of the graph can increase the number of inputs of
    // an operation.
    TF_CAPI_EXPORT extern void TF_OperationAllInputs(TF_Operation* oper,
                                                     TF_Output* inputs,
                                                     int max_inputs);
    
    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)
  10. tensorflow/build_cleaner_spec.textproto

    action_spec {
      action: CHECK_FILE_COUNT
      file_count_params {
        rule_selector {
          rule_kind_regex: "^.*py(type)?(_strict)?_(binary|library|test).*$"
          generator_function_regex: "^(?!boq_header)$"
        }
        max_source_count: 1
      }
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 29 18:16:42 GMT 2023
    - 387 bytes
    - Viewed (0)
Back to top