Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Min (0.14 sec)

  1. tensorflow/c/c_api.cc

            InvalidArgument("Attribute '", attr_name, "' is not a string");
        return;
      }
      if (max_length <= 0) {
        return;
      }
      const auto& s = attr->s();
      std::memcpy(value, s.data(), std::min<size_t>(s.length(), max_length));
    }
    
    void TF_OperationGetAttrStringList(TF_Operation* oper, const char* attr_name,
                                       void** values, size_t* lengths,
    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)
  2. ci/official/utilities/extract_resultstore_links.py

            break
          k -= 1
    
        # A low-effort attempt to find the bazel command that triggered the
        # invocation.
        bazel_comm_min_line_i = (previous_end_line if previous_end_line is not None
                                 else 0)
        while k > bazel_comm_min_line_i:
          backtrack_line = log_lines[k]
          # Don't attempt to parse multi-line commands broken up by backslashes
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_function.cc

                             TF_Status* status) {
      tensorflow::FunctionDefLibrary lib;
      {
        tensorflow::mutex_lock l(g->mu);
        lib = g->graph.flib_def().ToProto();
      }
      const auto len = std::min(max_func, static_cast<int>(lib.function_size()));
      for (int i = 0; i < len; ++i) {
        TF_Function* func = new TF_Function();
        func->record = new tensorflow::FunctionRecord(lib.function(i), {}, false);
        funcs[i] = func;
    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)
  4. tensorflow/c/c_api_test.cc

      if (!device.empty()) {
        LOG(INFO) << "Setting op Min on device " << device;
      }
      TF_Operation* min = MinWithDevice(feed, one, graph, device, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Run the graph.
      csession.SetInputs({{feed, Int32Tensor({3, 2, 5})}});
      csession.SetOutputs({min});
      csession.Run(s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

                            char* buffer, TF_Status* status) -> int64_t {
        int64_t bytes_transferred;
        if (offset < buf.size()) {
          size_t bytes_to_copy = std::min<size_t>(buf.size() - offset, n);
          memcpy(buffer, buf.data() + offset, bytes_to_copy);
          bytes_transferred = bytes_to_copy;
        } else {
          bytes_transferred = 0;
        }
        TF_SetStatus(status, TF_OK, "");
    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/eager/c_api_test.cc

    }
    
    TEST(CAPI, Execute_MatMul_CPU_Type_Error) {
      Execute_MatMul_CPU_Type_Error(false);
    }
    TEST(CAPI, Execute_MatMul_CPU_Type_ErrorAsync) {
      Execute_MatMul_CPU_Type_Error(true);
    }
    TEST(CAPI, Execute_Min_CPU) {
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_Context* ctx = TFE_NewContext(opts, status);
      CHECK_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)
  7. tensorflow/c/c_api_experimental.cc

        // false, it is safe to keep these flag values as is.
        tensorflow::MarkForCompilationPassFlags* flags =
            tensorflow::GetMarkForCompilationPassFlags();
        flags->tf_xla_cpu_global_jit = true;
        flags->tf_xla_min_cluster_size = 1;
      } else {
        optimizer_options->set_global_jit_level(tensorflow::OptimizerOptions::OFF);
      }
    }
    
    unsigned char TF_SetXlaEnableLazyCompilation(unsigned char enable) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.h

    TF_Operation* Add(TF_Output l, TF_Output r, TF_Graph* graph, TF_Status* s,
                      const char* name = "add");
    
    TF_Operation* Min(TF_Operation* l, TF_Operation* r, TF_Graph* graph,
                      TF_Status* s, const char* name = "min");
    
    TF_Operation* Mul(TF_Operation* l, TF_Operation* r, TF_Graph* graph,
                      TF_Status* s, const char* name = "mul");
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler.cc

      TF_SetStatus(status, TF_OK, "");
      const std::vector<std::string>& nodes =
          reinterpret_cast<const tensorflow::grappler::GrapplerItem*>(item)->fetch;
    
      const int len = std::min(num_values, static_cast<int>(nodes.size()));
      char* p = static_cast<char*>(storage);
      for (int index = 0; index < len; ++index) {
        const std::string& s = nodes[index];
        values[index] = p;
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 15K bytes
    - Viewed (1)
  10. tensorflow/c/c_test_util.cc

                                const string& op_device, TF_Status* s,
                                const char* name) {
      TF_Operation* op;
      BinaryOpHelper("Min", l, r, graph, s, name, &op, op_device, true);
      return op;
    }
    
    TF_Operation* Min(TF_Operation* l, TF_Operation* r, TF_Graph* graph,
                      TF_Status* s, const char* name) {
      return MinWithDevice(l, r, graph, /*op_device=*/"", s, name);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
Back to top