Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 173 for getFlow (0.16 sec)

  1. tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc

      // When creating the new const op, use a fused location that combines the
      // original const and the qbarrier that led to the quantization.
      auto fusedLoc = rewriter.getFusedLoc(
          {qbarrier.getArg().getDefiningOp()->getLoc(), qbarrier.getLoc()});
      auto newConstOp = rewriter.create<arith::ConstantOp>(
          fusedLoc, newConstValueType, cast<TypedAttr>(newConstValue));
      rewriter.replaceOpWithNewOp<StorageCastOp>(qbarrier, qbarrier.getType(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      arg_types.push_back(RankedTensorType::get({}, builder.getI32Type()));
      arg_locs.push_back(module_op.getLoc());
      for (const Value input_value : inputs) {
        arg_types.push_back(input_value.getType());
        arg_locs.push_back(input_value.getLoc());
      }
    
      // Identify result types.
      SmallVector<Type> result_types;
      for (const Value output_value : outputs) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. src/sync/pool.go

    		// reuse.
    		x, _ = l.shared.popHead()
    		if x == nil {
    			x = p.getSlow(pid)
    		}
    	}
    	runtime_procUnpin()
    	if race.Enabled {
    		race.Enable()
    		if x != nil {
    			race.Acquire(poolRaceAddr(x))
    		}
    	}
    	if x == nil && p.New != nil {
    		x = p.New()
    	}
    	return x
    }
    
    func (p *Pool) getSlow(pid int) any {
    	// See the comment in pin regarding ordering of the loads.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

              return failure();
            }
            scast_op = rewriter.create<quantfork::StorageCastOp>(
                arg.getLoc(), mlir::cast<TensorType>(new_arg_type), arg);
          } else {
            scast_op = rewriter.create<quantfork::StorageCastOp>(
                arg.getLoc(), arg_type.clone(qtype.getStorageType()), arg);
          }
          args.push_back(scast_op.getResult());
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

            quantize_op->setOperand(quantize_operand_num, dq_op);
            return false;
          }
        }
        rewriter.setInsertionPointAfter(op);
        auto q = rewriter.create<Q>(op->getLoc(), cast_type, op.getResult());
        auto dq = rewriter.create<DQ>(op->getLoc(), expressed_type, q);
        quantize_op->setOperand(quantize_operand_num, dq.getResult());
        return true;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

        // be created and updated, rather than updating the old op. Thus we use an
        // OperationState so we can add regions to the new op.
        OperationState state(op->getLoc(), op->getName().getStringRef(), operands,
                             new_results, op->getAttrs(), op->getSuccessors());
        for (Region& region : op->getRegions()) {
          Region& new_region = *state.addRegion();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc

            returned_type = quant::ConvertSignedQuantizedToUnsigned(
                dequantize_input.getType(), dequantize_op.getLoc());
            // replace the dequantize op by a quantize op
            TypeAttr type_attr = TypeAttr::get(returned_type);
            auto quantize_op = builder.create<QuantizeOp>(
                dequantize_op.getLoc(), returned_type, dequantize_input, type_attr);
            returned_value = quantize_op.getOutput();
          } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc

      builder.create<tf_saved_model::SessionInitializerOp>(
          module->getLoc(), builder.getArrayAttr(func_names));
      // Create AssetOp; this holds the checkpoint_path.
      // TODO(b/318761632): Cleanup usage of string literals, instead use constants.
      auto asset_op = builder.create<tf_saved_model::AssetOp>(
          module->getLoc(),
          /*sym_name=*/
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

    // The Location is set as `input`'s loc.
    TransposeOp CreateTransposeOp(Value input, const ArrayRef<int64_t> permutation,
                                  PatternRewriter& rewriter) {
      return rewriter.create<TransposeOp>(
          input.getLoc(), input, rewriter.getDenseI64ArrayAttr(permutation));
    }
    
    // Defers the transpose of the left-hand side (LHS) to the right-hand side and
    // the result of a binary operation. In detail, this rewrites the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

            new_operands.push_back(rewriter.create<TF::CastOp>(
                op->getLoc(), orig_op_type, operands[i]));
          } else {
            new_operands.push_back(operands[i]);
          }
        }
    
        // Create a new UQ op.
        OperationState state(op->getLoc(), op->getName().getStringRef(),
                             new_operands, op->getResultTypes(), op->getAttrs(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top