Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for addParameter (0.29 sec)

  1. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/links/ClassLinkMetaDataTest.groovy

            classMetaData.addMethod(METHOD_NAME, TypeMetaData.VOID, null).addParameter('param1', new TypeMetaData("java.lang.Integer"))
            def overloadedCalculateMethod = classMetaData.addMethod('calculate', TypeMetaData.VOID, null)
            overloadedCalculateMethod.addParameter('x', new TypeMetaData("java.lang.Integer"))
            overloadedCalculateMethod.addParameter('y', new TypeMetaData("java.lang.String"))
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 2.7K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/model/MethodMetaDataTest.groovy

        final MethodMetaData method = new MethodMetaData('method', owner)
    
        def formatsSignature() {
            method.returnType = new TypeMetaData('ReturnType')
            method.addParameter('param1', new TypeMetaData('ParamType'))
            method.addParameter('param2', new TypeMetaData('ParamType2'))
    
            expect:
            method.signature == 'ReturnType method(ParamType param1, ParamType2 param2)'
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/unified_api_test.cc

      AbstractTensorHandlePtr x;
      {
        tracing::TracingTensorHandle* x_raw = nullptr;
        PartialTensorShape shape;
        Status s = dyn_cast<tracing::TracingContext>(ctx.get())->AddParameter(
            DT_FLOAT, shape, &x_raw);
        ASSERT_EQ(errors::OK, s.code()) << s.message();
        x.reset(x_raw);
      }
    
      PartialTensorShape shape;
      Status s = x->Shape(&shape);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  4. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilder.java

                MethodMetaData methodMetaData = new MethodMetaData(id, extensionDoc.getTargetClass().getClassMetaData());
                methodMetaData.addParameter("configClosure", new TypeMetaData(Closure.class.getName()));
                MethodDoc methodDoc = new MethodDoc(methodMetaData, Collections.singletonList(para));
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.9K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/MethodMetaData.java

            }
    
            return null;
        }
    
        public List<ParameterMetaData> getParameters() {
            return parameters;
        }
    
        public ParameterMetaData addParameter(String name, TypeMetaData type) {
            ParameterMetaData param = new ParameterMetaData(name);
            param.setType(type);
            parameters.add(param);
            return param;
        }
    
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 4.9K bytes
    - Viewed (0)
  6. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirPsiTypeProvider.kt

                                    javaTypeParameterStack.addParameter(JavaTypeParameterImpl(typeParam), typeParamSymbol)
                                }
                            }
                        }
    
                        containingClassSymbol.typeParameterSymbols.zip(psiClass.typeParameters).forEach { (symbol, typeParameter) ->
                            javaTypeParameterStack.addParameter(JavaTypeParameterImpl(typeParameter), symbol)
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Apr 12 13:29:57 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

                TypeMetaData typeMetaData = extractTypeName(parameter.getType());
                if (parameter.isVarArgs()) {
                    typeMetaData.setVarargs();
                }
                method.addParameter(parameter.getNameAsString(), typeMetaData);
            }
        }
    
        @Override
        public void visit(FieldDeclaration fieldDeclaration, ClassMetaDataRepository<ClassMetaData> arg) {
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Sep 21 13:27:02 GMT 2023
    - 11.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/c_api_unified_experimental_internal.h

     protected:
      explicit TracingContext(AbstractContextKind kind) : AbstractContext(kind) {}
    
     public:
      // Add a function parameter and return the corresponding tensor.
      virtual Status AddParameter(DataType dtype, const PartialTensorShape& shape,
                                  TracingTensorHandle**) = 0;
    
      // Finalize this context and make a function out of it. The context is in a
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Nov 13 22:20:40 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  9. tensorflow/c/eager/unified_api_testutil.cc

      tracing::TracingTensorHandle* handle = nullptr;
      for (auto input : inputs) {
        PartialTensorShape shape;
        TF_RETURN_IF_ERROR(input->Shape(&shape));
        TF_RETURN_IF_ERROR(dyn_cast<tracing::TracingContext>(ctx)->AddParameter(
            input->DataType(), shape, &handle));
        params->emplace_back(handle);
      }
      return absl::OkStatus();
    }
    
    // Runs `model` maybe wrapped in a function.
    Status RunModel(Model model, AbstractContext* ctx,
    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)
  10. tensorflow/c/eager/c_api_unified_experimental.cc

            &partial_shape);
        if (!status.ok()) {
          tsl::Set_TF_Status_from_Status(s, status);
          return nullptr;
        }
      }
      tsl::Set_TF_Status_from_Status(
          s, tracing_ctx->AddParameter(static_cast<DataType>(dtype), partial_shape,
                                       &t));
      return wrap(t);
    }
    
    void TF_DeleteExecutionContext(TF_ExecutionContext* c) { unwrap(c)->Release(); }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
Back to top