Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 2,271 for OP (0.03 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

      builder->setInsertionPoint(op);
      auto operands = llvm::to_vector<4>(op->getOperands());
      operands.push_back(operand);
      auto new_op = builder->create<OpT>(op->getLoc(), op->getResultTypes(),
                                         operands, attr.getAttrs());
      op->replaceAllUsesWith(new_op.getOperation()->getResults());
      op->erase();
      return new_op;
    }
    
    // Returns success if the function has at most one op of the template type and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc

        }
        auto arg_type = cast<func::FuncOp>(op).getArgument(arg_index).getType();
        return VerifyBoundInputArgType(op, arg_type, symbol_op);
      }
      if (named_attr.getName() == kTfSavedModelIndexPathAttr) {
        return VerifyIndexPath(op, named_attr);
      }
    
      return op->emitError() << "unknown tf_saved_model dialect arg attribute '"
                             << named_attr.getName().getValue() << "'";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/quantization/quantization_context.h

          return states_[operand_states_[{op, index}]];
        }
    
        // Returns the state of the index-th result of the op.
        QuantState &GetResultQuantState(Operation *op, int index) {
          return states_[result_states_[{op, index}]];
        }
    
        // Returns the state of the index-th operand of the op.
        RequantizeState &GetOperandRequantizeState(Operation *op, int index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

              op->getLoc(), op.getOperand().getType(), adaptor.getOperand());
          rewriter.replaceOpWithNewOp<mlir::stablehlo::BitcastConvertOp>(
              op, op.getResult().getType(), output);
        } else {
          // Both input/output are f32. Convert to no-op.
          rewriter.replaceOp(op, adaptor.getOperand());
        }
        return success();
      }
    };
    }  // namespace
    
    #define GEN_PASS_DEF_CONVERTFUNCTOBFLOAT16PASS
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

            op.getLoc(), op.getType(), op.getOperands(),
            builder.getI64ArrayAttr(partition_dims), builder.getBoolAttr(false),
            op.get_XlaShardingAttr());
        op->replaceAllUsesWith(pi);
      } else {
        auto po = builder.create<TF::TPUPartitionedOutputV2Op>(
            op.getLoc(), op.getResultTypes(), op.getOperand(),
            builder.getI64ArrayAttr(partition_dims), op.get_XlaShardingAttr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    LogicalResult ConcatOffsetOp::verify() {
      ConcatOffsetOp op = *this;
      if (op.getN() < 2)
        return op.emitOpError() << "requires N to be at least 2, got " << op.getN();
    
      if (op.getShape().size() != op.getOffset().size())
        return op.emitOpError()
               << "requires sizes of shapes and offsets to be the same, got sizes "
               << op.getShape().size() << " and " << op.getOffset().size();
    
      auto ranked_dim =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/array_grad.cc

                                             const Operation& op,
                                             const std::vector<Output>& grad_inputs,
                                             std::vector<Output>* grad_outputs) {
      Input input = Shape(scope, op.input(0));
      Input input_min = op.input(1);
      Input input_max = op.input(2);
      int64_t axis;
      TF_RETURN_IF_ERROR(GetNodeAttr(op.node()->attrs(), "axis", &axis));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  8. pkg/cache/bench.baseline

    BenchmarkLRUGetConcurrent-8      	 1000000	      1984 ns/op	       0 B/op	       0 allocs/op
    BenchmarkLRUSet-8                	20000000	        64.7 ns/op	       0 B/op	       0 allocs/op
    BenchmarkLRUSetConcurrent-8      	 1000000	      2315 ns/op	       0 B/op	       0 allocs/op
    BenchmarkLRUGetSetConcurrent-8   	 1000000	      2299 ns/op	       0 B/op	       0 allocs/op
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // Returns true if 'op' is non const op. Returns false otherwise or if
    // 'op' is null.
    inline bool IsNonConstOp(Operation* op) {
      if (!op) return false;
      if (llvm::isa<arith::ConstantOp, mlir::func::ConstantOp>(op)) return false;
      if (op->hasTrait<OpTrait::ConstantLike>()) return false;
      if (llvm::isa<TFL::ConstOp, TFL::QConstOp>(op)) return false;
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/layout_optimization.cc

      // `op`, and bypass all result transposes.
      Location loc = op->getLoc();
    
      // Move constant op defining result permutation to the beginning of the block.
      permutation_op.getOperation()->moveBefore(&op->getBlock()->front());
    
      // Bypass Transpose nodes for all results.
      for (OpResult result : op->getResults()) {
        result.setType(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top