Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Sample (0.45 sec)

  1. tensorflow/c/eager/custom_device_test.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // A simple logging device to test custom device registration.
    #include <memory>
    
    #include "absl/strings/match.h"
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/eager/c_api.h"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/custom_device_testutil.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // A simple logging device to test custom device registration.
    #include <memory>
    
    #include "tensorflow/c/c_api.h"
    #include "tensorflow/c/eager/c_api.h"
    #include "tensorflow/c/eager/c_api_experimental.h"
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Mar 03 20:47:31 GMT 2021
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_experimental.cc

      tsl::Set_TF_Status_from_Status(status, result->sampler->GetStatus());
      if (!result->sampler->GetStatus().ok()) {
        delete result;
        return nullptr;
      }
      return result;
    }
    
    void TFE_MonitoringDeleteSampler0(TFE_MonitoringSampler0* sampler) {
      delete sampler;
    }
    
    TFE_MonitoringSamplerCell* TFE_MonitoringGetCellSampler0(
        TFE_MonitoringSampler0* sampler) {
      return static_cast<TFE_MonitoringSamplerCell*>(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  4. tensorflow/c/eager/c_api.cc

    }
    
    // Set server_def on the context, possibly updating it.
    // TODO(b/291142876) Simplify TFE_ContextSetServerDefWithTimeoutAndRetries and
    // TFE_ContextUpdateServerDefWithTimeout to be simple wrappers around the same
    // C++ function.
    // Retries are used for CreateContext calls, which is used in
    // ParameterServerStrategy initialization to be robust to worker preemption.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  5. tensorflow/c/eager/c_api_experimental_test.cc

      TF_Status* status = TF_NewStatus();
      auto* buckets = TFE_MonitoringNewExponentialBuckets(1.0, 2.0, 2);
      auto* sampler =
          TFE_MonitoringNewSampler0("test/sampler", buckets, status, "test");
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      auto* cell = TFE_MonitoringGetCellSampler0(sampler);
      TFE_MonitoringSamplerCellAdd(cell, 1.0);
      auto* collection_registry = monitoring::CollectionRegistry::Default();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  6. tensorflow/c/eager/c_api_unified_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      TFE_DeleteContextOptions(opts);
    
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      /* Want to test simple MatMul example:
        [[0,0],    *   [[0,0],    =   [[0,0],
         [0,0]]         [0,0]]         [0,0]]
      */
    
      // Build an abstract input tensor.
      int64_t dims[] = {2, 2};  // Matrices will be 2 x 2
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

      // Write {0, 1, 2, 3} as tensorflow::Example inputs.
      Tensor input(tensorflow::DT_STRING, TensorShape({4}));
      for (int64_t i = 0; i < input.NumElements(); ++i) {
        tensorflow::Example example;
        auto* feature_map = example.mutable_features()->mutable_feature();
        (*feature_map)["x"].mutable_float_list()->add_value(i);
        input.flat<tstring>()(i) = example.SerializeAsString();
      }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    // invocation. By default, we are testing all schemes available but this can be
    // restricted by using `--schemes` to specify a set of schemes to test.
    //
    // Example invocation:
    //  bazel test //tensorflow/c/experimental/filesystem:modular_filesystem_test \\
    //  --test_arg=--dso=/path/to/one.so --test_arg=--dso=/path/to/another.so \\
    //  --test_arg=--scheme= --test_arg=--scheme=file
    //
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_test.cc

    // 6. Create a context D using the full cluster server def E.
    // 7. Read the variable in D.
    TEST(CAPI, SingleHostServerDefV1Works) {
      // Create a server def that represents a 2-process cluster and a client.
      // Example:
      //
      // cluster { job { name: "worker"
      //                 tasks { key: 0 value: "localhost:14522" }
      //                 tasks { key: 1 value: "localhost:14523" }
      //               }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
Back to top