Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for Model (0.13 sec)

  1. tensorflow/c/eager/unified_api_testutil.h

    //   outputs = tf.function(model)(inputs)
    // else:
    //   outputs = model(inputs)
    Status RunModel(Model model, AbstractContext* ctx,
                    absl::Span<AbstractTensorHandle* const> inputs,
                    absl::Span<AbstractTensorHandle*> outputs, bool use_function);
    
    Status BuildImmediateExecutionContext(bool use_tfrt, AbstractContext** ctx);
    
    // Return a tensor handle with given type, values and dimensions.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/gradients/nn_grad_test.cc

      TF_RETURN_IF_ERROR(ops::SparseSoftmaxCrossEntropyWithLogits(
          ctx, inputs[0], inputs[1], &loss, &backprop,
          "SparseSoftmaxCrossEntropyWithLogits"));
      // `gradient_checker` only works with model that returns only 1 tensor.
      // Although, `ops::SparseSoftmaxCrossEntropyWithLogits` returns 2 tensors, the
      // second tensor isn't needed for computing gradient so we could safely drop
      // it.
      outputs[0] = loss;
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      SetViaProto(desc_, {});
      FinishAndVerify(desc_, {});
    }
    
    TEST(CAPI, SavedModel) {
      // Load the saved model.
      const string saved_model_dir = tensorflow::GetDataDependencyFilepath(
          tensorflow::io::JoinPath("tensorflow", "cc", "saved_model", "testdata",
                                   "half_plus_two", "00000123"));
      TF_SessionOptions* opt = TF_NewSessionOptions();
    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)
  4. tensorflow/c/eager/unified_api_testutil.cc

          TF_RETURN_IF_ERROR(
              CreateParamsForInputs(func_ctx.get(), inputs, &func_inputs));
          std::vector<AbstractTensorHandle*> model_outputs;
          model_outputs.resize(outputs.size());
          TF_RETURN_IF_ERROR(model(func_ctx.get(), absl::MakeSpan(func_inputs),
                                   absl::MakeSpan(model_outputs)));
          for (auto func_input : func_inputs) {
            func_input->Unref();
          }
          AbstractFunction* func = nullptr;
    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)
  5. tensorflow/c/experimental/gradients/grad_test_helper.cc

    namespace gradients {
    namespace internal {
    
    void CompareNumericalAndAutodiffGradients(
        Model model, Model grad_model, AbstractContext* ctx,
        absl::Span<AbstractTensorHandle* const> inputs, bool use_function,
        double abs_error) {
      auto num_inputs = inputs.size();
      std::vector<AbstractTensorHandle*> outputs(num_inputs);
      auto s = RunModel(grad_model, ctx, inputs, absl::MakeSpan(outputs),
                        /*use_function=*/use_function);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. RELEASE.md

        *   Metrics update and collection logic in default `Model.train_step()` is
            now customizable via overriding `Model.compute_metrics()`.
        *   Losses computation logic in default `Model.train_step()` is now
            customizable via overriding `Model.compute_loss()`.
        *   `jit_compile` added to `Model.compile()` on an opt-in basis to compile
            the model's training step with [XLA](https://www.tensorflow.org/xla).
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  7. tensorflow/c/BUILD

            ":kernels",
        ],
    )
    
    tf_cuda_cc_test(
        name = "c_api_test",
        size = "medium",
        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 = [
    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)
  8. tensorflow/BUILD

                    "//tensorflow/c:logging",
                    "//tensorflow/c:ops",
                    "//tensorflow/cc/saved_model:fingerprinting_impl",
                    "//tensorflow/cc/saved_model:loader_lite_impl",
                    "//tensorflow/cc/saved_model:metrics_impl",
                    "//tensorflow/compiler/tf2tensorrt:op_converter_registry_impl",
                    "//tensorflow/core/common_runtime:core_cpu_impl",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 09 18:15:11 GMT 2024
    - 53.4K bytes
    - Viewed (8)
  9. ci/official/utilities/code_check_full.bats

      cat > $BATS_TEST_TMPDIR/ignore_these_deps <<EOF
    benchmark
    _test$
    _test.py$
    _test_cpu$
    _test_cpu.py$
    _test_gpu$
    _test_gpu.py$
    _test_lib$
    //tensorflow/cc/saved_model:saved_model_test_files
    //tensorflow/cc/saved_model:saved_model_half_plus_two
    //tensorflow:no_tensorflow_py_deps
    //tensorflow/tools/pip_package:win_pip_package_marker
    //tensorflow/core:image_testdata
    //tensorflow/core/kernels/cloud:bigquery_reader_ops
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 06 21:54:13 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. CONTRIBUTING.md

        ```
    
        For a single/parameterized test e.g. `test_capture_variables` in
        `tensorflow/python/saved_model/load_test.py`:
    
        (Requires `python>=3.7`)
    
        ```bash
        bazel test ${flags} //tensorflow/python/saved_model:load_test --test_filter=*LoadTest.test_capture_variables*
        ```
    
        **Note:** You can add `--test_sharding_strategy=disabled` to the `flags` to
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu Mar 21 11:45:51 GMT 2024
    - 15.6K bytes
    - Viewed (0)
Back to top