Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for new_args (0.33 sec)

  1. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

      // Replace all external uses with block args and update uses.
      llvm::SmallVector<Value, 4> new_args;
      new_args.reserve(extern_values.size());
      Block& block = func_region.front();
      for (Value value : extern_values) {
        auto arg = block.addArgument(value.getType(), loc);
        replaceAllUsesInRegionWith(value, arg, func_region);
        new_args.push_back(arg);
      }
    
      // Replace yield op with return.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      ValueRange old_args = block.getArguments().take_front(old_args_size);
      ValueRange new_args = block.getArguments().drop_front(old_args_size);
      assert(!new_args.empty());
    
      ReplaceWithTupleResult(builder, old_args, new_args, /*flatten_tuple=*/true);
      auto new_arg = new_args[new_args.size() - 1];
    
      block.eraseArguments(0, old_args_size);
    
      return new_arg;
    }
    
    // Updates control flow op terminator with an extra element `token`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

            << ". [Output] Expected: " << output_names.size()
            << ", got: " << main_func.getNumResults();
        return false;
      }
    
      const int num_args = main_func.getNumArguments();
      for (int i = 0; i < num_args; ++i) {
        main_func.setArgAttr(
            i, kTfSavedModelIndexPathAttr,
            ArrayAttr::get(context, {StringAttr::get(context, input_names[i])}));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

        return it->getFirst().getType();
      };
      auto add_size_vars_to_return = [&](ArrayRef<BlockArgument> new_args) {
        if (new_args.empty()) return;
        auto body_ret = body.front().getTerminator();
        auto new_body_returns = llvm::to_vector<8>(body_ret->getOperands());
        for (auto arg : new_args) new_body_returns.push_back(arg);
        OpBuilder(body_ret).create<func::ReturnOp>(body_ret->getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

      auto& bb = func.front();
      auto loc = func.getLoc();
    
      int num_args = bb.getNumArguments();
      llvm::SmallVector<Type, 4> input_types;
      input_types.reserve(num_args);
      // Edit the block arguments and create the new input ops in place to replace
      // the old input ops and quantize ops.
      for (int i = 0; i != num_args; ++i) {
        // Previous loop iteration may invalidate the insertion point so we have to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            }
            throw new ParameterHasNoDistinctValueException(params.get(i));
          }
          newArgs.set(i, newArg);
          tester.addEqualityGroup(createInstance(factory, newArgs));
          argGroups.add(ImmutableList.of(newArgs));
        }
        tester.testEquals();
      }
    
      /**
       * Returns dummy factory arguments that are equal to {@code args} but may be different instances,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

            }
            throw new ParameterHasNoDistinctValueException(params.get(i));
          }
          newArgs.set(i, newArg);
          tester.addEqualityGroup(createInstance(factory, newArgs));
          argGroups.add(ImmutableList.of(newArgs));
        }
        tester.testEquals();
      }
    
      /**
       * Returns dummy factory arguments that are equal to {@code args} but may be different instances,
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  8. fastapi/_compat.py

            field_annotation_is_scalar(sub_annotation)
            for sub_annotation in get_args(annotation)
        )
    
    
    def is_bytes_or_nonable_bytes_annotation(annotation: Any) -> bool:
        if lenient_issubclass(annotation, bytes):
            return True
        origin = get_origin(annotation)
        if origin is Union or origin is UnionType:
            for arg in get_args(annotation):
                if lenient_issubclass(arg, bytes):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/encapsulate_xla_computations_pass.cc

      // the argument indices.
      int variable_start_index = num_args;
      for (int i = 0; i < num_args; ++i) {
        int index;
        TF_RETURN_IF_ERROR(GetIndexAttr(*args[i], num_args, &index));
        if (args[i]->output_type(0) == DT_RESOURCE &&
            variable_start_index == num_args) {
          variable_start_index = i;
        }
        (*input_permutation)[index] = i;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  10. subprojects/core/src/main/java/org/gradle/api/internal/tasks/DefaultTaskContainer.java

            assertMutable("create(String)");
            return doCreate(name, DefaultTask.class, NO_ARGS, Actions.doNothing());
        }
    
        @Override
        public Task create(String name, Action<? super Task> configureAction) throws InvalidUserDataException {
            assertMutable("create(String, Action)");
            return doCreate(name, DefaultTask.class, NO_ARGS, configureAction);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 09:54:40 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top