Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for input_arg (0.04 sec)

  1. tensorflow/c/c_api_experimental.cc

      }
    
      const tensorflow::OpDef_ArgDef& input_arg = op_def->input_arg()[input_index];
    
      if (input_arg.number_attr().empty()) {
        status->status = tensorflow::errors::NotFound(
            op_name, " does not have number_attr() defined.");
        return nullptr;
      }
    
      // The returned string is owned by OpRegistry, so liveness is not a concern.
      return input_arg.number_attr().c_str();
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api_distributed_test.cc

    string AddVariablesFunction() {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          "    signature {"
          "      name: 'AddVariablesFunction'"
          "      input_arg {"
          "        name: 'var'"
          "        type: DT_RESOURCE"
          "      }"
          "      output_arg {"
          "        name: 'sum'"
          "        type: DT_FLOAT"
          "      }"
          "    }"
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

    }
    
    string MatMulFunction() {
      tensorflow::FunctionDef def;
      CHECK(tensorflow::protobuf::TextFormat::ParseFromString(
          "    signature {"
          "      name: 'MatMulFunction'"
          "      input_arg {"
          "        name: 'a'"
          "        type: DT_FLOAT"
          "      }"
          "      output_arg {"
          "        name: 'm'"
          "        type: DT_FLOAT"
          "      }"
          "    }"
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function_test.cc

        const OpDef& signature = fdef.signature();
        ASSERT_EQ(inputs.size(), signature.input_arg_size());
        for (int i = 0; i < inputs.size(); ++i) {
          const OpDef::ArgDef& arg = signature.input_arg(i);
          const IOSpec& in = inputs[i];
          if (in.second != DT_INVALID) {
            ASSERT_EQ(arg.type(), in.second)
                << "Got unexpected type for input " << i
                << ". fdef: " << fdef.DebugString();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
Back to top