Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for padding (0.27 sec)

  1. tensorflow/c/c_api.cc

                                   TF_Status* status, TF_Output* dy) {
    #if defined(IS_MOBILE_PLATFORM) || defined(IS_SLIM_BUILD)
      status->status = tensorflow::errors::Unimplemented(
          "Adding gradients is not supported on mobile. File a bug at "
          "https://github.com/tensorflow/tensorflow/issues if this feature is "
          "important to you");
    #else
    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. tensorflow/c/eager/c_api_test.cc

      SetOpAttrValueScalar(ctx, op, i_list_values, "ksize", status);
      SetOpAttrValueScalar(ctx, op, i_list_values, "strides", status);
    
      tensorflow::AttrValue padding_value;
      *padding_value.mutable_s() = "VALID";
      tensorflow::SetOpAttrValueScalar(ctx, op, padding_value, "padding", status);
    
      tensorflow::AttrValue data_format_value;
      *data_format_value.mutable_s() = "NHWC";
    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)
  3. tensorflow/c/c_api_experimental.cc

        // Make a copy so that we can mutate it.
        FunctionDef fdef_to_load = fdef;
        if (mutate_proto_func) {
          (*mutate_proto_func)(&fdef_to_load);
        }
        VLOG(1) << "Adding func to graph: " << fdef_to_load.DebugString();
        std::vector<char> binary_proto_buf(fdef_to_load.ByteSizeLong());
        fdef_to_load.SerializeToArray(binary_proto_buf.data(),
    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)
  4. tensorflow/c/eager/c_api_cluster_test.cc

      const char remote_device_name[] =
          "/job:localhost/replica:0/task:1/device:CPU:0";
      CheckRemoteMatMulExecutesOK(ctx, remote_device_name, local_device_name);
    
      // Adding a non-existent remote worker to cluster def. This should cause the
      // UpdateServerDef call to fail.
      tensorflow::ClusterDef* cluster_def = server_def.mutable_cluster();
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Apr 14 10:03:59 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

      // TODO(allenl): We should remove "TPU" from these op names at the very least,
      // or consider other ways of packing/unpacking parallel tensors.
      if (operation_name == std::string("TPUReplicatedInput")) {
        // Special-cased operation for packing per-device tensors into one parallel
        // tensor.
        if (inputs.size() != parallel_device.num_underlying_devices()) {
          std::string message(absl::StrCat(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      ~DeviceThread();
    
      // Requests that the worker thread execute the specified operation. Blocks
      // until the previously pending operation (a StartExecute without a Join) has
      // finished, if any.
      //
      // `cancellation_manager` must live until after `Join` finishes and pending
      // `is_async` operations finish. In addition to allowing the caller to cancel
      // the operation, its `StartCancel` method will be called if op execution
    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)
  7. tensorflow/c/eager/c_api_unified_experimental_graph.cc

      const char* op_name_ = nullptr;
      // TODO(srbs): Use this.
      string device_name_;
    };
    
    // GraphContext wraps a TF_Graph modeling a single function and manages the
    // "execution" of operation, i.e. adding them to the function.
    class GraphContext : public TracingContext {
     public:
      explicit GraphContext(const char* name)
          : TracingContext(kGraph),
            graph_(new TF_Graph(), TF_DeleteGraph),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  8. tensorflow/c/eager/c_api.cc

          if (!status->status.ok()) return;
          // TODO(nareshmodi): TFE_OpSetAttrFunction and TFE_OpSetAttrFunctionList
          // require TFE_Op* and just convert it internally a NameAttrValue, so
          // consider adding an overload to the C API to make this case easier.
          TFE_OpSetAttrFunction(op, attr_name, func_op);
          TFE_DeleteOp(func_op);
        } break;
        case tensorflow::AttrValue::kList: {
          // String
    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/eager/c_api_experimental.cc

        if (tensorflow::CustomDeviceTensorHandle::classof(unwrapped_handle)) {
          // One of the inputs we're trying to pack is on a custom device. We'll let
          // the first custom device we see handle all of the packing.
          auto* custom_device_handle =
              tensorflow::down_cast<tensorflow::CustomDeviceTensorHandle*>(
                  unwrapped_handle);
          tensorflow::ImmediateExecutionTensorHandle* result;
    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)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        return TF_SetStatus(status, TF_ALREADY_EXISTS, path);
      }
    
      auto metadata = gcs_file->gcs_client.InsertObject(
          bucket, object, "",
          // Adding this parameter means HTTP_CODE_PRECONDITION_FAILED
          // will be returned if the object already exists, so avoid reuploading.
          gcs::IfGenerationMatch(0), gcs::Fields(""));
    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)
Back to top