Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for argument (4.95 sec)

  1. tensorflow/c/c_api_test.cc

      TF_GraphGetTensorShape(graph, feed_out_0, returned_dims, 5, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Try to set an invalid shape (cannot change 2x3 to a 2x5).
      dims[1] = 5;
      TF_GraphSetTensorShape(graph, feed_out_0, dims, 2, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Test for a scalar.
      TF_Operation* three = ScalarConst(3, graph, 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)
  2. RELEASE.md

    *   Extends `tf.keras.layers.Lambda` layers to support multi-argument lambdas,
        and keyword arguments when calling the layer.
    *   Functional models now get constructed if *any* tensor in a layer call's
        arguments/keyword arguments comes from a keras input. Previously the
        functional api would only work if all of the elements in the first argument
        to the layer came from a keras input.
    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)
  3. tensorflow/c/eager/dlpack.cc

      // 1) nullptr indicates tensor is compact and row-majored.
      // 2) fill in the strides array as the real case for compact row-major data.
      // Here we choose option 2, since some frameworks didn't handle the strides
      // argument properly.
      dlm_tensor->dl_tensor.strides = stride_arr->data();
    
      dlm_tensor->dl_tensor.byte_offset =
          0;  // TF doesn't handle the strides and byte_offsets here
      return static_cast<void*>(dlm_tensor);
    }
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients_test.cc

      Status s = RunModel(RecordOperationWithNullGradientFunctionModel, ctx.get(),
                          {x.get()}, absl::MakeSpan(outputs),
                          /*use_function=*/!std::get<2>(GetParam()));
      ASSERT_EQ(error::INVALID_ARGUMENT, s.code());
      ASSERT_EQ(
          "Provided null gradient_function for 'Neg'.\nIf the intent is to treat "
          "this op as non-differentiable consider using RegisterNotDifferentiable "
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. .bazelrc

    # Sets the default Apple platform to macOS.
    build:macos --apple_platform_type=macos
    
    # gRPC on MacOS requires this #define
    build:macos --copt=-DGRPC_BAZEL_BUILD
    
    # Avoid hitting command line argument limit
    build:macos --features=archive_param_file
    
    # Settings for MacOS on ARM CPUs.
    build:macos_arm64 --cpu=darwin_arm64
    build:macos_arm64 --macos_minimum_os=11.0
    
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu May 02 19:34:20 GMT 2024
    - 52.8K bytes
    - Viewed (2)
  6. tensorflow/c/eager/c_api_experimental.cc

        tensorflow::ImmediateExecutionOperation* op =
            tensorflow::unwrap(op_to_reset);
        op->Clear();
        status->status = op->Reset(op_or_function_name, raw_device_name);
      } else {
        TF_SetStatus(status, TF_INVALID_ARGUMENT,
                     "op_to_reset should not be nullptr");
      }
    }
    
    void TFE_ContextEnableGraphCollection(TFE_Context* ctx) {
      tensorflow::unwrap(ctx)->SetShouldStoreGraphs(true);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  7. configure.py

        var_default: (String) default value string.
        ask_for_var: (String) string for how to ask for user input.
        check_success: (Function) function that takes one argument and returns a
          boolean. Should return True if the value provided is considered valid. May
          contain a complex error message if error_msg does not provide enough
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api.cc

            tensorflow::errors::InvalidArgument("Unparseable AttrValue proto");
        return;
      }
      if (op == nullptr) {
        status->status = tensorflow::errors::InvalidArgument(
            "Got a null or uninitialized `op` argument");
        return;
      }
      tensorflow::EagerOperation* operation =
          OperationFromInterface(tensorflow::unwrap(const_cast<TFE_Op*>(op)));
      operation->MutableAttrs()->Set(attr_name, attr_value);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  9. tensorflow/c/c_api_function.cc

    void TF_GraphCopyFunction(TF_Graph* g, const TF_Function* func,
                              const TF_Function* grad, TF_Status* status) {
      if (func == nullptr) {
        status->status = InvalidArgument(
            "'func' argument to TF_GraphCopyFunction cannot be null");
        return;
      }
    
      tensorflow::mutex_lock l(g->mu);
      status->status = g->graph.AddFunctionDef(func->record->fdef(),
    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)
  10. tensorflow/c/experimental/filesystem/BUILD

    tf_cc_test(
        name = "modular_filesystem_test",
        size = "small",
        srcs = ["modular_filesystem_test.cc"],
        linkopts = ["-ldl"],
        tags = [
            "manual",  # Requires DSOs as arguments, eventual setup
            "notap",  # b/139060984, requires implementing modular support for Google filesystem
        ],
        deps = [
            ":modular_filesystem",
            "//tensorflow/core:framework_internal",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 18:00:18 GMT 2024
    - 2.1K bytes
    - Viewed (0)
Back to top